Hi Juan,
You need to check your JSON payload to understand the syntax error, to find this information you can debug your application using the Chrome Developer Tools (just click F12 before you press the save button, open the Network tab, press the save button in your application and look for the OData call in the Developer Tool again), if you don't have experience with debug you can find more information in some of the blogs from SAP community, for example, check the article below:
Another option is to check the log inside your SAP Gateway server through the transaction /IWFND/ERROR_LOG. After you find your JSON payload you can verify the syntax through a JSON validator like this one: https://jsonlint.com/
Cheers,
Felipe
Hey Juan,
2596236 - Error Message "The Data Services Request could not be understood due to malformed syntax" when creating ticket via OData
Check the above note, though it is not relevant to your issue but try to use the correct date format.
Thanks,
JC
Hello,
Please post the payload which you are trying to execute in JSON Format.
Please chekc the below URL:
https://archive.sap.com/discussions/thread/3838443
Thanks,
Lokeswar.
Tu problema es al volver a generar la petición no? y si le haces un Refresh al modelo ?? suponiendo que la primera vez lo hace bien a la segunda quizas algo se este sobreponiendo o sobreescribiendo es lo unico que se me ocurre porque no me ha pasado nada parecido
Your problem is when generating the request again, no? and if you do a Refresh to the model? Assuming that the first time it does well to the second maybe something is overwriting or overwriting is the only thing that occurs to me because nothing similar has happened to me
Hi Juan,
When I face this kind of errors, what I normally do is try to run exactly the same request using the SAP Gateway Client (/IWFND/GW_CLIENT transaction). You can easily identify the url/uri of the oData request opening the console on your web browser.
Hope it helps.
Regards,
Pablo.
Add comment