My Oracle Support Banner

While Configuring Rest Adapter With JSON Sample Containing Array For Request/Response Payload It Fails With Error "Array has only one element, Please add one more element in this array and then do the json sampling" (Doc ID 2509044.1)

Last updated on JANUARY 18, 2020

Applies to:

Integration Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On : NA version,
While configuring REST Adapter to generate schema with sample JSON payload containing array element for Request/Response, it fails with error.

ERROR
-----------------------

Failed to generate XML schema from the JSON sample. This type of error generally occurs due to two reasons. Either the uploaded JSON was invalid or we could not construct XML schema from it due to the JSON sample having parameters not allowed in XML. The root cause for this particular failure was : (items) Array has only one element, Please add one more element in this array and then do the json sampling

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a REST Adapter and configure response payload with json inline with array payload and note it fails with error.

 

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


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