Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Error while using odata.create

$
0
0

Hi all,

 

I am trying to insert data into the hdb using odata.create, and i get an error saying "Error processing request stream. JSON text specified is not valid".

Unable to get what the issue is. Kindly help

 

Here are the details:

URL:inblrll915.dhcp.blrl.sap.corp:8000/MovieBooking/services/movies.xsodata/Booking

Content-Type application/json;charset=utf-8

 

 

Data in the raw payload:

 

{

"movieName":"MohanvsWorld",

"username":"Mohan",

"showTime":"2001-01-02T01:02:03.123",

"theater":"Inox",

}

 

Booking table :

 

table.columns = [

  {name = "movieName"; sqlType = VARCHAR; nullable = false; length = 20;},

  {name = "username"; sqlType = VARCHAR; nullable = false; length = 20;},

  {name = "showTime"; sqlType = TIMESTAMP; nullable = true; },

  {name = "theater"; sqlType = VARCHAR; nullable = true; length = 40;}];

 

table.primaryKey.pkcolumns = ["movieName","username"];


Viewing all articles
Browse latest Browse all 6412

Trending Articles