cancel
Showing results for 
Search instead for 
Did you mean: 

C4C Odata Console clear value

samirv
Participant
0 Kudos
677

Hi,

I want to send a patch request in C4C Odata console to clear a value for a string using a custom odata service.

when I try with Json :

{

"ProcessorPartyID": ""

}

I get the error below error :

The Data Services Request could not be understood due to malformed syntax|Error while parsing an XML stream: 'BOM / charset detection failed'.

It works fine when I set it to a value but not when I want to clear it. Please help with what I need to do to be able to clear it with Odata Console. Thanks,

-----------------------------

Accepted Solutions (0)

Answers (3)

Answers (3)

guisteyer
Discoverer
0 Kudos

Hi,

I was having the same issue. It seems to be a problem with the C4C odata.

In postman, it works fine.

You just have to set the string empty using patch method.

Example:

{

"City ": ""

}

 

7795712040
Explorer
0 Kudos

Hi Samir,

Can you try setting the value to NULL.

{
"ProcessorPartyID": null
}

Regards,

AlanChen
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Samir,

The batch request does not support the standard JSON. It has a specific format.

For the usage of the batch request, please refer to the blog How to send a Odata Batch Request to SAP Cloud for Customer system using Postman Tool

Feel free to contact me if you have any further queries.

Regards,
Alan

samirv
Participant
0 Kudos

Hi alan.chan

This is not a batch request. I think you are misunderstanding between batch and patch. Thanks,

Samir