Problem in using ora:countNodes

Hi i am trying to poll database and receive the records using receive activity.
later i am trying to count the number of record polled each time.
i am using ora:countNodes function.
But i am getting the below error :
Error while processing xpath expression, the expression is "ora:countNodes(bpws:getVariableData('Receive_Data_receive_InputVariable','EmpCollection','/ns2:EmpCollection/ns2:Emp'))", the reason is FOTY0001: type error.
Please verify the xpath query.
the schema file created by the AdapterConfigurator was:
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBA4GettingData" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBA4GettingData" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="EmpCollection" type="EmpCollection"/>
<xs:complexType name="EmpCollection">
<xs:sequence>
<xs:element name="Emp" type="Emp" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Emp">
<xs:sequence>
<xs:element name="empno" type="xs:int"/>
<xs:element name="ename" minOccurs="0" nillable="true"/>
<xs:element name="job" minOccurs="0" nillable="true"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
i am trying to count the nodes of EMP ...
Could you please tell me the solution...
Thanks in advance
chandra

It should look like:
ora:countNodes('Receive_Data_receive_InputVariable','EmpCollection','/ns2:EmpCollection/ns2:Emp')
I typically use the expression builder to identify the element then replace the bpws:getVariableData with ora:countNodes. Works every time.

Similar Messages

  • Unable to use ora:countNodes in OBPM 11g

    Hi,
    I have a BPM Data Object 'solutionProposal' which has the following value after picking up the response from a service call.
    <?xml version="1.0" encoding="UTF-8" ?>
    <solutionProposal xmlns="http://agreement.pdom.nordea.com/solutionproposal/object/v2">
    <initiatedByCustomer xmlns="">53273267</initiatedByCustomer>
    <solutionProposalId xmlns="">12787382</solutionProposalId>
         <!--Zero or more repetitions: -->
    <tailoredPSO xmlns="">
    <productServiceOfferGroupId>DEPOSIT</productServiceOfferGroupId>
    <tailoredItemId>12</tailoredItemId>
    </tailoredPSO>
    <tailoredPSO xmlns="">
    <productServiceOfferGroupId>NCL</productServiceOfferGroupId>
    <tailoredItemId>12</tailoredItemId>
    </tailoredPSO>
    </solutionProposal>
    As can be seen, "TailoredPSO" is directly defined under "SolutionProposal" and can have a repetition of 1 til 20. The schema definition is as below.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:sp="http://agreement.pdom.nordea.com/solutionproposal/object/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://agreement.pdom.nordea.com/solutionproposal/object/v2">
    <xsd:element name="solutionProposal" type="sp:SolutionProposal"/>
    <xsd:complexType name="SolutionProposal">
         <xsd:sequence>
              <xsd:element name="initiatedByCustomer" type="sp:GenericId"/>
              <xsd:element name="solutionProposalId" type="sp:GenericId"/>
              <xsd:element name="tailoredPSO" type="sp:TailoredPSO" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="TailoredPSO">
         <xsd:sequence>
              <xsd:element name="productServiceOfferGroupId" type="sp:GenericId"/>
              <xsd:element name="tailoredItemId" type="sp:GenericId"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="GenericId">
         <xsd:restriction base="xsd:string">
              <xsd:maxLength value="22"/>
         </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    I have not been able to use ora:countNode expression in OBPM 11g (Patch Set 2) while trying to evaluate how many "TailoredPSO" element are there is the response. Any help will be appreciated.
    Following are the various permutations I have tried out but all of them return a response of 1 only instead of expected 2.
    ora:countNodes('solutionProposal','solutionProposal','//solutionProposal/tailoredPSO')
    ora:countNodes('solutionProposal','//solutionProposal/tailoredPSO')
    ora:countNodes('solutionProposal','//*:solutionProposal/*:tailoredPSO')
    ora:countNodes('solutionProposal','TailoredPSO','//solutionProposal/tailoredPSO')
    ora:countNodes('solutionProposal','tailoredPSO','//solutionProposal/tailoredPSO')
    Nothing seems to return a value of 2.
    Previously we have only used OBPM 10g and ALBPM 6.0 SP4 and there were other ways of working with this problem.
    Thanks
    Edited by: user9019487 on Jan 31, 2011 7:09 AM

    Hi,
    To access the number of nodes within a list you can do as follows:
    instead of using ora:countNodes('solutionProposal','//solutionProposal/tailoredPSO') choose "simple function" instead of "XPath" and, in your case:
    solutionProposal.tailoredPSO.length() will give you the size of the array you're trying to get.
    Hope it helps.
    Pablo

  • Unable to Count Nodes using ora:countNodes , the count is always 0

    B2B is connected to BPEL , the xsd used for the given xml is :
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="Root">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Batch">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Warehouse" type="xsd:string"/>
    <xsd:element name="BatchDate" type="xsd:integer"/>
    <xsd:element name="Revision" type="xsd:string"/>
    <xsd:element name="OnHand" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ItemCode" type="xsd:string"/>
    <xsd:element name="SOH" type="xsd:integer"/>
    <xsd:element name="Quarantine" type="xsd:integer"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Count nodes function used by me is :
    ora:countNodes('receive_InventoryReconcilliation_receive_InputVariable','body','/ns2:Root/ns2:Batch/ns2:OnHand/ns2:ItemCode')
    or
    ora:countNodes('receive_InventoryReconcilliation_receive_InputVariable','body','/ns2:Root/ns2:Batch/ns2:OnHand/ns2:ItemCode')
    I have tried using countNodes in above two ways.
    Inspite of that i always get count of nodes as 0.
    How should i resolve this issue ?
    Thanks in advance,
    Sasmit
    Edited by: Sasmit on Jun 6, 2011 6:09 AM

    Hi Sasmit...
    i was facing a same problem recently...i can see the B2B adaptor giving the file as input to my BPEL process but the count is coming as zero...then what i did was..i tried copying the value of an element in the input variable...i cannot copy the value too...So, then i figured out that when i defined the document definition in B2B console, we will be giving the XSD file right...that schema file is not in sink with the file being picked up...may be i might have done amistake while generating the XSD file for a particular document in B2B Editor...then later i created the document definition i mean the xsd file in B2B Editor and used that new XSD file in my document definition...then i could access all the data in my BPEL process...
    Just try this..,may be it helps.
    Thanks,

  • Problem with ora:countNodes...

    Hi i am trying to poll database and receive the records using receive activity.
    later i am trying to count the number of record polled each time.
    i am using ora:countNodes function.
    But i am getting the below error :
    Error while processing xpath expression, the expression is "ora:countNodes(bpws:getVariableData('Receive_Data_receive_InputVariable','EmpCollection','/ns2:EmpCollection/ns2:Emp'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    the schema file created by the AdapterConfigurator was:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBA4GettingData" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBA4GettingData" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="EmpCollection" type="EmpCollection"/>
    <xs:complexType name="EmpCollection">
    <xs:sequence>
    <xs:element name="Emp" type="Emp" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Emp">
    <xs:sequence>
    <xs:element name="empno" type="xs:int"/>
    <xs:element name="ename" minOccurs="0" nillable="true"/>
    <xs:element name="job" minOccurs="0" nillable="true"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    i am trying to count the nodes of EMP ...
    Could you please tell me the solution...
    Thanks in advance
    chandra

    Hi,
    Have you tries using the standard xpath function count(<nodeset>) instead?
    See reference: http://www.w3.org/TR/xpath#function-count.
    Usage would be something like:
    bpws:getVariableData('Receive_Data_receive_InputVariable','EmpCollection','count(/ns2:EmpCollection/ns2:Emp)')
    Hope this helps you further.
    Kind regards,
    Harm

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • Ora:countNodes returns always 0

    1) I used a file adapter to get an xml file like
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <dossiers>
    <dossier idPlateformeIMMI="4" idPlateformeCAI="05" numeroDossierIMMI2="430106067866" dateDepot="20/02/2006" departement="92">
    <telephone>
    <numero></numero>
    </telephone>
    <convocation>
    <id>306909</id>
    <dateConvocation>22/03/2006 13:30</dateConvocation>
    </convocation>
    <adresse>
    <lieuDit></lieuDit>
    <numVoie>216 bis, bld Jean Jaurès</numVoie>
    <batiment>chez Le Dome</batiment>
    <codePostal>92100</codePostal>
    <ville>BOULOGNE BILLANCOURT</ville>
    </adresse>
    <procedure>
    <id>1</id>
    </procedure>
    <demandeur>
    <nom>DIMWANA</nom>
    <prenom>CHRIST</prenom>
    <naissance>
         <dateNaissance>22/05/1987</dateNaissance>
         <lieuNaissance>KINSHASA</lieuNaissance>
         <paysNaissance>
         <id>356</id>
         </paysNaissance>
    </naissance>
    <codeNationalite>
         <id>307</id>
    </codeNationalite>
    <sexe>M</sexe>
    <codeMatrimonial>
         <id>1</id>
    </codeMatrimonial>
    <nomEpouse></nomEpouse>
    <qualite>
         <id>35</id>
    </qualite>
    <type>
         <code>F</code>
    </type>
    </demandeur>
    </dossier>
    <dossier idPlateformeIMMI="4" idPlateformeCAI="05" numeroDossierIMMI2="430106067692" dateDepot="20/02/2006" departement="92">
    <telephone>
    <numero></numero>
    </telephone>
    <convocation>
    <id>306032</id>
    <dateConvocation>20/03/2006 08:30</dateConvocation>
    </convocation>
    <adresse>
    <lieuDit></lieuDit>
    <numVoie>03 rue des aubepines</numVoie>
    <batiment></batiment>
    <codePostal>92000</codePostal>
    <ville>NANTERRE</ville>
    </adresse>
    <procedure>
    <id>1</id>
    </procedure>
    <demandeur>
    <nom>HMANI</nom>
    <prenom>YOUSSEF</prenom>
    <naissance>
         <dateNaissance>23/08/1974</dateNaissance>
         <lieuNaissance>seittat</lieuNaissance>
         <paysNaissance>
         <id>375</id>
         </paysNaissance>
    </naissance>
    <codeNationalite>
         <id>375</id>
    </codeNationalite>
    <sexe>M</sexe>
    <codeMatrimonial>
         <id>2</id>
    </codeMatrimonial>
    <nomEpouse></nomEpouse>
    <qualite>
         <id>32</id>
    </qualite>
    <type>
         <code>F</code>
    </type>
    </demandeur>
    </dossier>
    </dossiers>
    2) My xsd file is :
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://www.anaembis.org"
    xmlns:doss="http://www.anaembis.org"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="dossiers" type="doss:dossiersType"/>
    <complexType name="dossiersType">
    <sequence>
    <element name="dossier" type="doss:dossierType" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="dossierType">
    <sequence>
    <element name="telephone" type="doss:telephoneType"/>
    <element name="convocation" type="doss:convocationType"/>
    <element name="adresse" type="doss:adresseType"/>
    <element name="procedure" type="doss:procedureType"/>
    <element name="demandeur" type="doss:demandeurType"/>
    </sequence>
    <attribute name="dateDepot" use="required"/>
    <attribute name="departement" use="required" type="integer"/>
    <attribute name="idPlateformeCAI" use="required" type="integer"/>
    <attribute name="idPlateformeIMMI" use="required" type="integer"/>
    <attribute name="numeroDossierIMMI2" use="required" type="integer"/>
    </complexType>
    <complexType name="telephoneType">
    <sequence>
    <element name="numero" type="string"/>
    </sequence>
    </complexType>
    <complexType name="convocationType">
    <sequence>
    <element name="id" type="string"/>
    <element name="dateConvocation" type="string"/>
    </sequence>
    </complexType>
    <complexType name="adresseType">
    <sequence>
    <element name="lieuDit" type="string"/>
    <element name="numVoie" type="string"/>
    <element name="batiment" type="string"/>
    <element name="codePostal" type="string"/>
    <element name="ville" type="string"/>
    </sequence>
    </complexType>
    <complexType name="procedureType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="demandeurType">
    <sequence>
    <element name="nom" type="string"/>
    <element name="prenom" type="string"/>
    <element name="naissance" type="doss:naissanceType"/>
    <element name="codeNationalite" type="doss:codeNationaliteType"/>
    <element name="sexe" type="string"/>
    <element name="codeMatrimonial" type="doss:codeMatrimonialType"/>
    <element name="nomEpouse" type="string"/>
    <element name="qualite" type="doss:qualiteType"/>
    <element name="type" type="doss:typeType"/>
    </sequence>
    </complexType>
    <complexType name="naissanceType">
    <sequence>
    <element name="dateNaissance" type="string"/>
    <element name="lieuNaissance" type="string"/>
    <element name="paysNaissance" type="doss:paysNaissanceType"/>
    </sequence>
    </complexType>
    <complexType name="paysNaissanceType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="codeNationaliteType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="codeMatrimonialType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="qualiteType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="typeType">
    <sequence>
    <element name="code" type="string"/>
    </sequence>
    </complexType>
    </schema>
    3) I get the file well but when I tried to count the number of 'dossier' with
    ora:countNode('Receive_File_Read_InputVariable','dossiers','/ns3:dossiers/ns3:dossier')
    I always have a result = 0
    An idea ?

    Hi,
    The problem I understood was like this....
    If you are using the ora:countNodes(1,2,3) function then use only the three parameters inside and the last two is option anyway.
    If you are using the count(bpws:getVariableData(1,2,3)) then make sure you use the get bpws:getVariableData function.
    What the main difference is that bpws:getVarialbleData() function...
    count() function works with bpws:getVariableData() function....
    ora:countNodes() function will work with without bpws:getVariableData() function ... the way of using the inside three parameters is same for either ways.
    All the best if it woks... It woked me always...
    --Khaleel.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problems in using database link

    Hi all,
    I have problems in using the following created database link:
    Name: fzanalyze
    User: fzanalyze
    PWD: xxx
    Host: fz.domain.com
    I get the following error message, if I try to start this select:
    select * from tab@fzanalyze;
    FEHLER in Zeile 1:
    ORA-12154: TNS:Couldn't resolve service name
    The problem, the TNS is correct, because I copied the hoststring from the tnsnames.ora. Also I can connect to the database by using the given hostname as follows:
    connect fzanalyze/[email protected]
    connected
    What could be the problem, the I get the tns-Error, although I can connect normal to the database??
    Thanks for helping
    Dana

    Dana,
    Unlike Kamal, I don't use SQLNET anymore (isn't it obsolete from 8i+?), so I don't have any sqlnet.ora on my client or server.
    I'm not really a sysop, so no clever thoughts behind the following ideas, I just use these for development purposes at home:
    IP range at home = 192.168.x.x segment (another router server connects to the internet)
    Oracle server computer name = dbserver.seinpost.nl (local address = 192.168.1.110)
    instance entry in $TNS_ADMIN/listener.ora @ server:
        (SID_DESC =
          (GLOBAL_DBNAME = inst04.seinpost.nl)
          (ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1)
          (SID_NAME = inst04)
        )instance entry in $TNS_ADMIN/tnsnames.ora @ server:
    INST04.SEINPOST.NL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = dbserver.seinpost.nl)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )instance entry in tnsnames.ora @ client:
    INST04 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
              (HOST = 192.168.1.110)
                (PORT = 1521)
        (CONNECT_DATA =
          (SERVICE_NAME = inst04.seinpost.nl)
      )So again, no sqlnet.ora and as you can see only on my client I use local IP addresses to prevent my client for searching the internet for the non-existing dbserver.seinpost.nl address
    Hope this helps,
    Michiel

  • Problem in using String in Implicit Cursor

    Hi,
    I am facing problem in using String in Implicit Cursor:
    I have initialise
    DECLARE
    v_grant varchar2(4000);
    begin
    v_grant:='SELECT TABLE_NAME FROM DUMP_USER_TABLES WHERE TABLE_NAME LIKE ';
    FOR obj IN (SELECT v_grant||'''BS%''' FROM dual) LOOP
    V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
    DBMS_OUTPUT.PUT_LINE('THE REVOKE STATEMENT IS'||V_REVOKE);
    num := num + 1;
    END LOOP;
    END;
    I am not getting the value from obj.TABLE_NAME its coming as 'obj.TABLE_NAME'
    Kindly anyhelp will be needful for me

    Besides from what Sybrand already pointed out clearly:
    Your example doesn't run at all:
    MHO%xe> DECLARE
      2  v_grant varchar2(4000);
      3  begin
      4  v_grant:='SELECT TABLE_NAME FROM DUMP_USER_TABLES WHERE TABLE_NAME LIKE ';
      5  FOR obj IN (SELECT v_grant||'''BS%''' FROM dual) LOOP
      6  V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
      7  DBMS_OUTPUT.PUT_LINE('THE REVOKE STATEMENT IS'||V_REVOKE);
      8  num := num + 1;
      9  END LOOP;
    10  END;
    11  /
    V_REVOKE:='REVOKE ALL ON ' || 'obj.TABLE_NAME' || ' FROM ' || '''TEST''';
    FOUT in regel 6:
    .ORA-06550: line 6, column 1:
    PLS-00201: identifier 'V_REVOKE' must be declared
    ORA-06550: line 6, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 7, column 49:
    PLS-00201: identifier 'V_REVOKE' must be declared
    ORA-06550: line 7, column 1:
    PL/SQL: Statement ignored
    ORA-06550: line 8, column 1:
    PLS-00201: identifier 'NUM' must be declared
    ORA-06550: line 8, column 1:
    PL/SQL: Statement ignoredI guess you need to read up on quoting strings properly and probably also dynamic SQL.
    But:
    WHAT are you trying to do anyway?
    I cannot parse your code at all...so what is your requirement in human language?

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • Problem in using coherence for caching

    Hi,
    I have a DB table which has close to 4000 entries. I am trying to query the DB and store the resultant XML in the cache. I have written a Java API which first checks if a particular Key is in the cache. What I get from the API is a java object which needs to be converted to XML.
    I am using the ora:getContentAsString function to convert the Object to String and then using ora:parseEscapedXML() to convert the string to XML. This works fine when the number of entries in the DB is less. But this doesn't work when the number of entries is more as is in my case.
    The problem I suspect is that ora:getContentAsString is not able to convert the whole java object to string and so the ora:parseEscapedXML() is trying to convert an incomplete string to XML which it is not able to.
    Any suggestions on this are welcome.
    Thanks,
    Shyam

    Hi Shyam
    Looks to be an DOM parsing issue. Its better if you could try using SOA 11.1.1.3.0 and if not resolved then log an SR with Oracle Support Team with testcase.
    Regards
    A

  • Problem about using Oracle Form 6i to connect Oracle Database 10g express.

    Sorry to interrupt all of you.
    I have encountered a problem about using Oracle Form 6i to connect Oracle Database 10g express.
    As I would like to
    I use Oracle Net8 Easy Config to create a connection.
    According to "tnsnames.ora", the paramater of connection is as follows;
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA = (SID = XE))
    Unfortunately, when I use Oracle Net8 Easy Config to test the connection, an error message is prompted as follows:
    Connecting....
    The test did not succeed.
    ORA-03106: fatal two-task communication protocol error
    There may be an error in the fields entered
    or the server may not be ready for a connection.
    You can check the server and retry, or continue.
    After I google it, I still have no idea how to solve the problem. I would like to ask, could anyone mind providing some hints or solution to address the issues.
    Thanks for your assistance in advance.

    I don't believe the Net8 Easy Config (NEC) will create a compatible entry in the tnsnames.ora. I have Forms 6i running successfully against a 10g Express database, but I did not use the NEC - I created the entry myself. Here is the entry I use:
    XE=
      (DESCRIPTION=
        (ADDRESS=
          (PROTOCOL=TCP)
          (HOST=<<servername or IP address>>)
          (PORT=1521)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=XE)
      )Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Problem with TSNNAMES.ORA

    Hi all,
    I have a problem with tsnnames.ora file. After i installed obiee and when i careated dsn and when i test it the connection is failed. My OS is windows vista and i cant find the path for the TSNNAMES.ORA in my system. Any help is highly appreciated
    Thank You All

    Hi User,
    The best thing to do to ensure connectivity with Oracle databases is a tnsping command. If you can tnsping it, then OBIEE should be able to connect to it.
    Here's how you do that:
    1. Go to Start -> Run -> cmd
    2. type in: tnsping <tns entry name> e.g: tnsping ORCL
    3. View the response. The response will tell you if it connected successfully, and which tns file it used.
    Good luck and let me know if this helps.
    -Joe

  • Facing problem in using webutil

    hello,
    i have oracle developer suite 10g (9.0.4), which have not webutil capabilities,
    i download the webutil 1.0.6, and manually made all the required chages,but facing problem in using all the fuctions, firstly it return value or string exception (ora-06502) and after that it always return NO_data_found(01403) exception,
    Please! help on this
    regards,
    sidharth

    In order for us to help you will need to provide a lot more information. However, I would start with this:
    1. Have you compile the webutil.pll file in to a .plx?
    2. Is the PLX included in the FORMSxx_PATH?
    3. Have you attached the WebUtil objects (from the Object Library) to your form?
    4. If you are developing your form on Windows and trying to run it on Unix, have you recompiled the PLL and FMB?
    5. If you sub-classed the WebUtil objects in to your form, the webutil OLB will need to be in the FORMSxx_PATH
    Try using the WebUtil Demo form:
    http://www.oracle.com/technology/products/forms/htdocs/webutil/Webutil_demo.zip
    Read the WebUtil doc. It may be necessary to detach and reattach the WebUtil Library. Then execute a COMPILE_ALL. Refer to the WebUtil doc Section 5.1 "Adding The Required Objects"
    http://www.oracle.com/technology/products/forms/htdocs/webutil/web_util.pdf

  • Oracle 9i Problem when using multicolumn bulk update with "save exceptions"

    I'm running into a problem with Oracle 9i when running a multicolumn update with "save exceptions". The problem occurs when updating 4 or more fileds. (The data being updated are 40 character text strings)
    I'm updating 1000 records at a time, in bulk.
    The problem goes away when I don't use "save exception" (i.e. catch the exception the normal "pre-Oracle 9i" way) or when I use "save exception" with 3 or fewer fields.
    (I don't get any exceptions when running without the "save exception")
    Thanks

    The problem is an ORA-14403 error detected during bulk updates only when "save exception" is used with more than 3 fields being updated.
    Remove the "save exception" I can update any number of fields.
    or
    Reduce the number of fields being updated to 3 or less and use save exceptions and the 14403 error goes away.
    (I'd like to use "save exception" without having to break the "update" into two separate 3 field updates.)
    Thanks,
    Len

  • Problem connecting using VB Oracle Data Control oradc.ocx but otherwise ok.

    I am trying to run one of the sample vb apps DataCtrl that uses the Oracle Data Control (oradc.ocx) to simplify connecting to a database and getting the data into a databound control. I have tried every combination of name/id/pw and get the same error - ORA-12154:TNS:could not resolve service name.
    I have 2 of the sample databases created - "employees" and "demo". Using XE, i can open and view both db's with no problem. Using the ODBC configuration dialog I can configure and test the connection to both and tests ok. I have used programs to convert Oracle to Excel and Excel to Oracle and both find the db with no problem either.
    If I tnsping to XE, employees or demo, the response is negative. The file tnsnames.ora exists in the /admin dir and lists only XE. The file sqlnet.ora has nothing (except comments) in it.
    I have read every bit of documentation on the internet and no help. I just opened "employees" and "demo" again with XE without a problem. However when I try to run the Oracle/Excel conversion programs now, they are now showing the 'name error also. I have tried both the sample VB app and the Oracle/Excel converter programs with XE/employees open and closed and it makes no difference.
    Everything that I have read indicates that you should be able to use the actual db name, ie; "employees". I have run out of combinations of names/ids/pws and hope I can get some help here. Thanks in advance.

    The firewall was blocking TNSLSNR.exe!

Maybe you are looking for