cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Console Error - Data Services not found because of deformed Syntax Error?

0 Kudos

Hi Everyone,

We are working on one Custom SAPUI5 Application development. Whenever I run the app, I see the below error in the sapui5. It is in german language I added the translation also in the below.

Failed to load resource: the server responded with a status of 400 (Bad Request)

jquery.sap.global-dbg.js:999 2018-09-13 18:13:47.924800 [index.html] Error message returned by server could not be parsed -  
K @ jquery.sap.global-dbg.js:999
jquery.sap.global-dbg.js:999 2018-09-13 18:13:47.926100 [index.html] The following problem occurred: HTTP request failed400,Bad Request,<?xml version="1.0" encoding="utf-8"?>

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>005056A509B11ED1B9BF94F386DD82E6</code><message xml:lang="de">Die Data-Services-Anforderung wurde wegen einer deformierten Syntax nicht verstanden.</message></error> -  

It is saying, data Services are not found due to deformed syntax. And the url calling is coming by batch as default. it shows not found.

I am using OData v2 model. SAPUI5 version is 1.44.16.

Thank you,

Regards,
Peter.

Accepted Solutions (0)

Answers (1)

Answers (1)

EdwarSoto
Participant
0 Kudos

Hi Sapui5 People,

I had this same problem and the solution was simple...

on Frontend server had this:

"Die Data-Services-Anforderung wurde wegen einer deformierten Syntax nicht verstanden."

In zzz.controller.js file

my variable "sPath" had 1 backslash and code add one more.... then delete one.

before : 
    this.oModel.remove("/" + sPath, {...})
after : 
this.oModel.remove(sPath, {...})

problem solved. 😄

this is how the code is:

happy coding!