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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • 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,

  • 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

  • Ora:countNodes coding issue

    I try to get the node count by the ora:countNodes api, but it's just return 0. The following lines list the detail.
    Namespace: xmlns:coaebmebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1"
    Variable: curCOA
    Type: coaebmebo:GLAccountValidation (the element name in the xsd file is GLAccountValidation)
    Target Node: coaebmebo:GLElementValue (the element name in the xsd file is GLElementValue)
    Code (both return 0) : ora:countNodes('curC0A','GLAccountValidation', '/coaebmebo:GLElementValue')
    ora:countNodes('curC0A','GLAccountValidation', '/coaebmebo:GLAccountValidation/coaebmebo:GLElementValue')
    SourceXML:
    <curC0A>
    <GLAccountValidation xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">
    <corecom:GLAccountIdentification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2">
    <corecom:BusinessComponentID schemeID="" schemeAgencyID="" schemeVersionID=""/>
    <corecom:ID schemeID="" schemeAgencyID="" schemeVersionID="">631353532353231</corecom:ID>
    <corecom:ApplicationObjectKey>
    <corecom:ID schemeID="" schemeAgencyID="" schemeVersionID=""/>
    </corecom:ApplicationObjectKey>
    <corecom:Revision>
    <corecom:Number schemeID="" schemeAgencyID="" schemeVersionID=""/>
    <corecom:Code listID="" listAgencyID="" listVersionID=""/>
    </corecom:Revision>
    </corecom:GLAccountIdentification>
    <coa:ValidityDate xmlns:coa="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">2009-06-05T09:35:13-07:00</coa:ValidityDate>
    <coa:GLElementValue xmlns:coa="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">
    <coa:SequenceNumber>1</coa:SequenceNumber>
    <coa:GLElementCode listID="" listAgencyID="" listVersionID="">1101</coa:GLElementCode>
    <coa:Value>01</coa:Value>
    </coa:GLElementValue>
    <coa:GLElementValue xmlns:coa="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">
    <coa:SequenceNumber>2</coa:SequenceNumber>
    <coa:GLElementCode listID="" listAgencyID="" listVersionID="">1102</coa:GLElementCode>
    <coa:Value>000</coa:Value>
    </coa:GLElementValue>
    <coa:GLElementValue xmlns:coa="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">
    <coa:SequenceNumber>3</coa:SequenceNumber>
    <coa:GLElementCode listID="" listAgencyID="" listVersionID="">1103</coa:GLElementCode>
    <coa:Value>1110</coa:Value>
    </coa:GLElementValue>
    <coa:GLElementValue xmlns:coa="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">
    <coa:SequenceNumber>4</coa:SequenceNumber>
    <coa:GLElementCode listID="" listAgencyID="" listVersionID="">1104</coa:GLElementCode>
    <coa:Value>1728</coa:Value>
    </coa:GLElementValue>
    <coa:GLElementValue xmlns:coa="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ChartOfAccounts/V1">
    <coa:SequenceNumber>5</coa:SequenceNumber>
    <coa:GLElementCode listID="" listAgencyID="" listVersionID="">1105</coa:GLElementCode>
    <coa:Value>000</coa:Value>
    </coa:GLElementValue>
    </GLAccountValidation>
    </curC0A>
    And another issue is, do you know that it's a convenient way to validate the code? It's really time costly by deploying the process.
    Thanks in Advance
    Edited by: TsinHua on Jun 7, 2009 12:03 AM

    Hi James,
    The following codes are the part of the xsd that related with the issue.
         <xsd:element name="ProcessGLAccountValidation" type="ProcessGLAccountValidationType"/>
         <xsd:complexType name="ProcessGLAccountValidationType">
              <xsd:sequence>
                   <xsd:element ref="corecom:ChartOfAccountsIdentification" minOccurs="0"/>
                   <xsd:element name="ValidityDate" type="corecom:DateType" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Indicate the default date on which you want to check if GL Account is valid or not. This could be the date in the past, current or future.</xsd:documentation>
                        </xsd:annotation>
                   </xsd:element>
                   <xsd:element ref="GLAccountValidation" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
              <xsd:attribute name="actionCode" type="corecom:ActionCodeType"/>
         </xsd:complexType>
         <xsd:element name="GLAccountValidation" type="GLAccountValidationType"/>
         <xsd:complexType name="GLAccountValidationType">
              <xsd:sequence>
                   <xsd:element ref="corecom:GLAccountIdentification" minOccurs="0"/>
                   <xsd:element name="ValidityDate" type="corecom:DateType" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>Indicate the date on which you want to check if this GL Account is valid or not. This could be the date in the past, current or future.</xsd:documentation>
                        </xsd:annotation>
                   </xsd:element>
                   <xsd:element ref="GLElementValue" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
         </xsd:complexType>
         <xsd:element name="GLElementValue" type="GLElementValueType">
              <xsd:annotation>
                   <xsd:documentation>
    A sequenced set of account codes that form a GL Account which is used to record transaction.
    </xsd:documentation>
              </xsd:annotation>
         </xsd:element>
         <xsd:complexType name="GLElementValueType">
              <xsd:sequence>
                   <xsd:element name="SequenceNumber" type="corecom:PositiveIntegerType" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>
    Sequence in which the GL Element appears in the Account Code Combination
    </xsd:documentation>
                        </xsd:annotation>
                   </xsd:element>
                   <xsd:element name="GLElementCode" type="corecom:CodeType" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>
    Indicate the unique code for this GLElement. E.g. Department, Company, Cost Center.
    </xsd:documentation>
                        </xsd:annotation>
                   </xsd:element>
                   <xsd:element name="Value" type="corecom:StringType" minOccurs="0">
                        <xsd:annotation>
                             <xsd:documentation>
    The GL Element value - e.g. Account Number
    </xsd:documentation>
                        </xsd:annotation>
                   </xsd:element>
                   <xsd:element name="Custom" type="corechartofaccountscust:CustomGLElementValueType" minOccurs="0"/>
              </xsd:sequence>
              <xsd:attribute name="actionCode" type="corecom:ActionCodeType" use="optional"/>
         </xsd:complexType>

  • 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

  • Xws-security returns always HTTP 200

    Hi,
    I am using libraries of JWSDP 2.0, jaxws and xws-security.
    My web service was generated from a WSDL schema and works so
    far fine. I need to secure the transportation with a xml signature.
    For that I am using the xws libraries.
    My problem is that xws-security and jaxws returns always HTTP 200. I
    would expect a negative HTTP status code if the signature validation
    fails, such as HTTP 401 or HTTP 500 or whatever.
    Is this a bug or any idea what my problem might be ?
    Thanks,
    Simel.

    Hi,
    I am using libraries of JWSDP 2.0, jaxws and xws-security.
    My web service was generated from a WSDL schema and works so
    far fine. I need to secure the transportation with a xml signature.
    For that I am using the xws libraries.
    My problem is that xws-security and jaxws returns always HTTP 200. I
    would expect a negative HTTP status code if the signature validation
    fails, such as HTTP 401 or HTTP 500 or whatever.
    Is this a bug or any idea what my problem might be ?
    Thanks,
    Simel.

  • 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.

  • BAPI returns always 0 record

    Hello,
    We created in SAP(SE37) two functions to provide records from table BAPIORDERS Table.
    Both functions are RFC enabled.
    The functions are called with .net connector 2.0 and visual studio 2003 Ver.7.1.3088. Also we use the patch available in OSS note 506603.
    Calling of function 1 works fine. We get the correct record count and the according records.
    Function 2 returns always 0 as record count and in according to this, no records.
    The non table parameters are ok and there are no errors  reported. The selection parameters are OK
    Same result when we build a proxy with both or only one of the functions.
    No others functions added to the proxy.
    Thanks for help!

    Two possible reason:
    1. The function returns values, but they are not correctly unmarshalled. This could happen if something with the XML attributes is wrong.
    2. The function doesn't return anything.
    To find out if it's 1. or 2., you could use a network sniffer or turn on RFC trace. Check if there is the expected ammount of data is really returned. If 2. turns out to be the case, I recommend to use Abap-Debug feature to see if the paramter really arrive in the for as expected and why the function doesn't return anything.

  • SG500 SNMPv2 64bit counter returns always 0

    Hi
    Cisco SG500 returns always Zero/0 (at least) for this OID's
    IF-MIB::ifHCInUcastPkts
    IF-MIB::ifHCOutUcastPkts
    here's an example from two interfaces (gigabitethernet1/1 and gigabitethernet1/2)
    IF-MIB::ifHCInUcastPkts.49 = Counter64: 0
    IF-MIB::ifHCInUcastPkts.50 = Counter64: 0
    IF-MIB::ifHCOutUcastPkts.49 = Counter64: 0
    IF-MIB::ifHCOutUcastPkts.50 = Counter64: 0
    The switch is running firware version 1.3.0.62

    Here's my fa7 statistics
    switchce82d3#show interfaces counters fa7                                      
          Port       InUcastPkts  InMcastPkts  InBcastPkts    InOctets
          fa7           44632        150685       23521       45163926
          Port       OutUcastPkts OutMcastPkts OutBcastPkts  OutOctets
          fa7           46099        80977          11        12040129
    Alignment Errors: 0
    FCS Errors: 0
    Single Collision Frames: 0
    Multiple Collision Frames: 0
    SQE Test Errors: 0
    Deferred Transmissions: 0
    Late Collisions: 0
    Excessive Collisions: 0
    Carrier Sense Errors: 0
    Oversize Packets: 0
    Internal MAC Rx Errors: 0
    Symbol Errors: 0
    Received Pause Frames: 0
    Transmitted Pause Frames: 0
    switchce82d3#
    The in octects match up as expected but I see the same discrepency of the other OID's, all values of Zero
    -Tom
    Please mark answered for helpful posts

  • ILinksManager::GetListCount() returns always 0

    Hello,
    I am trying to get the list of all images of a document but the function GetListCount() of ILinksManager returns always 0.
    What did I do wrong?
    IDocument* FrontDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();
    InterfacePtr<ILinksManager> lnkMgr (FrontDoc, IID_ILINKSMANAGER);
    if(nil != lnkMgr)
         int32 linkCount = lnkMgr->GetLinkCount();
         printf("linkCount : %d", linkCount);
    Regards,
    David

    Hello David,
    the ILinksManager manages IDataLink objects which are use in CS3 and deprecated since CS4. Use ILinkManager (without s) with and empty query to get all ILink UIDs.
    Markus

  • Ora-01841 returned

    Hi,
    ***Condition***
    - Table1 has
    [field1] : varchar2 (20)
    (data: '20110301', '20110302', ... (No null values))
    - View2 has
    [date1]: to_date(Table1.field1, 'yyyymmdd')
    under the condition above, ora-01841 returned by the following sql[1]:
    select date1 from View2
    where to_char(View2.date1, 'rrrr') = '2011' and substrb(to_char(View2.date1, 'mm'),1) = '03'
    i can get the records by the following sql[2]:
    select date1 from View2
    where to_char(View2.date1, 'rrrrmm') = '2011' || '03'
    any idea of the difference between sql[1] & [2]?
    *Oracle version is 11g
    Edited by: user5334162 on 2012/03/26 23:58

    This problem was solved by
    adding "ORDERED" hint & disabling cardinarity feedback option.

  • GetFetchedRowCount() in CO returns always 1 .. please help !!!!!

    Hi ,
    I am trying get the number of rows fetched in my CO.But it always returns value 1 .But in the oaf page i am getting 4 rows.but in the controller it is always returing 1 for the first time i click on go button but when i click the second time it is giving me correct number of rows. please find the code below.... let me know how to resolve this.
    Code in my Controller PFR :
    if (pageContext.getParameter("Go") != null) {
    partyId =(String)pageContext.getParameter("partyId");
    acctNum=(String)pageContext.getParameter("AccountNumber");
    Serializable[] parameters = {partyId,acctNum};
    am.invokeMethod("initAccount", parameters);
    OAViewObject vo = (OAViewObject)am.findViewObject("AccountMappingVO1");
    vo.executeQuery();
    System.out.println("vo.getQuery()"+vo.getQuery());
    int fetchedRowCount = vo.getFetchedRowCount();
    System.out.println(" fetchedRowCount -- >"+ fetchedRowCount);
    code in AM:
    public void initAccount(String partyId) {
    AccountMappingVOImpl vo = getAccountMappingVO1();
    vo.initActVal(partyId,acctNum);
    code in VO:
    public void initActVal(String partyId,String actNum){
    Number partyIdNo = null;
    try{
    partyIdNo = new Number(partyId);
    acctIdNo = new Number(actNum);
    catch(Exception e){
    String error= e.toString();
    throw new OAException(error,OAException.ERROR);
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, partyIdNo);
    setWhereClauseParam(1, acctIdNo);
    executeQuery();
    thanks
    ramya

    Y are u re-executing the VO query in CO after you are already doing it in AM? Instead of fect row count try to print, rowcount and see.
    --Mukul                                                                                                                                                                                                                                                                                                                           

  • Why is SPList.GetItems(SPQuery) returning always the same item to different SPQueries?

    Hi,
    I have this powershell code:
    $url = 'http://artemis/customers' #web URL
    $ctx = Get-SPServiceContext 'http://artemis' #site URL
    $scope = New-Object Microsoft.SharePoint.SPServiceContextScope $ctx
    $web = Get-SPWeb $url
    $listSyncZakazky = $web.Lists["bcs_Datis_t_synchronizace_Artemis_zakazky2"]; #BCS to MSSQL 2005 database table
    $listMain = $web.Lists["Zakázky"]; #custom SP list
    $camlQuery = New-Object Microsoft.Sharepoint.SPQuery
    [Microsoft.Sharepoint.SPListItemCollection]$itemsLSyncZakazky = $listSyncZakazky.GetItems()
    #foreach ($itemLSyncZakazky in $itemsLSyncZakazky) {
    foreach ($itemLSyncZakazky in $listSyncZakazky.Items) {
    ## happens for both of the ^above^ lines
    $camlQuery.Query = "<Where><Eq><FieldRef Name=`"CisloZ`" /><Value Type=`"Text`">" + ($itemLSyncZakazky["cislo_zakazky"]).TrimStart("0") + "</Value></Eq></Where>"
    $camlQuery.Query
    $camlItems = $listMain.GetItems($camlQuery)
    foreach ($item in $camlItems) {
    $item["CisloZ"]
    $camlItems[0]["CisloZ"]
    $web.Dispose()
    This returns the following:
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">404</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">300</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">306</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">400</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">200</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">206</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">40303</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">40300</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">40301</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">5801</Value></Eq></Where></Query>
    404
    404
    No matter what I do, from the second item in the collection I get the result from the first one although the CAML query is clearly modified. I tried to create new external content type, have the CisloZ column type as number and text and
    no matter what I do I always get the same result.
    I use similar code elsewhere and it is working. What could be wrong here?
    Martin

    Hi,
    I tried removing $camlItems and it didn't help. Now I moved the $camlQuery
    = New-Object
    Microsoft.Sharepoint.SPQuery insided the foreach and rremove it at its end and it works now. Thanks!
    However this looks like a bug in SPQuery to me.
    m.

  • Help: ItemAttachmentGetCurrentIndex returns always -1

    HI
    Since our customer upgraded GroupWise from 6.0.4 to 6.5.1 the function
    ItemAttachmentGetCurrentIndex() seams not to work anymore. When I debug
    to the specific code line I found that no matter what item is selected in
    the attachment view of an open email the return value is -1
    With GW 6.0.4 this call worked fine:
    res = GWDDE.Execute("ItemAttachmentGetCurrentIndex()", index)
    Thank you for your help
    Dieter

    It depends on what implementation you are running on, but WTK 2.2, for example, always seem to use the chunked transfer encoding when doing a POST and there is no Content-Length header in the request headers, and if the server reply is also sent using the chunked transfer encoding there will be no Content-Length header in the reply headers either
    regards
    simon

  • Ora-06550 returning data from Stored Procedure and Entity Data Model

    Hi.
    I'm creating an application that uses a WCF Service to return data. I also created a proyect with the EDMX design and mapped most of my DBModel to a classes context. I have added some of the procedures as well. One of them receive some parameters and return a Sys_RefCursor, that is populated according to the parameters.
    I have declared the "<add >" tags in the Web.Config and imported the function of the Procedure. When I call the Asyncronous function I get different exceptions:
    1. If I call the function, with all of the parameters i get:
    Oracle.DataAccess.Client.OracleException: ORA-06550: línea 1, columna 8:
    PLS-00306: número o tipos de argumentos erróneos al llamar a
    'SP_HECHOSJURITER'
    ORA-06550: línea 1, columna 8:
    (wrong number or types of arguments in call to 'SP_HECHOSJURITER')
    2. If i just set 1 parameter in the SP, returning the same type of data, I get:
    Error al recibir la respuesta HTTP a
    http://localhost/Procalculo.CGFM.SIGOC.DatosServices/ServiceDatos.svc.
    (failed to receive http response. error 12152)
    3. If I don't set any parameters in the procedure, it works fine, and return correct data.
    It exclusively happen with one entity.
    Any clue?
    I appreciate any help.

    When you return result sets from stored procedures to Entity Framework, you are very likely using implicit result sets. Implicit result sets don't need to be declared as a parameter in code, only in the <add> tags to define the metadata in the .NET config file.
    For example, in the EF Oracle By Example, you'll see that the stored procedure in the function import has three parameters, but only two are declared in the code. The third one was defined in the config file.
    http://download.oracle.com/oll/obe/EntityFrameworkOBE/EntityFrameworkOBE.htm

Maybe you are looking for

  • Get old and new values from DBTABLOG table

    Hi, I am developing a report to display all changes to some fields of PKHD table over a date range. CDHDR & CDPOS do not capture the changes while DBTABLOG does. But the variable key field (LOGDATA) in DBTABLOG does hold encrypted values which need t

  • Ical broken in 10.5.5?

    I downloaded the latest os release, and now ical appears to be broken. Is the download, or something else that I have done wrong? I opens up, but I can't add an appt or see any calendars. Also, the month in the lower left is January, 2001. Is it just

  • Chart Error - scroller positions should be positive and integer

    <p> Hello Expert I have created a flash chart with two filters on the chart region. i) ‘Select list with submit' ----- (:P23_TRC) ii) ‘Radio button with submit' -----(:P23_IMPACTC) The chart should display as per the filters selection. However, I get

  • My Airport Extreme Disconnects From the Cable MoDem Every Few Minutes

    Hello, I start a new topic as my previous title was wrong and there was no suitable answer. I have had an Airport Extreme for 3 years and it sometimes disconnects after a few minutes. Actually, it more looks like that the Airport crashes: the "PC Lin

  • Problem in paintComponent()

    i have a java class Post which is called from another java class.The Post class extends a JPanel. The constructor of this class is called. But the paintComponent() method is not called....This problem is ocurring in some of the computers only....and