laptop and a wrench

Bug

Records are missing in tables and feature classes when running the replicas.create command in ArcGIS API for Python.

Last Published: June 3, 2021 ArcGIS API for Python
Bug ID Number BUG-000130078
SubmittedApril 10, 2020
Last ModifiedJune 28, 2025
Applies toArcGIS API for Python
Version found1.8
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.0.0
StatusFixed

Workaround

Option 1:

Within the Python API script, specify a layer queries argument for all layers in the replica:

  • Use <layer number>{"queryOption": "all", ""useGeometry": True, "where': "1=1"} for feature classes and <layer number>{"queryOption": "all", "where': "1=1"} for tables.
  • This is to force a query of all features and the records are not missing in the output.
  • Sample script attached 'Replica_workaround.'

Option 2:

Replicate the data in ArcGIS Online by creating a replica in the REST endpoint of the feature layer collection, or by using the Export Data function in the items details page of the feature layer collection.

In the REST endpoint:

  1. Click Create Replica at the bottom of the page.
  2. Give the replica an appropriate name.
  3. Enter the layer numbers of the replica.
  4. Change Sync Model to None.
  5. Change Target Type to Server.
  6. Change Data Format to FileGDB.
  7. Click Create Replica.

Steps to Reproduce

Bug ID: BUG-000130078

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