laptop and a wrench

Bogue

In the ArcGIS API for Python documentation, the returns section states that the expected return is a 'dictionary containing the layerServerGens and an array of edits.' However, a filepath is returned if the parameter return_ids_only=true.

Dernière publication: January 31, 2022 ArcGIS Online
Numéro d’ID de bogue BUG-000139327
EnvoiApril 23, 2021
Dernière modificationJune 5, 2024
S’applique àArcGIS Online
Version trouvée9.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0
Version de correction2.0.1
StatutFixed

Solution de contournement

Use a function to write the file contents back into the Python script:

import json

f = open(filepath, 'r')

for line in f:

  filecontent= line

f.close()

changedict = json.loads(filecontent)

Étapes pour reproduire

ID de bogue: BUG-000139327

Logiciel:

  • ArcGIS Online

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement