My Oracle Support Banner

How To Suppress Translate Activity To Not Show XML Elements In Case The JSON Value Is Null (Doc ID 2766795.1)

Last updated on APRIL 07, 2021

Applies to:

Oracle Service Bus - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.3.0 version, OSB Core Functionality

How to suppress Translate activity to not show XML elements in case the JSON Value is null
How to suppress Translate activity to not show XML elements in case the JSON Value is null

Issue:
We have a JSON similar to this :

It is seen that the NXSD Translate activity generates an XML element as as there is no null and the Validate Activity errors out that the closedDate activity has to be entered and the minOccurs=”0” doesn’t kick in.

Instead if the closedDate is not passed at all in the JSON, then everything works well. Our integration partner is planning to send the element as null (as above) when the data is not available and I am looking at how this could be handled better in the Translate or in the Validate Activity?

ERROR
-----------------------
for the null object to honor the minOccurs=”0” definition and not to create an empty tag

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.