Skip to Content
-3

Sapui5 - Batch Request error - URGENT!!!!!

Hi experts,

We are currently developing an application that allows to save the information of a table in the abap system.

The process is the following:

1. Click on the Save (Guardar) button and the information of the table is sent so that a quote is generated in the abap system.

2. The odata model is updated.

In the first attempt the answer is always successful.

But if I want to generate a quote again, I get the following error:

Error: The Data Services Request could not be understood due to malformed syntax.

Please I would appreciate if you could help me to solve this error, it is urgent. Thank you.

batch-accepted.png

batch-error.png

responseerror.png

c1.png (34.7 kB)
c2.png (12.0 kB)
batch-accepted.png (50.7 kB)
batch-error.png (51.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Apr 17 at 03:53 AM

    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:

    https://blogs.sap.com/2016/04/30/my-ui5-debugging-tips-and-experience-collection-how-to-resolve-ui5-issues-through-debugging-by-yourself/

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 04:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 08:50 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 12:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 17 at 08:56 AM

    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
    10|10000 characters needed characters exceeded