Native Translate Json To In Xml In Bpel 12c Failing
(Doc ID 2171852.1)
Last updated on JANUARY 20, 2022
Applies to:
Oracle SOA Suite - Version 12.1.3.0.0 and laterInformation in this document applies to any platform.
Symptoms
Native translate from JSON to in XML in BPEL(12c)
In a sample composite in a BPEL component, it is wanted to translate the JSON string to XML through a Translation activity.
The native schema builder is used to create the XSD schema and a sample input is used.
When invoking the BPEL process with the soap-envelope it is getting the following error :
XPath expression failed to execute.
An error occurs while processing the XPath expression; the expression is ora:doTranslateFromNative(string($inputVariable.payload/client:input), 'Schemas/sample.xsd', 'Root-Element', 'DOM').
The XPath expression failed to execute; the reason was: Translation Failure.
Failed to translate JSON to XML.
The incoming data does not conform to the NXSD schema. Please correct the problem.
{Usage=[ora:doTranslateFromNative('input string variable or attachment element', 'nxsd template', 'nxsd root element name', 'DOM or SDOM or ATTACHMENT', 'optional attachment element if the targetType paramater is ATTACHMENT?')]}.
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
An error occurs while processing the XPath expression; the expression is ora:doTranslateFromNative(string($inputVariable.payload/client:input), 'Schemas/sample.xsd', 'Root-Element', 'DOM').
The XPath expression failed to execute; the reason was: Translation Failure.
Failed to translate JSON to XML.
The incoming data does not conform to the NXSD schema. Please correct the problem.
{Usage=[ora:doTranslateFromNative('input string variable or attachment element', 'nxsd template', 'nxsd root element name', 'DOM or SDOM or ATTACHMENT', 'optional attachment element if the targetType paramater is ATTACHMENT?')]}.
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |