SAP Knowledge Base Article - Public

2945022 - Error occurred while processing property 'XYZ' of entity no. 1|Property 'XYZ' has invalid type '\\TYPE=XSDDATETIME_ISO'

Symptom

Custom OData Service returns an error message - Error occurred while processing property 'XYZ' of entity no. 1|Property 'XYZ' has invalid type '\TYPE=XSDDATETIME_ISO' when executing the custom Odata Service

XYZ - PDI field

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to Administrator work center
  2. Select Odata Service Explorer
  3. Select Custom Odata Services
  4. Highlight the custom Odata Service
  5. Select Test button
  6. Select Execute button

System throws above error

Cause

Cause for the issue is that the Data Type of a PDI field is maintained as DateTime

Resolution

DateTime is no longer intended for direct usage. Use derived GDTs TIMEZONE_INDEPENDENT_DateTime, GLOBAL_DateTime, LOCAL_DateTime and LOCALOFFSET_DateTime instead.

The same is documented in Help Center - Date and Time (Reuse Library)

See Also

Date and Time (Reuse Library)

Keywords

datetime, XSCDATETIME_ISO, Error occurred while processing property, has invalid type , KBA , AP-RC-ODF , OData framework (C4C Only) , AP-RC-BDS-LM , ByDesign Studio Lifecycle Management , LOD-CRM-INT-DWB , Data Workbench , Problem

Product

SAP Cloud for Customer core applications all versions