XPath query string returns zero node error

I have created car loan bpel application. One is Citi Loan and another is Star Loan.
I have created just like similar to sample loan demo.
I have entered the SSN, email, carModel, carYear, loanAmount and creditRating value and submitted. It will initiated the following tasks successfully.
StarLoan Instance
CitiLoan Instance
TaskManager Instance
CreditRating Instance
Root appln. instance
I have created one user approval page for Approve/Reject (jsp). Through this page, I have approved the CitiLoan offer. I have faced the following errors.
<output>
<part name="payload" >
<loanOffer>7.4</loanOffer>
</part>
</output>
<loanOffer>7.4</loanOffer>
<selectionFailure>
<part name="summary" >
<summary>XPath query string returns zero node. According to BPEL4WS spec 1.1 section 14.3, The assign activity <to> part query should not return zero node. Please check the BPEL source at line number "90" and verify the <to> part xpath query. </summary>
</part>
</selectionFailure>
Please help me.
Thanks in advance.
Regards,
Sara

Let us know if you have customized SOA composite for user creation approval?
-Vamsi.

Similar Messages

  • XPath query string returns zero node...

    Hi,
    I try to filling value of node's in "java embedding" activity, but i got Subj. error.
    Text java code is :
    setVariableData("MesAQ_Enqueue_Variable", "Soob", "/ns2:Soob/ns2:CtrlFraseAsProps/ns2:Field[2]/ns2:npp", "12345");
    I know, node with index 2 not exist, but where i can add it, before set value ?
    Thanks
    Evgeniy

    <copy>
    <from expression="ora:addChildNode(bpws:getVariableData(&quot;output&quot;, &quot;payload&quot;, &quot;/tns:bpelResponse/tns:results&quot;), bpws:getVariableData('testResult'))"></from>
    <to variable="output" part="payload" query="/tns:bpelResponse/tns:results"/>
    </copy>
    It adds the object testResult into the array results and then saves the updated array back into results.
    There are tutorials on this that should either come installed with BPEL, or there are also ones on Oracle's site here, if you need to see more complete examples of array usage.

  • Error: XPath query string returns multiple nodes

    Hi all,
    I am facing issue with the assign activity.
    Error message:
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} parts: {{ summary=&lt;summary>*XPath query string returns multiple nodes. The assign activity part and query are returning multiple nodes. The assign activity part and query named in the error message returned multiple nodes. It should return single node. According to BPEL4WS specification 1.1 section 14.3, the assign activity part and query named in the error message should not return multiple nodes. Verify the part and xpath query named in the error message at line number 2005 in the BPEL source*.
    BPEL code:
    <copy>
    <from variable="Invoice_Tax_loopCounter"/>
    <to variable="Var_Invoice_Tax_Contacts" part="payload" query="/ns30:Invoice_Tax_Contacts/ns30:Invoice/ns29:Get_InvoiceOutput[bpws:getVariableData'Invoice_Tax_loopCounter')]/ns29:ADDR_ATTRIBUTE2"/>
    </copy>
    We are using SOA 11.1.1.3 version.
    Any pointers on this?
    Thanks in advance

    Hi-
    This is because you are have multiple nodes either in source or target XML.
    My guess is some nodes of your XML might be repeating (means a single element/node has multiple values). Can you please check that or please post your XML here.
    Edited by: 145678 on Mar 7, 2011 6:28 PM

  • Human Workflow Task XPath query string returns multiple nodes.

    I am looking for trouble shooting help for this error. I am no sure if it is a server or jdev issue.
    I am running JDev version 10.1.3.3 and console version 10.1.3.1.0 locally.
    General information on the BPEL process:
    I have a temporary table in Oracle lite that I created items to be review by the user. I created a synchronous BPEL process. The first step in developing this process, I created the straight forward invoke the table to get the records, transform the records with a change the approve flag = "Y", and invoke the table to update the records. Works like a charm. I followed the online tutorial by dropping a human task after the transform, configured the parameters, setup the assignments, and moved the invoke to update table under the approved condition. If the table has only one record, the process runs great but if there are two records I get the following error message.
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>XPath query string returns multiple nodes.
    According to BPEL4WS spec 1.1 section 14.3, The assign activity part and query /ns3:TempItemCollection/ns3:TempItem/ns3:ItemNbr should not return multipe nodes.
    Please check the BPEL source at line number "178" and verify the part and xpath query /ns3:TempItemCollection/ns3:TempItem/ns3:ItemNbr.
    </summary>
    </part></selectionFailure>
    =================
    The error occurs in the first assign of the Human task after the assign copies the fields for the title. I underlined line number 178.
    <correlationSets>
    <correlationSet name="WorkflowTaskIdCor"
    properties="taskservice:taskId"/>
    </correlationSets>
    <sequence>
    <assign name="HumanTask1_1_AssignTaskAttributes">
    <copy>
    <from expression="concat(ora:getProcessURL(), string('/HumanTask1/HumanTask1.task'))"/>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:taskDefinitionURI"/>
    </copy>
    <copy>
    <from expression="number(3)"/>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:priority"/>
    </copy>
    <copy>
    <from>
    <payload xmlns="http://xmlns.oracle.com/bpel/workflow/task">
    <Case xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <CourtDate xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <ErrorMessage xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <ItemName xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <Payment xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <Zip xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <ProcessFlag xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <LastUpdated xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <AddedDate xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <CityAttnyAmount xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <ApprovalFlag xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <ProlawKey xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    <ProcessKey xmlns="http://xmlns.oracle.com/bpel/workflow/task"/>
    </payload>
    </from>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:payload"/>
    </copy>
    <copy>
    <from expression="concat(string('Item Fee Approval '), bpws:getVariableData('Invoke_1_Select_RecordsSelect_OutputVariable','TempItemCollection','/ns3:TempItemCollection/ns3:TempItem/ns3:ItemName'))"/>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:title"/>
    </copy>
    <copy>
    <from variable="Invoke_1_Select_RecordsSelect_OutputVariable"
    part="TempItemCollection"
    query="/ns3:TempItemCollection/ns3:TempItem/ns3:ItemNbr"/>
    <to variable="initiateTaskInput" part="payload"
    query="/taskservice:initiateTask/task:task/task:payload/task:Item"/>
    </copy>
    <copy>
    Thank you for any help you can give me.

    Here is how I solved this problem: I was told by the metalink folks that I should use the same verion of SOA console as jdev. So I went back to jdev 10.1.3.1. Rather than reading from the Oracle lite table, I dumped the table into a flat file. I read flat file and populated the workflow. Remember to set the 'messages in batch' flag in the file adapter to 1 and the number of records to skip to zero in the format builder for the flat file. The process now reads each record and creates an instance for that each record. In other words, if I have 8 records in my flat file, I will have 8 instances of the process running on the console. Thanks Jeremy for your help figuring this out.
    Edited by: user7725126 on Nov 19, 2009 3:56 PM

  • Resolving "IOException: Underlying input stream returned zero bytes" errors

    Hi guys,
    I'm currently working on a simple application that reads GPS receiver data from a serial port using the RXTX library. However, everytime I try to read the resulting InputStream (which I convert to a BufferedReader) using readLine(), after 2 or 3 lines of reading normally, I always get the following exception:
    GPSNotifier::run(): I/O error encountered while reading from COM4
    java.io.IOException: Underlying input stream returned zero bytes
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:268)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at discomm.gps.GPSNotifier.run(GPSNotifier.java:260)
    at java.lang.Thread.run(Thread.java:619)
    I'm not sure how to fix this problem, since it occurs everytime I run the application. The code for opening the stream is as follows:
    // Open up the port: no problems here ...
    CommPortIdentifier comm = CommPortIdentifier.getPortIdentifier(port_name);
    CommPort port = comm.open(APP_NAME, OPEN_TIMEOUT);
    SerialPort serial_port = (SerialPort) port;
    serial_port.setSerialPortParams(PORT_BAUDRATE, PORT_DATABITS, PORT_STOPBITS, PORT_PARITY);
    BufferedReader in = BufferedReader(new InputStreamReader(serial_port.getInputStream()));
    String line = null;
    // Problem is here ...
    while ((line = in.readLine()) != null) {
    }The IOException always occurs when readLine() is called. Any ideas on how to fix this problem?
    Thanks in advance,
    Simon Liu

    I don't use readLine() but read()
    A bit of code:
              BufferedReader inStream = new BufferedReader(new InputStreamReader(inputStream));
              byte ch = 0;
              char myChar;
              int charVal;          
              try{               
                   while((ch = (byte)inStream.read()) != -1){
                        if((ch == 13) || (ch == 10)){ //In ASCII code: 13 = Carriage return, 10 = line feed. When the GPS receiver sends those characters, the while loop must be broken to avoid an IOException                         
                             break;
                        }else{
                             myChar = (char)ch;
                        charVal = myChar;
                        //System.out.print("byte=" + ch +" myChar=" + myChar + " charVal=" + charVal + "\n");
                        System.out.print(myChar);
                   }

  • Xpath Query to find parent nodes

    My XMl is like this
    <UserAgent1>
    <Name>QTS </Name>
    <NetworkFamily>GSM</NetworkFamily>
    <NetworkSupportedMap>0x06</NetworkSupportedMap>
    </UserAgent1>
    <UserAgent2>
    <Name>QuickTime</Name>
    <NetworkFamily>GSM</NetworkFamily>
    <NetworkSupportedMap>0x06</NetworkSupportedMap>
    </UserAgent2>
    Now if they give a search String like "GSM" without specifying any tag
    Then i use the xpath query
    //*[contains(text(),'GSM')]
    This will give me the child element <NetworkFamily>GSM</NetworkFamily> . .and with this i will find out the parent element which is <UserAgent1> & <UserAgent2>
    IS there any query which will give me directly the Parent Nodes whose childnodes contain the given text ?

    Well, of course there is. But I couldn't remember how so I googled the keywords "xpath parent". The first link that came back suggested
    //*[contains(text(),'GSM')]/..
    and the second suggested the parent axis
    parent::(//*[contains(text(),'GSM')]) or maybe //parent::*[contains(text(),'GSM')]
    So yes, there's several ways. And they were easy to find with Google too.

  • XPath query error - xml extension in schema

    Hi,
    I am getting following error when i try to assign values to input xml payload before
    invoke process.
    "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown.
    <selectionFailure>
    <part name="summary" >
    <summary>XPath query string returns multiple nodes. According to BPEL4WS spec 1.1 section 14.3, The assign activity part and query /child::parameter/child::param1 should not return multipe nodes. Please check the BPEL source at line number "40" and verify the part and xpath query /child::parameter/child::param1. </summary>
    </part>
    </selectionFailure>
    The generated XPath resolves to a single node only (tested using XMLSpy). The only reason i can think of is that the xml schema in wsdl is extending a base xml type to a new type.
    It works fine if the extending xml type is merged with it's base type, and used as one single complex type.
    ------------------WSDL START
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://justdoit.ws.sunflower2.pageone.com" targetNamespace="http://justdoit.ws.sunflower2.pageone.com">
         <types>
              <xs:schema targetNamespace="http://justdoit.ws.sunflower2.pageone.com">
                   <xs:complexType abstract="true" name="BaseObject">
                        <xs:sequence>
                             <xs:element name="param1" nillable="true" type="xs:string"/>
                             <xs:element name="param2" nillable="true" type="xs:string"/>
                        </xs:sequence>
                   </xs:complexType>
                   <xs:complexType name="FooBar">
                        <xs:complexContent>
                             <xs:extension base="tns:BaseObject">
                                  <xs:sequence>
                                       <xs:element name="param3" nillable="true" type="xs:string"/>
                                       <xs:element name="param4" nillable="true" type="xs:string"/>
                                       <xs:element name="param5" nillable="true" type="xs:string"/>
                                       <xs:element name="param6" nillable="true" type="xs:string"/>
                                  </xs:sequence>
                             </xs:extension>
                        </xs:complexContent>
                   </xs:complexType>
              </xs:schema>
         </types>
         <message name="justDoItRequest">
              <part name="parameter" type="tns:FooBar"/>
         </message>
         <message name="justDoItResponse">
              <part name="parameter" type="tns:FooBar"/>
         </message>
         <portType name="justDoItPort">
              <operation name="justDoIt">
                   <input message="tns:justDoItRequest"/>
                   <output message="tns:justDoItResponse"/>
              </operation>
         </portType>
         <binding name="justDoItBinding" type="tns:justDoItPort">
              <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
              <operation name="justDoIt">
                   <soap:operation soapAction="tns:justDoIt"/>
                   <input>
                        <soap:body use="literal"/>
                   </input>
                   <output>
                        <soap:body use="literal"/>
                   </output>
              </operation>
         </binding>
         <service name="justDoItService">
              <port name="NewPort" binding="tns:justDoItBinding">
                   <soap:address location="http://127.0.0.1:8080/axis/services/justDoIt"/>
              </port>
         </service>
    </definitions>
    ------------------WSDL END
    ------------------BPEL START
              <assign name="assign-1">
                   <copy>
                        <from variable="input" part="payload" query="/tns:justDoItRequest/tns:input1"></from>
                        <to variable="req" part="parameter" query="/parameter/param1"/>
                   </copy>
              </assign>
              <invoke name="invoke-1" partnerLink="justDoIt" portType="tns:justDoItPort" operation="justDoIt" inputVariable="req" outputVariable="res"/>
    ------------------BPEL END
    reg,
    Amitoj.

    I am also having the xml extension issue and since we are dealing with large WSDL files (exceed 40,000 lines) it would be ridiculous to move all extension classes to the base type (parent class). Has this bugged been looked at and when can it be resolved since it seems to be a major issue in JDeveloper.
    Chris

  • GetNodes returing Mulitple nodes error

    Hi All,
    I am trying to use xpath query getNodes to get the each node from the xml and assign to the variable of type element.
    When i ran it i am ending with error as below. I am sure what have give is correct.
    XPath query string returns multiple nodes. The assign activity part and query are returning multiple nodes. The assign activity part and query named in the error message returned multiple nodes. It should return single node. According to BPEL4WS specification 1.1 section 14.3, the assign activity part and query named in the error message should not return multiple nodes. Verify the part and xpath query named in the error message at line number 203 in the BPEL source.
    Could some one please help me here.
    My assign activity
    <assign name="Asg_getNodesReceipt">
          <copy>
            <from expression="ora:getNodes('CtReceivingUpload','/ns14:receipts/ns14:receipt[$count]')"/>
            <to variable="receipttest" query="/ns14:receipt"/>
          </copy>
        </assign>receipttest is the variable of element type receipt.
    XSD is here :-
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd"
                targetNamespace="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd"
                elementFormDefault="qualified">
      <xsd:element name="receipts">
        <xsd:complexType>
        <xsd:sequence>
        <xsd:element minOccurs="1" maxOccurs="unbounded" ref ="receipt"/>
        </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="receipt">
      <xsd:complexType>
      <xsd:complexContent mixed="false">
      <xsd:extension base="InterfaceEntity">
      <xsd:sequence>
      <xsd:element minOccurs="0" maxOccurs="1" name="Appointment" type="Appointment"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="ArrivedDate" type="xsd:dateTime"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="InternalRecNum" type="xsd:int"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="ReceiptId" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="ReceiptType" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="Details" type="ReceiptDetailList"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="ReceiptContainers" type="ReceiptContainerList"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="Appointment">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="ApptDateTime" type="xsd:dateTime"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ReceiptDetailList">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="unbounded" name="ReceiptDetail" nillable="true" type="ReceiptDetail"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ReceiptDetail">
    <xsd:complexContent mixed="false">
    <xsd:extension base="InterfaceEntity">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="ErpOrderNum" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="SKU" type="SKU"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="SKU">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="Item" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ReceiptContainerList">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="unbounded" name="ReceiptContainer" nillable="true" type="ReceiptContainer"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ReceiptContainer">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="ContainerId" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="ReceiptDetail" type="ReceiptDetail"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="Qty" type="xsd:decimal"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="Status" type="xsd:int"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="InterfaceEntity">
    <xsd:sequence>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef1" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef2" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef3" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef4" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef5" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef6" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef7" type="xsd:decimal"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserDef8" type="xsd:decimal"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="UserStamp" type="xsd:string"/>
    <xsd:element minOccurs="0" maxOccurs="1" name="appt_nbr" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    XML is here:-
    <receipts xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd" xmlns="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd"><ns6:receipt><ns6:appt_nbr>N</ns6:appt_nbr><ns6:ArrivedDate>2012-11-28T15:31:40</ns6:ArrivedDate><ns6:InternalRecNum>1001473</ns6:InternalRecNum><ns6:ReceiptId>16173</ns6:ReceiptId><ns6:ReceiptType>ASN</ns6:ReceiptType><ns6:Details><ns6:ReceiptDetail><ns6:UserDef3>10000</ns6:UserDef3><ns6:UserDef7>1.00000</ns6:UserDef7></ns6:ReceiptDetail><ns6:ReceiptDetail><ns6:UserDef3>10000</ns6:UserDef3><ns6:UserDef7>1.00000</ns6:UserDef7></ns6:ReceiptDetail></ns6:Details><ns6:ReceiptContainers><ns6:ReceiptContainer><ns6:ContainerId>00099999990000017444</ns6:ContainerId><ns6:ReceiptDetail><ns6:ErpOrderNum>421431</ns6:ErpOrderNum><ns6:SKU><ns6:Item>5602001</ns6:Item></ns6:SKU></ns6:ReceiptDetail><ns6:Qty>170.00000</ns6:Qty><ns6:Status>900</ns6:Status></ns6:ReceiptContainer><ns6:ReceiptContainer><ns6:ContainerId>00099999990000017433</ns6:ContainerId><ns6:ReceiptDetail><ns6:ErpOrderNum>421431</ns6:ErpOrderNum><ns6:SKU><ns6:Item>5602060</ns6:Item></ns6:SKU></ns6:ReceiptDetail><ns6:Qty>118.00000</ns6:Qty><ns6:Status>900</ns6:Status></ns6:ReceiptContainer></ns6:ReceiptContainers></ns6:receipt><ns6:receipt><ns6:appt_nbr>Y</ns6:appt_nbr><ns6:ArrivedDate>2012-11-28T15:33:41</ns6:ArrivedDate><ns6:InternalRecNum>1001474</ns6:InternalRecNum><ns6:ReceiptId>16174</ns6:ReceiptId><ns6:ReceiptType>ASN</ns6:ReceiptType><ns6:Details><ns6:ReceiptDetail><ns6:UserDef3>10000</ns6:UserDef3><ns6:UserDef7>1.00000</ns6:UserDef7></ns6:ReceiptDetail><ns6:ReceiptDetail><ns6:UserDef3>10000</ns6:UserDef3><ns6:UserDef7>1.00000</ns6:UserDef7></ns6:ReceiptDetail></ns6:Details><ns6:ReceiptContainers><ns6:ReceiptContainer><ns6:ContainerId>00099999990000017466</ns6:ContainerId><ns6:ReceiptDetail><ns6:ErpOrderNum>421431</ns6:ErpOrderNum><ns6:SKU><ns6:Item>5602182</ns6:Item></ns6:SKU></ns6:ReceiptDetail><ns6:Qty>75.00000</ns6:Qty><ns6:Status>900</ns6:Status></ns6:ReceiptContainer><ns6:ReceiptContainer><ns6:ContainerId>00099999990000017455</ns6:ContainerId><ns6:ReceiptDetail><ns6:ErpOrderNum>421431</ns6:ErpOrderNum><ns6:SKU><ns6:Item>5602078</ns6:Item></ns6:SKU></ns6:ReceiptDetail><ns6:Qty>138.00000</ns6:Qty><ns6:Status>900</ns6:Status></ns6:ReceiptContainer></ns6:ReceiptContainers></ns6:receipt></receipts>I am happy if someone point out where i went wrong here.
    Edited by: Tarak on Nov 29, 2012 6:36 PM

    Hi vald,
    I am extremely sorry by mistake i click helpful and suppose to be correct. I am not sure i can revert it.If you know it please let me know.
    Coming to this. I am getting it as expected but only problem is i am getting namespace url in each complextype element , i am sure it would not be any issue but just want to cross check with you that we can avoid this or not
    here is output
    <receipt><receipt xmlns="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd"><ns6:appt_nbr xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd">N</ns6:appt_nbr><ns6:ArrivedDate xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd">2012-11-28T15:31:40</ns6:ArrivedDate><ns6:InternalRecNum xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd">1001473</ns6:InternalRecNum><ns6:ReceiptId xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd">16173</ns6:ReceiptId><ns6:ReceiptType xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd">ASN</ns6:ReceiptType><ns6:Details xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd"><ns6:ReceiptDetail><ns6:UserDef3>10000</ns6:UserDef3><ns6:UserDef7>1.00000</ns6:UserDef7></ns6:ReceiptDetail><ns6:ReceiptDetail><ns6:UserDef3>10000</ns6:UserDef3><ns6:UserDef7>1.00000</ns6:UserDef7></ns6:ReceiptDetail></ns6:Details><ns6:ReceiptContainers xmlns:ns6="http://www.manh.com/Custom/SOA/CtReceivingDownload/CtReceivingDownload.xsd"><ns6:ReceiptContainer><ns6:ContainerId>00099999990000017444</ns6:ContainerId><ns6:ReceiptDetail><ns6:ErpOrderNum>421431</ns6:ErpOrderNum><ns6:SKU><ns6:Item>5602001</ns6:Item></ns6:SKU></ns6:ReceiptDetail><ns6:Qty>170.00000</ns6:Qty><ns6:Status>900</ns6:Status></ns6:ReceiptContainer><ns6:ReceiptContainer><ns6:ContainerId>00099999990000017433</ns6:ContainerId><ns6:ReceiptDetail><ns6:ErpOrderNum>421431</ns6:ErpOrderNum><ns6:SKU><ns6:Item>5602060</ns6:Item></ns6:SKU></ns6:ReceiptDetail><ns6:Qty>118.00000</ns6:Qty><ns6:Status>900</ns6:Status></ns6:ReceiptContainer></ns6:ReceiptContainers></receipt></receipt>Regards,
    Tarak

  • XPath - Return current node without child nodes

    Good day.
    I hv the following XML for example and I tried to write a XPath query to return just the <AAA> and omit all the other child nodes (BBB and CCC and BBBBB) .
    <AAA Name='aaa' ID='aaa'>
    <BBB>bbbbbbbbbb</BBB>
    <BBBBB>bbbbbbbbbbbbbbb</BBBBB>
    <CCC>cccccccccc</CCC>
    </AAA>I tried //AAA/self::* but it still return the whole childnodes to me. I searched in internet as well but I didn't found any solution for that. May be I was using the wrong keywords to search.
    Any idea how to accomplish this ?
    Thanks.
    SonicWave

    XPath will only return nodes that already exist in the document. What you are asking for is another node that is constructed from that AAA node by removing all its children. I don't know how you would do that, because I don't know anything about the structures you are using (DOM? XSLT? What?). But XPath can't do it.

  • Jsp:forward param not getting included in my query string

    Hi,
    On a particular JSP page, mine.jsp, I am forwarding to a servlet ...
    <jsp:useBean id="HotelResortDBBean" class="com.lvcva.database.HotelResortDBBean" scope="request" />
    <jsp:forward page="/meetings/meeting-venues/results">
         <jsp:param name="sqftRange" value="${empty param.meetingsqft ? -1 : param.meetingsqft}" />
    </jsp:forward>This forwards to a servlet, when I query "request.getQueryString", it comes up null. However, when I enter the URL, "mine.jsp?sqftRange=-1", the query string returns "sqftRange=-1" as expected. Can someone tell me what I'm doing wrong in the above that is causing the jsp:param to not be added to the query string?
    - Dave

    a forward does not create a new request, and thus the query string is not altered. If you want the query string to change, use a redirect in stead.
    note: even though the query string does not change, the new parameter IS added to the HttpServletRequest object, so you can still fetch the new parameter from it even with the forward.

  • Retrieve xml attribute value of nth xml node using xpath query

    I have an xml with following stucture...
    <xml>
    <header>
     <DocumentReference OrderId="order001">
     <DocumentReference OrderId="order002">
     <DocumentReference OrderId="order003">
    I have to loop through this xml and retrieve the orderId values inside Biztalk orchestration.
    In the expression shape, I get the count of 'DocumentReference' nodes using an xpath query and then
    Added a loopshape to make sure it loops thru all nodes
    Loop condition:   n<=nodeCount     (where n is an integer variable, n=0 to begin with, incremented by 1 thru each loop, nodeCount is # of DocumentReference nodes)
     I try retrieve to the orderId in the following expression shape using the below xpath query
      xpathQuery = System.String.Format("//*[local-name()='OrderReference'][{0}]/@orderID)",n);
      sOrderId = xpath(MsgSingleInvoice,xpathQuery);
    And I get the following exception:
    Inner exception: '//*[local-name()='OrderReference'][1]/@orderID)' has an invalid token.
    Exception type: XPathException
    Appreciate any help!   thanks!

    Thanks for the quick response. I got rid of it.
    And I see a different error:
    Inner exception: Specified cast is not valid. Exception type: InvalidCastException
    Source: Microsoft.XLANGs.Engine  
    Target Site: System.Object XPathLoad(Microsoft.XLANGs.Core.Part, System.String, System.Type)
    Since variable 'n' is of integer type, I suspected it and changed it to n.ToString() and tested again and still see the same error.

  • Maximum length of query string for functions return a SELECT

    Hi all,
    I have a report that gets it's SELECT statement from a function, instead of being coded into the region. All was well but I suspect now I'm blowing some kind of limit as I'm getting an error :
         ORA-06502: PL/SQL: numeric or value error
         Error      ERR-1101 Unable to process function body returning query.
    However if I run the procedure out of ApEx and grab the SELECT statement then it works fine. The length of the query is 8636 bytes (yup, it's a beauty!).
    Does anyone know if there is a hard limit to the size of the string that can be returned?
    I'm using ApEx 3.1.
    Thanks,
    Steve H

    I do have a similar painfull scenario - Although my query length is very less i.e 618 bytes only.
    I have defined a stored function, which returns an SQL query string, this return SQL string executes fantastic but when I tried to to call this function from a APEX report it gives error. the details are as follows. Please help.......
    The function code:
    CREATE OR REPLACE function PROD."TEST_C_QRY"
    return VARCHAR2
    is
    msql VARCHAR2(32767);
    Begin
    msql:='Select null,statusname,AgeInd, ';
    For m_stat in (select statusname from a02_status)
    loop
    msql:= msql || q'[decode(statusname,']';
    msql:= msql || m_stat.statusname;
    msql:= msql || q'[',count(id),0) ]';
    msql:= msql || m_stat.statusname|| ',';
    end loop;
    msql:=rtrim(msql,',');
    msql:= msql||' from ';
    msql:= msql||'( ';
    msql:= msql||'select a.id, round(sysdate-a.registeredon) TimeSpan,';
    msql:= msql||'case ';
    msql:= msql||q'[when round(sysdate-a.registeredon)<=7 then 'Week' ]';
    msql:= msql||q'[when round(sysdate-a.registeredon)>7 and round(sysdate-a.registeredon)<14 then 'Fortnight' ]';
    msql:= msql||q'[when round(sysdate-a.registeredon)>14 and round(sysdate-a.registeredon)<30 then 'Month' ]';
    msql:= msql||q'[else 'More...'  end ageind,]';
    msql:= msql||'a.status_id,b.statusname ';
    msql:= msql||'from a02_task a,a02_status b ';
    msql:= msql||'where b.id=a.status_id) ';
    msql:= msql||'group by statusname,AgeInd;';
    return msql;
    end TEST_C_QRY;
    The Output SQL comes from this is
    SQL> Select null,statusname,AgeInd, decode(statusname,'Scheduled',count(id),0) Scheduled,decode(statusname,'Executing',count(id),0) Executing,decode(statusname,
    'Completed',count(id),0) Completed from ( select a.id, round(sysdate-a.registeredon) TimeSpan, case when round(sysdate-a.registeredon)<=7 then 'Week' when round
    (sysdate-a.registeredon)>7 and round(sysdate-a.registeredon)<14 then 'Fortnight' when round(sysdate-a.registeredon)>14 and round(sysdate-a.registeredon)<30 then
    'Month' else 'More...' end ageind, a.status_id,b.statusname from a02_task a,a02_status b where b.id=a.status_id) group by statusname,AgeInd;
    The result that comes when I execute the above resultant SQL is as follows.
    N STATUSNAME AGEIND SCHEDULED EXECUTING COMPLETED
    Completed More... 0 0 4
    Completed Week 0 0 1
    Scheduled Week 1 0 0
    Completed Month 0 0 3
    Executing More... 0 1 0
    Executing Month 0 6 0
    Scheduled More... 1 0 0
    7 rows selected.
    But the surprising error that comes from Oracle XE when I use the following code for stacked bar chart
    Code:
    begin
    return TEST_D_QRY;
    end;
    Error thrown by XE report builder is as follows:
    1 error has occurred
    Failed to parse SQL query!
    Select null,statusname,AgeInd, decode(statusname,'Scheduled',count(id),0) Scheduled,decode(statusname,'Executing',count(id),0) Executing,decode(statusname,'Completed',count(id),0) Completed from ( select a.id, round(sysdate-a.registeredon) TimeSpan, case when round(sysdate-a.registeredon)<=7 then 'Week' when round(sysdate-a.registeredon)>7 and round(sysdate-a.registeredon)<14 then 'Fortnight' when round(sysdate-a.registeredon)>14 and round(sysdate-a.registeredon)<30 then 'Month' else 'More...' end ageind, a.status_id,b.statusname from a02_task a,a02_status b where b.id=a.status_id) group by statusname,AgeInd;
    Certain queries can only be executed when running your application, if your query appears syntactically correct, you can save your query without validation (see options below query source).
    Regards,
    Soumen

  • Publishing server doesn't work - error 'The request URL doesn't contain the query string for the client OS'

    Hi,
    I'm trying to setup an App-V environment in my lab.
    I've used the App-V 5.0 Trial guide to help me configure all necessary components.
    I'm able to install everything without error.
    when come time to publish an app, it simply doesn't show up on my client.
    after looking at events on the client and server, I found that the Publishing server is returning under Admin the following message.
    'The request URL doesn't contain the query string for the client OS'
    My setup is pretty simple.
    App-V Server managament and Publishing on the same box
    App-V database on my SQL server.
    I'm able to see the publishing "webpage" by using http:://localhost:889.
    It only display this :
    -<Publishing Protocol="1.0"
    <Packages />
    </Publishing>
    I've published one app from the management console.
    any idea what could mean this error?
    thanks

    Hi,
    thanks for the link.
    I've validated the suggested debug steps. It seems that the problem is with my Publish server again.
    I've looked in the web.config file. It seems to be missing some parts compare to the example provided.
    Again, I've published an application from the management console. Management and Publishing are running on the same box, while SQL is remote.
    Here's the web.config
    <?xml version="1.0" ?>
    - <configuration>
    - <system.web>
    <compilation debug="false" targetFramework="4.0" />
    <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" />
    - <authentication>
    - <!-- We don't support form authentication, but this will supress x-ray security warning
    -->
    <forms requireSSL="true" />
    </authentication>
    </system.web>
    - <system.webServer>
    - <modules runAllManagedModulesForAllRequests="true">
    <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </modules>
    - <security>
    - <requestFiltering>
    - <verbs>
    <remove verb="GET" />
    <add verb="GET" allowed="true" />
    </verbs>
    </requestFiltering>
    </security>
    </system.webServer>
    - <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    + <behaviors>
    - <serviceBehaviors>
    - <behavior name="">
    <serviceAuthorization impersonateCallerForAllOperations="true" />
    <serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
    </behavior>
    </serviceBehaviors>
    </behaviors>
    - <bindings>
    - <webHttpBinding>
    - <binding name="SecureBinding">
    - <security mode="Transport">
    <transport clientCredentialType="Windows" />
    </security>
    </binding>
    <binding name="UnsecureBinding" />
    </webHttpBinding>
    </bindings>
    - <protocolMapping>
    <add scheme="http" binding="webHttpBinding" bindingConfiguration="UnsecureBinding" />
    <add scheme="https" binding="webHttpBinding" bindingConfiguration="SecureBinding" />
    </protocolMapping>
    - <standardEndpoints>
    - <webHttpEndpoint>
    - <!--
    Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
    via the attributes on the <standardEndpoint> element below
    -->
    <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />
    </webHttpEndpoint>
    </standardEndpoints>
    </system.serviceModel>
    </configuration>

  • Workflow manager 1.0 : runtime error 400 running Add-WFHost "The api-version in the query string is not supported"

    Installing Workflow Manager 1.0 for SharePoint Server 2013 SP1 everything is fine until the last step of the configuration and last powershell command : 
    Add-WFHost -WFFarmDBConnectionString 'myconnectionstring' -RunAsPassword $WFRunAsPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -CertificateAutoGenerationKey $WFCertAutoGenerationKey -Verbose;
    gives me the following error : 
    Add-WFHost : The remote server returned an error: (400) Bad Request. The api-version in the query string is not supported. Either remove it from the Uri or use one of '2012-03'..TrackingId:412684e3-3539-468e-91e6-17838c6eaa55_GS
    P,TimeStamp:04/04/2014 12:54:11
    At line:1 char:1
    Can't find anything about this subject except this
    thread which does not help me that much in SharePoint dev env ...
    Removing workflow manager 1.0 and service bus (leave the farm using wizzard, remove binaries and databases) does not help.
    Who already faces this issue and how can I try to resolve it ?
    Best regards !
    Alexandre DAVID

    The API version is hardcoded in Microsoft.ServiceBus.dll, which ships as part of the Service Bus. Each version of this lib has a different string.
    If you install workflow manager 1.0, here are the pre-requisites:
    .NET Framework 4 Platform Update 3 or .NET Framework 4.5
    Service Bus 1.0
    Workflow Client 1.0
    PowerShell 3.0
    The following are the pre-requisites to configure Workflow Manager 1.0
    Instance of SQL Server 2008 R2 SP1, SQL Server Express 2008 R2 SP1, or SQL Server 2012.
    TCP/IP connections or named pipes must be configured in SQL Server.
    Windows Firewall must be enabled. [Windows Firewall is Off on target server]
    Ports 12290 and 12291 must be available.
    Here are the reference for installing and configuring Workflow Manager 1.0:
    http://lennytech.wordpress.com/2013/06/02/installing-workflow-manager-1-0/
    http://lennytech.wordpress.com/2013/06/02/configuring-workflow-manager-1-0/
    http://social.technet.microsoft.com/Forums/en-US/c74507fb-ac2d-405f-b19c-2712b1055708/workflow-manager-10-configuration-service-bus-for-windows-server-the-api-version-is-not?forum=sharepointadmin

  • Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string co

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ _____________________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    this should be in the as3 forum.  but you need to return name/value pairs from your php file.

Maybe you are looking for

  • Does the DVR/STB have to be on the LAN for In-Home Agent to work?

    I'm a brand new user and am trying to learn the the new features that Fios brings to the party.  When my install was done I asked that the wireless feature be disabled on the router (I have a good wired network for my PCs and they were all connected

  • FCP7.0.3 crashing with Motion template on Snow Leopard

    Have upgraded from a Leopard from the 2009 MacPro install of Final Cut Studio3 to Snow Leopard on the current Westmere hardware with the same Final Cut Studio 3 application. The Motion Templates in the FCP application are causing application crashes.

  • Replica Planned Failover - Reverse Replication Fails

    Replication was created successfully from server HV1 to HV2.  Both HV servers are domain members, with valid DNS.  I can add HV2 to the Hyper-V management console on HV1, and vice versa, so I can manage both servers from either console. (i.e., they t

  • Lightroom database size limit?

    Is there anything that may limit the size of a Lightroom catalog (like in iView)? It's not a problem I'm having, just wondering what happens when my 50k image collection grows to 200k or more. Will there ever be a NEED to maintain more than one catal

  • CAN periodic transmit message with different modes using Frame API's

    I want to transmit a CAN message periodically using Frame API's. I am able to send messages which dont have modes inside the message. For some messages having multiplexer in ".ncd " files and inside that multiplexer having different modes. Now in ord