Symptom
You face error "The Data Services Request could not be understood due to malformed syntax" or "Unknown error. Please check the metadata and try again!" when performing a DeepInsert for Survey Odata Collection.
Environment
SAP Cloud for Customer
Reproducing the Issue
- Navigate to Administration Work center.
- Enter Odata Service Explorer view.
- Search for Service c4codataapi and click on Test.
- Select a Survey Entity, for example “SurveyResponseItemCollection”, and go to Test tab.
- Change the function to “DEEPINSERT” and pass the payload.
- Click on Execute.
Cause
Deep insert is not supported for survey entities.
Resolution
As a workaround, it can be used POST method for each entity step by step.
Keywords
Survey, DeepInsert, Deep, Insert, Malformed, Unknown error, Odata , KBA , LOD-LE-SUR-DEF , Survey definition = design time , How To
Product
SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications 2211