Error: ERROR 001270: Consolidating the data failed
When attempting to publish a feature service to ArcGIS Online, the following error message is returned:
ERROR 001270: Consolidating the data failed.
The error occurs due to one of the following reasons:
The output geodataset is enabled to store m-values and z-values in the Environment Settings in ArcMap. When m-values and z-values are enabled in ArcMap, the geometry of features cannot change in ArcGIS Online.
The map document contains group layers. Group layers are not supported in ArcGIS Online.
The map document contains a corrupted feature dataset.
The feature classes or tables contain in-memory joins or relates. In-memory joins and relates are not supported in an ArcGIS Online feature service.
The map document contains stand-alone tables or feature classes in the Table Of Contents. Stand-alone tables and feature classes are not supported by ArcGIS Online hosted feature services.
Solution or Workaround
To resolve the error, use any of the following solutions (depending on the cause):
Disable m-values and z-values for the output layer in the Environment Settings prior to publishing.
In ArcMap, navigate to Geoprocessing > Environments > Environment Settings.
In the Environment Settings window, expand M Values.
From the Output has M Values drop-down list, select Disabled.
Expand Z Values and from the Output has Z Values drop-down list, select Disabled.
Ungroup layers from the group layers to add the contained layers to the parent layer. To ungroup the layers, right-click the group layer name, and click Ungroup.
Repair the corrupted dataset. In ArcMap, run the Check Geometry tool to identify geometry errors in the dataset. To fix the corrupted data, run the Repair Geometry tool. For more information on identifying and repairing datasets, refer to Checking and repairing geometries.
Make a permanent join to each feature class or joined table by exporting the joined feature layer or table. To export the layer, right-click the layer in the Table Of Contents > Data > click Export Data. This creates a new feature class with all the attributes, including the joined fields.
Remove stand-alone tables and feature classes from the Table Of Contents, or move the stand-alone feature classes into the feature dataset in the Table Of Contents. To remove the feature class, right-click the layer in the Table Of Contents, and click Remove.