Symptom
While executing the PATCH method for Enterprise Project API (API_ENTERPRISE_PROJECT_SRV_0002), one of the following error occurs:
- HTTP Response: status_code 204, Runtime Error: 'ASSERTION_FAILED'.
- HTTP Response: status_code 428, Error SADL_ENTITY_RUNTIME/006: 'Precondition required for action in entity CDS~A_ENTERPRISEPROJECT_2 (If-Match missing)'.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Execute the URL PATCH <host>/sap/opu/odata/sap/API_ENTERPRISE_PROJECT_SRV/A_EnterpriseProjectElement(guid'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX')
Cause
In header HTTP request, If-Match is maintained with the Etag value or is not maintained.
Resolution
Use the header HTTP request with " If-Match = * " instead of Etag value.
Keywords
Enterprise project, API, Etag, API_ENTERPRISE_PROJECT_SRV, A_EnterpriseProjectElement, status_code 204, ASSERTION_FAILED, SAP S/4HANA Cloud Public Edition, If, Match, If-match Missing, SADL_ENTITY_RUNTIME/006 , KBA , PPM-SCL-STR , Project Structure (Public Cloud) , Problem
SAP Knowledge Base Article - Public