Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BPEL Process Error : Start of rootelement expected

Passion-for-LearningJan 30 2018 — edited Jan 30 2018

I am trying to use : ora:parseEscapedXML to map String data to XML . I am basically trying to map "AcctCodeSegmentExists" from my EVENT_DATA to an XML structure and it is failing with this error

"Start of root element expected."

I have ensured that the namespace is same between my string and the target XML. Is there anything additional in ora:parseEscapedXML that i need to do to fix this error.

String Data that is part of a Business Event is :

  <EVENT_DATA xmlns="">

            <AcctCodeSegmentExists xmlns="http://tempuri.org/WSserver/AcctCodeSegment">

  <AccountField>1</AccountField>

  <Code>TESTCAN1</Code>

</AcctCodeSegmentExists>

         </EVENT_DATA>

XSD Schema definition to which I am trying to map event data is :

<?xml version= '1.0' encoding= 'UTF-8' ?>

<xsd:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/WSserver/AcctCodeSegment"

     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:acc="http://tempuri.org/WSserver/AcctCodeSegment">

    <xsd:element name="AcctCodeSegmentExists" type="acc:AccountCodeSearch"/>

    <xsd:complexType name="AccountCodeSearch">

        <xsd:sequence>

            <xsd:element name="AccountField" type="xsd:string"/>

            <xsd:element name="Code" type="xsd:string"/>

        </xsd:sequence>

    </xsd:complexType>

</xsd:schema>

Assign Operation is as below

===========================

    <assign name="Assign1">

      <copy>

        <from>ora:parseEscapedXML($inputXMLVariable.WF_EVENT_T/EVENT_DATA)</from>

        <to expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">$InvokeWebService_execute_InputVariable.input</to>

      </copy>

    </assign>

Error :

<bpelFault><faultType>0</faultType><subLanguageExecutionFault xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"><part name="summary"><summary>An error occurs while processing the XPath expression; the expression is ora:parseEscapedXML($inputXMLVariable.WF_EVENT_T/EVENT_DATA)</summary></part><part name="code"><code>XPath expression failed to execute</code></part><part name="detail"><detail>XPath expression failed to execute.

The XPath expression failed to execute; the reason was: Start of root element expected.

Check the detailed root cause described in the exception message text and verify that the XPath query is correct.

</detail></part></subLanguageExecutionFault></bpelFault>

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2018
Added on Jan 30 2018
1 comment
928 views