Symptom
Snapshot replication of a Remote table for a CDS view from a S/4HANA Public Cloud system, fails with error:
- Error occurred when reading data from entitySet [/ABAP_CDS/%CDSDDLNAME%/Facts or MasterData]: org.apache.olingo.client.api.communication.
- "code":"CX_PARAMETER_INVALID_RANGE","message":"Parameter has invalid value: Parameter <VALUE> has invalid value x."
- {"ComponentId":"BW-WHM-DBA-ODA","ServiceRepository":"CDI_CDS","ServiceId":"%CDSDDLNAME%"
- The serialization via ST failed
Environment
- SAP S/4HANA OP or Cloud as the source
- SAP Datasphere as the target
Reproducing the Issue
- Start the replication from Datasphere
OR - Start the gateway client test in the backend of S/4 system
- /n/IWFND/V4_ADMIN
- Expand node "Service Groups"
- Find node "CDI_CDS" and double click it
- Find the CDS name -> click 'Service Test' -> 'Gateway Client'
- Click 'Entity Set' -> Choose the correct Entity set, e.g. Fact or MasterData
- Execute
- ~status_code is not 0 with the error below:
'Use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details",
Cause
Based on the message in Gateway Client test, run transaction /n/IWFND/ERROR_LOG to get more details:
- Error : Property <field name> has invalid value 'x'
- There's a lowercase 'x' in the source view. For a field with type Edm.Boolean in the OData service, only UPPERCASE 'X' is the valid value.
- There's a lowercase 'x' in the source view. For a field with type Edm.Boolean in the OData service, only UPPERCASE 'X' is the valid value.
- Error: Value N is not a valid truth value according to the XML format for ABAP with CX_SY_CONVERSION_NO_BOOLEAN
- There's a Y or N value for a field type Boolean. Only 'X' or ' ' is valid for a Boolean field in OData service.
- Section 'REF_NAME' points out the name of the issued CDS field
Resolution
- For Error: Property <field name> has invalid value 'x'
- Check the data of the source view to find out the invalid lowercase 'x':
- /nSE16 -> input the Sqlview name
- Execute with mode 'SE16 Standard List' which can display the lowercase 'x' and the UPPERCASE 'X'. ('ALV Grid Display' mode doesn't distinguish the lowercase and UPPERCASE)
- In the result, sort the issued field with 'Sort Ascending'. The lowercase 'x' will be displayed in the first line
- Modify this lowercase 'x' to UPPERCASE 'X' from the frontend Fiori or backend (this can be done by customer via Fiori in case of a Cloud system).
- Check the data of the source view to find out the invalid lowercase 'x':
- For Error: Value N is not a valid truth value
- Check the definition of the CDS field based on value of 'REF_NAME' in /n/IWFND/ERROR_LOG to verify if it's a Boolean type;
- Check the data using SE16 to verify its value is 'N';
- Manually add the conversion below (via Custom CDS View app in a Cloud system):
- case <field name>
when 'Y'
then 'X'
else ' '
end as <a new field name>
- case <field name>
See Also
For a field with type Edm.Boolean:
- 'X' in the source view will be auto converted to 'true' in OData output
- ' '(INITIAL) in the source view will be auto converted to 'false' in OData output.
2849242 - Error Property 'ProjectVisibility' has invalid value 'N' when creating a Custom CDS view using I_EngagementProject as data source
Keywords
remote table, snapshot replication, replication, CDS view, parameter, invalid value , KBA , DS-DI-RT , Remote Tables , Problem
Product
SAP Datasphere all versions
SAP Knowledge Base Article - Public