Select to view content in your preferred language

Generate area offline automatic - Error: refresh_scheduled Monthly / refresh_rates nthday

234
0
11-23-2023 04:37 AM
Fabio_Pires
New Contributor III

When generating offline areas using Python 3.9 in Jupyter Notebook - ArcGIS Enterprise 11.1 through the offline_areas.create function and the parameters refresh_schedule = "Monthly" and refresh_rate = { "hour" : 23,
"minute" : 59, "nthday" : 1, "day_of_week" : 0 }, an error occurs in the code in the file

/opt/conda/lib/python3.9/site-packages/arcgis/mapping/_types.py, on line 3611, in the instruction:
if "nthday" in refresh_rates["nthda"]:, error TypeError: argument of type 'int' is not iterable.

Changing the instruction to:
if "nthday" in refresh_rates: and restarting the Python kernel, it works again and correctly generates the offline area with monthly updates.

0 Kudos
0 Replies