cancel
Showing results for 
Search instead for 
Did you mean: 

DateTime error in SAP CAI

0 Kudos

Hi All,

I am able to capture user response by using #INTERVAL Gold Entity, and stored into memory.

But when i am trying to post the data from CAI to gateway using POST call getting an below error. Please help to fix the issueerror-log.png.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

issue resolved after using the formatDate like {{formatDate memory.period.begin "YYYY-MM-DDTHH:MM:SS" "-00:00"}}.

Answers (2)

Answers (2)

0 Kudos

Hi Daniel,

Thanks for your quick response.

I have tried different formatDate handlebars like {{formatDate memory.period.begin "YYYY-MM-DDTHH:mm:ss" "-02:00"}} to pass the payload data but no luck.

Actually we are using standard OData API service to post the data.

is there any other way to fix this issue.

Thanksℜgards:

Rajesh.

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

Please see this post about data types in the back end: https://answers.sap.com/questions/11331676/date-parsing-in-gateway-odata-post.html

Also, if you need, use the formatDate handlebars helper function to send the date in a different format. You may want to try without the offset -- I see in the ES5 service the dates are Edm.DateTime and returned in OData without the offset. At least worth a test.