SAP Knowledge Base Article - Public

3736959 - Not able to send date range survey answer via Odata

Symptom

Trying to POST method using Odata there are a few errors:

  • "Error on entity read for type C4C"
  • "The Data Services Request could not be understood due to malformed syntax|Error while parsing an XML stream: 'BOM / charset detection failed'"

Environment

SAP Cloud for Customer

Resolution

This type of error is thrown by the system once there is an incorrect payload Format applied. Please consider adjusting the payload in order for it to follow the standard pattern. SAP Cloud for Customer OData API v2 Reference

Usually it happens because it is not possible to update the date field (start date and end date) using a POST call with multiple requests.

Either opt to use a $batch operation or perform two separate POST calls to achieve this.

Keywords

Post; Odata; error; entity; read; type; data; services; request; understood; malformed; syntax; parsing; XML; stream; BOM; charset; detection; failed. , KBA , LOD-CRM-INT-API , OData API (C4C Only) , How To

Product

SAP Cloud for Customer core applications 2508