2630625 - Error Message: "Specified Code Value XYZ is Not Valid" During OData Call

SAP Knowledge Base Article - Public

2630625 - Error Message: "Specified Code Value XYZ is Not Valid" During OData Call

Symptom

You are executing an OData call, to create or update data in the system. In the OData payload you have included an extension field of codelist type for which you are only providing the description value and you are receiving the below error message, as response from the OData call:

"Specified code value XYZ is not valid"

(XYZ refers to the code value)

Environment

SAP Hybris Cloud for Customer 1802 and higher.

Cause

The error message is raised because the system has been enhanced with a new validation, to check the code list data provided for extension fields of such type. This is a necessary measure, to ensure data correctness.

Resolution

To avoid receiving the error message, you should always provide the code value instead of the code description, for a code list field.

Keywords

code list field, extension field, code list description , KBA , BC-DWB-REP-EXT , Extensibility , Product Enhancement

Product

SAP Hybris Cloud for Customer all versions