What is the cause of the error in XPath expression concat

Hello

In a BPEL process that I work on I have build a list as follows: -.

< copy >
< expression = "concat (bpws:getVariableData('FMSNumbersList'),' |)" ',bpws:getVariableData('Invoke_1_GetFmsHeadersSelect_OutputVariable','FmsWaveAssignCollection','/ns5:FmsWaveAssignCollection/ns5:FmsWaveAssign/ns5:fmsHeadersCollection/ns5:FmsHeaders[bpws:getVariableData('FmsHeadersProcessed')]/ns5:fmsNumber'))"/>
< variable = "FMSNumbersList" / >
< / copy >

When I compile the project I get the following error:
Error (195): invalid xpath expression
"concat (bpws:getVariableData(&apos;) XPath expression. FMSNumbersList & apos;), & apos; & apos; bpws:getVariableData(&APOs;Invoke_1_GetFmsHeadersSelect_OutputVariable&apos;,&APOs;) FmsWaveAssignCollection & apos; & apos; / ns5:FmsWaveAssignCollection / ns5:FmsWaveAssign / ns5:fmsHeadersCollection / ns5:FmsHeaders [bpws:getVariableData(&apos;) "[FmsHeadersProcessed & apos ;)] / ns5:fmsNumber & apos ;)) ' specified in < from > is invalid, because the XPath query syntax error.
The syntax error occurs during parsing concat (bpws:getVariableData('FMSNumbersList') XPath expression,' |) ',bpws:getVariableData('Invoke_1_GetFmsHeadersSelect_OutputVariable','FmsWaveAssignCollection','/ns5:FmsWaveAssignCollection/ns5:FmsWaveAssign/ns5:fmsHeadersCollection/ns5:FmsHeaders[bpws:getVariableData('FmsHeadersProcessed')]/ns5:fmsNumber')), at position 255.
The XPath query syntax was false; the exception was: anticipated :).
Check the detailed origin described in the text of the exception message and verify that the XPath expression that is named in the error message is correct. The XPath expression is defined in the BPEL process.

Make sure the expression is valid

I can't understand what is wrong with the above expression. Can someone please.

Thanks in advance
Harish

I have observed that BPEL uses expression within another expression with altered quotes (which is unique to double and double single). If you see your normal activity entitled, the begins with the double quotes but the part bpws:getVaraibleData is in single quotes. Similarly, you have defined your variable expression of array [] within this bpws:getVariableData Index, so that it looks for different sides. I think technically, that is fair. Would you like to read http://www.oracle.com/technology/products/ias/bpel/pdf/orabpel-Tutorial3-DataManipulationTutorial.pdf

Tags: Fusion Middleware

Similar Questions

Maybe you are looking for