Symptom
- Exchange rate replication from S/4 to sales cloud fails for specific currency pairs.
- Error message: "Query result not unique; BO CER_EXCHANGE_RATE, Node ROOT, Query QUERY_BY_CURRENCY_PAIR2 : CATEGORY_CODE = 1 ; VALID_FROM_DATE_TIME = XYZ; EXCHANGE_RATE_QUOTED_CURRENCY = EUR ; EXCHANGE_RATE_UNIT_CURRENCY_CO = AUD ; TYPE_CODE-CONTENT = 001"
Environment
- Product: SAP Cloud for Customer core applications
- Integration of C4C with S/4 HANA
Reproducing the Issue
1. Go to web service message monitor
2. Open the exchange rate service interface
3. Error :Query result not unique; BO CER_EXCHANGE_RATE, Node ROOT, Query QUERY_BY_CURRENCY_PAIR2 : CATEGORY_CODE = 1 ; VALID_FROM_DATE_TI
Cause
An inactive exchange rate entry for the same currency pair/date/type exists in the system which is causing this issue .
Resolution
- Identify the incoming payload details (FromCurrencyCode, ToCurrencyCode, ConversionDateTime, TypeCode) from the failed replication.
- In sales cloud, open Administrator > Exchange Rate for Foreign Currencies > View Exchange Rate work center.
- Filter by the source (FromCurrencyCode) and target (ToCurrencyCode) currencies, and locate entries for the relevant date and type.
- If the existing entry is inactive, create/maintain a new active exchange rate entry for the same currency pair, new date, and sametype. Note: Exchange rates cannot be deleted via the UI; inactive combinations remain.
- Re-trigger the replication from S/4 and verify the inbound processing completes successfully.
Keywords
query result not unique, CER_EXCHANGE_RATE, QUERY_BY_CURRENCY_PAIR2, exchange rate replication, inactive exchange rate, duplicate exchange rates, TypeCode, VALID_FROM_DATE_TIME, FromCurrencyCode, ToCurrencyCode, inbound processing, push integration, c4c, s/4, sales cloud , KBA , LOD-CRM-INT-S4H , Integration of C4C with S/4 HANA , Problem
SAP Knowledge Base Article - Public