Hi ,
I am trying to load data to an Entity through REST API. This entity has a Timestamp field.
Thouh I am able to load the Data without the timestamp value.
But I am getting following error while trying to load the Timestamp field.
"errorMessage" : "Unable to parse value [2020-01-01T00:00:00Z] as a date (for expression [IncorporationFormationDate])"
I was looking for details in Smearchy document for any guidance , I have found below statement regarding that.
"The REST API uses the ECMAScript standard format (YYYY-MM-DDTHH:mm:ss.sssZ) for timestamps.
This format includes an explicit timezone component, and conversion is performed automatically."
Please suggest me a solution for this.
Thank you very Much,
Kousik
Hello Kousik,
As the error message says- "Unable to parse value [2020-01-01T00:00:00Z] as a date (for expression [IncorporationFormationDate])"
You have missed '.sss' in the value and that's why it is throwing the error, The format is as follows: YYYY-MM-DDTHH:mm:ss.sssZ
YYYY-MM-DDTHH:mm:ss.sssZ
You can have a value like this-2020-01-01T00:00:00.000Z
Thank you.
Kousik DAS
Hi ,
I am trying to load data to an Entity through REST API. This entity has a Timestamp field.
Thouh I am able to load the Data without the timestamp value.
But I am getting following error while trying to load the Timestamp field.
"errorMessage" : "Unable to parse value [2020-01-01T00:00:00Z] as a date (for expression [IncorporationFormationDate])"
I was looking for details in Smearchy document for any guidance , I have found below statement regarding that.
"The REST API uses the ECMAScript standard format (YYYY-MM-DDTHH:mm:ss.sssZ) for timestamps.
This format includes an explicit timezone component, and conversion is performed automatically."
Please suggest me a solution for this.
Thank you very Much,
Kousik
Hello Kousik,
As the error message says- "Unable to parse value [2020-01-01T00:00:00Z] as a date (for expression [IncorporationFormationDate])"
You have missed '.sss' in the value and that's why it is throwing the error, The format is as follows:
YYYY-MM-DDTHH:mm:ss.sssZ
You can have a value like this-2020-01-01T00:00:00.000Z
Thank you.
Subham Dixit
Hello Kousik,
As the error message says- "Unable to parse value [2020-01-01T00:00:00Z] as a date (for expression [IncorporationFormationDate])"
You have missed '.sss' in the value and that's why it is throwing the error, The format is as follows:
YYYY-MM-DDTHH:mm:ss.sssZ
You can have a value like this-2020-01-01T00:00:00.000Z
Thank you.
1 person likes this
-
Extend a model with new entities or attributes
-
Data types in xDM
-
Effective date on entities
-
Search using wild cards
-
Export a model from production and import on a development environment
-
"Allow Delete" vs "Allow Removal" privileges
-
LOV label in Named Query
-
Select location on a map and save coordinates
-
Is there a way to set up a master-detail relationship on browse mode?
-
Choose Either a Stepper or A Workflow Based on The User Privileges
See all 299 topics