Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Unable to use odata to insert JSON array

$
0
0

Hello,

 

  I have a simple table exposed in odata service call. It works fine when one row is inserted with a JSON object. However, the caller of this web service has multiple records and when the JSON array is passed, it gives following error:

 

"Error processing request stream. The request should be a valid top-level resource object"

 

It's a simple array like:

 

[

{

   Row1 ...

}.

{

   Row2 ...

}

]

 

The above JSON array is a valid JSON construct. However, HANA's odata throws above error. Had heard that JSON array is not supported. Is it true? If so, what's the best way to insert multiple records at once?


Thanks


Viewing all articles
Browse latest Browse all 3354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>