SAP Knowledge Base Article - Public

3764944 - HTTP Code: 422 error when calling UpdateValidityPeriod action multiple times within a single changeset in batch request

Symptom

- When the `UpdateValidityPeriod` bound action of the Cost Center API is called for multiple cost centers within a single changeset in a batch request, the request fails with HTTP 422.
- The same operation succeeds when each call is placed in a separate changeset.
- Error message: "Unspecified provider error occurred. See Error Context and Call Stack." Exception Category: Provider_Application_Error, HTTP Code: 422.

Environment

SAP S/4HANA Cloud Public Edition

Cause

This is standard SAP behavior. Both CreateValidityPeriod and UpdateValidityPeriod actions are supported for a single change at a time.

 

Resolution

It is recommended to send one call per changeset to avoid any issues.

Keywords

Cost Center API, HTTP Code: 422, CreateValidityPeriod, UpdateValidityPeriod , KBA , CO-OM-2CL , Overhead Cost Controlling (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions