My Oracle Support Banner

Native Format Builder Will Not Persist Lookahead Attribute Placed on an Element With a Complex Type (Doc ID 1319071.1)

Last updated on AUGUST 12, 2024

Applies to:

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

Symptoms

In a File Adapter, Native Format Builder will not persist attribute placed on an element with a complex type
Using JDeveloperStudio Edition Version 11.1.1.4.0
For some cases the Native Format Builder editor will allow the user to supply lookAhead, lookFor and startsWith attributes on an element but it will drop the attributes without warning when generating the Format XSD



Reproducer steps


1)Create a new SOA Composite Application using JDeveloper.
2)Unzip the SRExample.zip into the application folder.
3)Open the SRExample Project using JDeveloper by clicking the dropdown beside the application name in Application Navigator.
4)The xsd\inputData_3.xsd file contains a hard coded path that must be fixed.
Change the second last line in the file to match the correct location of the inputData.txt file.

5)Open the composite.xml file and double click the File Adapter.
6)Proceed to Step 8 or 9 and click the Gear icon to load the Native Format Builder.

In Step 3 of 4 of the Native Format Builder wizard

expand the LogicalRecord/Person element in the tree view and note the values are set for lookAhead and lookFor.

Proceed to the test page and click the green Triangle to run a test.
The test will fail.
Note in the left pane of the test dialog that the lookAhead and lookFor attributes are not present for the LogicalRecord.
For tests to be successful, manally add the nxsd:lookAhead="1" nxsd:lookFor="0" to the person record.
as shown below.
These additions can be done in the test dialog. Once they are added the test will pass.

<xsd:complexType name="logicalRecord">
<xsd:sequence>
<xsd:element name="person" type="tns:Person" maxOccurs="unbounded" nxsd:lookAhead="1" nxsd:lookFor="0" />
<xsd:element name="department" type="tns:Department" />
</xsd:sequence>
</xsd:complexType>

If the correct modified format is saved, the attributes are lost again when the format is edited using the
Native format builder in design view.

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
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.