laptop and a wrench

Bug

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

Zuletzt veröffentlicht: June 3, 2021 ArcGIS API for Python
Bug-ID-Nummer BUG-000130078
EingereichtApril 10, 2020
Zuletzt geändertJune 28, 2025
Gilt fürArcGIS API for Python
Gefunden in Version1.8
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version2.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.

Schritte zur Reproduzierung

Bug-ID: BUG-000130078

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln