Let me address all three focus areas systematically since this is a common integration challenge.
EDI to JSON Mapping:
Your current mapping treats custom fields as standard header attributes, which won’t work. The correct approach uses Oracle’s Extensible Flexfield (EFF) structure. Modify your OIC mapper to target the flexfield context:
"__FLEX_Context": "ORDER_HEADER_EFF",
"customer_priority": "HIGH",
"delivery_instructions": "Dock B loading"
This tells the API to route these fields to the EFF tables rather than trying to match them to standard columns.
Custom Field Handling:
In Distribution Management setup, verify three things:
- Custom fields are defined as Descriptive Flexfields (not just custom attributes)
- The context code matches what you’re sending in JSON (ORDER_HEADER_EFF or similar)
- The “Enabled for Integration” flag is checked
The key distinction: custom attributes added through UI customization aren’t automatically exposed to APIs. They must be implemented as DFFs with proper API enablement.
Middleware Configuration:
Your XML configuration snippet shows direct path mapping, which bypasses the flexfield framework. Replace it with:
<flexContext name="ORDER_HEADER_EFF">
<segment code="PRIORITY" source="/EDI/priority"/>
<segment code="INSTRUCTIONS" source="/EDI/instructions"/>
</flexContext>
In OIC, after updating the mapping, regenerate the connection metadata AND test with a small payload first. The error “custom attributes not found in target schema” will disappear once the mapper correctly routes to the __FLEX_Context structure.
One more critical point: if you’re on 23c, check if Oracle’s latest integration patch (23c.2 or higher) is applied. Earlier 23c versions had a bug where DFF mappings weren’t properly validated during schema refresh. The patch fixes the metadata generation to include EFF definitions.
After implementing these changes, your EDI orders with custom fields should process successfully. The middleware will properly handle the transformation from EDI segments to the flexfield JSON structure that Distribution Management expects.