My Oracle Support Banner

SOA 11g: Error Converting XML to Native Format when Using Multiple Choice Elements (Doc ID 1519763.1)

Last updated on APRIL 23, 2019

Applies to:

Oracle SOA Suite - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.1.6.0 version, BPEL Service Engine

Error converting XML to native format when using multiple choice elements

Building a string based on a schema generated by a Cobol copybook using the native format builder where the copybook has a lot of field level redefines in it, format builder generates as xsd:choice elements. As long as the choice element is the last element within a complex type, the doTranslateToNative built-in function works well.

If the choice element has any other elements after it, doTranslateToNative is generating the following error message:

 

ERROR
-----------------------
javax.xml.xpath.XPathExpressionException, Translation to native failed



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a Transormation XSD using Native format builder from a Cobol copybook file with items after choice elements
2. use the transformation xsd on an xquery like "ora:doTranslateToNative(bpws:getVariableData('InputXML','/ns2:Root-Element'),'xsd/<schemaName>.xsd','Root-Element','STRING')"

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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.