Hi,
We are unable to apply edits to a feature service, and while the response is simply
{
"error": {
"code": 400,
"extendedCode": -2147024809,
"message": "Unable to complete operation.",
"details": [
"Unable to perform applyEdits operation."
]
}
},
The server logs show
"Edit for Feature with ObjectID: 112 for Layer: !2d! is not applied."
This feature is not m- or z-enabled that I can discern. Any suggestions?
Solved! Go to Solution.
The issue was related to the DateTime formats:
The Date/Time formats retrieved by a query to an ArcGIS REST endpoint differ from the format required for submitting an update or new record to an ArcGIS REST endpoint. We referred to discussions in https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proper-rest-query-for-epoch/td-p/... and https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-an-esrifieldtypedate-fiel....
We modified the data for the date fields so that they were submitted as epoch instead of as a formatted date/time.
Why the date/time format issue came back with that particular server log is completely unclear.
The issue was related to the DateTime formats:
The Date/Time formats retrieved by a query to an ArcGIS REST endpoint differ from the format required for submitting an update or new record to an ArcGIS REST endpoint. We referred to discussions in https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/proper-rest-query-for-epoch/td-p/... and https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/turning-an-esrifieldtypedate-fiel....
We modified the data for the date fields so that they were submitted as epoch instead of as a formatted date/time.
Why the date/time format issue came back with that particular server log is completely unclear.