Is This Content Helpful?
We're glad to know this article was helpful.
In ArcGIS Online, users can modify the schema of a layer inside of a hosted feature service by updating the service definition. The Update Definition operation is accessed through the Admin view of the REST endpoint of the feature service. Such updates include updating maximum record count and modifying the coded value domains for the hosted feature service.
In some instances, when attempting to alter the JSON and Update Layer Definition of a feature service, the operation fails and the following error message is returned:
Error: Invalid definition for 'LastEditDate'. Invalid definition for ESRI.ArcGIS.SDS.Metadata.EditingInfo
This error message is returned because the numeric value exists inside the lastEditDate property. This property displays an epoch value used internally by the Open Data initiative and cannot be set to a numeric value when updating the schema. An example of this is below:
Set the value of lastEditDate to anything but a number. Follow the steps below to solve this issue.