Select to view content in your preferred language

ArcGIS Pro Python - A row with this OID already exists

191
0
05-16-2024 09:15 AM
LanceCole
MVP Regular Contributor

We upgraded to ArcGIS Pro 3.3 to fix several issues that were resolved in the newer version and found another.  We have multiple scripts that download data from ArcGIS Server and Portal sites for processing using FeatureLayer(url).query.  These scripts and services have been in place for some time and working; however, we are receiving error messages on these scripts when run form ArcGIS Pro 3.3.

ERROR 001558: Error parsing json file '<filename>.json'. A row with this OID already exists.

We have confirmed the source file does not contain duplicate OIDs and the script does work from ArcGIS Pro 3.2.

Any suggestions or notable changes between 3.2 and 3.3 that would cause this issue?

 

from arcgis.features import FeatureLayer
url = "https://<FQDN>/server/rest/services/Hosted/<feature>/FeatureServer/0"
FeatureLayer(url).query(return_true_curves=False).save("memory", "temp")

 

 

Tags (3)
0 Replies