laptop and a wrench

Bug

When cloning a hosted feature service which has a lot of vertices, the cloning process fails, and returns the following error message, "_ItemCreateException: ('Failed to create Feature Service [serviceName]: Expecting value: line 1 column 1 (char 0)', <Item title:"[serviceName]" type:Feature Layer Collection owner:[owner]>)."

Last Published: July 5, 2021 ArcGIS API for Python
Bug ID Number BUG-000122287
SubmittedMay 9, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.5.1
Operating SystemWindows OS
Operating System Version2016 64 Bit
StatusKnown Limit

Additional Information

The clone_items() method works in most cases to clone hosted feature services. There are certain circumstances, most notably with feature layers containing geometries which have large numbers of vertices or a large number of features. In these circumstances, workarounds have to be used to successfully migrate. The feature services can be migrated through exporting, or through the use of duplicating the schema and then appending rows into the layer.

Workaround

Generalize the data to decrease the number of vertices in the data and republish the data. Refer to, https://pro.arcgis.com/en/pro-app/tool-reference/editing/generalize.htm.

Steps to Reproduce

Bug ID: BUG-000122287

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options