2592072 - The metadata constraints '[Precision=31, Scale=2]' do not allow to format 'XXX.XXX'

SAP Knowledge Base Article - Public

2592072 - The metadata constraints '[Precision=31, Scale=2]' do not allow to format 'XXX.XXX'

Symptom

When replicating data which contains currency informaition from C4C to ERP, the message:

'<faultstring>Parallel processing failed for number 0. Exchange[ID-vsa3213586-56064-1514065642682-4-164711]. Caused by: [com.sap
.gateway.core.ip.component.odata.exception.OsciException - com.sap.gateway.core.ip.component.odata.exception.OsciException: Caused b
y:org.apache.olingo.odata2.api.edm.EdmSimpleTypeException: The metadata constraints '[Precision=31, Scale=2]' do not allow to format
the value 'XXX.XXX'. in EntitySet ImportHeadersThe metadata constraints '[Precision=31, Scale=2]' do not allow to format the value
'XXX.XXX' for property 'ExpectedRevenue'.] </faultstring>'

is displayed for the outbound message generated in the Web Service Message Monitor.

Where XXX.XXX represents the Financial Figure sent in the payload.

Environment

  • SAP Hybris Cloud For Customer
  • HCI 2.35.8 and higher
  • SAP ERP

Reproducing the Issue

1. Select the a Work Center which contains financial data.
2. Select the relevant View.
3. Select any facet.
4. Input the finiancial data.
5. Set the currency as XXX.XXX
6. Save the data to trigger replication.
7. Check the outbound Payload for the following value <ExpectedRevenueAmount currencyCode = "ABC">XXX.XXX</ExpectedRevenueAmount> (ABC represnts the form of currency code maintained in C4C).

Cause

This is caused by the display decimal setting for the currency code being set to a value other than 3.

Resolution

1. Select the Business Coniguration Work Center.
2. Select the Overview view.
3. In the search bar type Currencies.
4. Search for Currency Code ABC.
5. Set Display Decimal to 3.
6. Save and Close.

Keywords

ImportHeadersThe metadata constraints '[Precision=31, Scale=2]' do not allow to format the value HCI PI C4C ERP com.sap.gateway.core.ip.component.odata.exception.OsciException do not allow to format
the value , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , Problem

Product

SAP Hybris Cloud for Customer all versions