laptop and a wrench

Bug

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.

Last Published: January 31, 2022 ArcGIS Online
Bug ID Number BUG-000139327
SubmittedApril 23, 2021
Last ModifiedJune 5, 2024
Applies toArcGIS Online
Version found9.1
Operating SystemWindows OS
Operating System Version10.0
Version Fixed2.0.1
StatusFixed

Workaround

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)

Steps to Reproduce

Bug ID: BUG-000139327

Software:

  • ArcGIS Online

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