cancel
Showing results for 
Search instead for 
Did you mean: 

The Data Service Request Version 3.0 is not supported for the request payload

Former Member
0 Kudos

Hi All,

I am getting below error in some action:

"The Data Service Request Version 3.0 is not supported for the request payload"

Here we are using deep insert.

PFB Sample::

  1. requestData: Object
    1. Name: "Satya"
    2. Addresses: Array[0]
      1. length: 0
      2. __proto__: Array[0]
    3. Education: Array[0]
      1. length: 0
      2. __proto__: Array[0]

When I pass data in Addresses and Education I am not facing any issues.

Could you please help me out.

Thanks in advance:)

Regards,

Satya

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

SAP Gateway only supports OData version 2.0.

Best Regards,

Andre


Former Member
0 Kudos

Yes Andre.

When I pass data in both Addresses and Education then ::

  1. DataServiceVersion: is  2.0 in Request Header.

  2. Where as when I don't pass any data in Addresses and education facing above issue.

  3. Regards,
  4. Satya
EkanshCapgemini
Active Contributor
0 Kudos

Hi Satya,

You can pass null values in properties of your navigation properties. Thus your payload in your navigation properties will look like:

<d:YourProperty/>

This will have DataServiceVersion as 2.0 .

I hope this helps.

Regards,

Ekansh

Former Member
0 Kudos

Thanks Ekansh.

I am passing blank values to the properties corresponding to Navigation.

It was working fine.

Answers (0)