SAP Knowledge Base Article - Public

3752383 - Error : Error Occurred While Processing Property 'UpdatedOn' of Entity No. 6|Property 'UpdatedOn' has Invalid Value '0.0000000'.

Symptom

When querying a Purchase Order via custom OData with $expand=Notes, the request fails.

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to Application and User Management work center
  2. Go to Odata Services view
  3. Select Custom Odata Services in the drop down
  4. Open the relevant OData
  5. Copy the OData link and paste it in new tab
  6. Remove $metadata
  7. Following the link :
    • Use the JSON format for a structured response - ?$format=json
    • Use the $filter query option to filter the Purchase Order - &$filter=ID eq 'XYZ'
    • Use the $expand to retrieve related(linked) entity data - &$expand=Notes 
  8. Select Enter.

Error appears : Error occurred while processing property 'UpdatedOn' of entity no. 6|Property 'UpdatedOn' has invalid value '0.0000000'.

Cause

The issue is caused by a data inconsistency in the Notes entity for the affected Purchase Order.

  • At least one Note record for the affected Purchase Order contains an invalid value in the UpdatedOn field (example value: 0.0000000).
  • OData expects UpdatedOn to be a valid date-time/timestamp format(CCYY-MM-DDThh:mm:ss(.sss)Z ) or null if not available.
  • When OData expands Notes, it attempts to parse UpdatedOn. If the stored value is invalid (like 0.0000000), it throws the conversion error and the expand fails.

Resolution

  1. Go to Application and User Management work center
  2. Go to Odata Services view
  3. Select Custom Odata Services in the drop down
  4. Open the relevant OData
  5. Under Odata Service, expand Notes
  6. Locate the "UpdateOn" field
    • Type: DateTimeOffset
    • Path : SYSTEM_ADMINISTRATIVE_DATA-LAST_CHANGE_DATE_TIME
  7. Enable the Null checkbox.

Keywords

Odata; Purchase Order; Notes; $expand; UpdatedOn; Invalid value; DateTimeOffset; Custom Odata Service; Property Error; Error occurred while processing property 'UpdatedOn' of entity no. 6|Property 'UpdatedOn' has invalid value '0.0000000'; , KBA , AP-POP-PO , Purchase Order , How To

Product

SAP Business ByDesign all versions