Symptom
- While executing the PATCH method for API Update Enterprise Project Element one of the following error occurs:
- HTTP Response: status_code 204 Runtime Error: 'ASSERTION_FAILED'
- HTTP Response: status_code 428 Precondition required for entity CDS~A_ENTERPRISEPROJECT_2 (If-Match missing). Error message Code: SADL_ENTITY_RUNTIME/006
Environment
- SAP S/4HANA Cloud Public Edition
- SAP Fiori
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 for If-Match is maintained with the etag value or not maintained.
Resolution
Please use the header HTTP request with " If-Match = * " instead of etag value.
Keywords
Enterpriseproject, API, Etag, API_ENTERPRISE_PROJECT_SRV, A_EnterpriseProjectElement, status_code 204, ASSERTION_FAILED, S4_PC, SAP S/4HANA Cloud Public Edition, PPM-FIO, If, Match, SADL_ENTITY_RUNTIME/006 , KBA , PPM-FIO , Fiori UI for Portfolio and Project Management , Problem
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions