Esri / Esri/developer-support

DownloadAttachments.py, It does not seem to like itemObject.layers

Open
#353 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
289
Forks
174
PR merge metrics
No merged PRs in 30d

Description

Line 83 DownloadAttachments.py, It does not seem to like itemObject.layers. I am using Arcgis 1.7.0 and Python 3.6.9. Do you any suggestion to how to go about fixing this without going into the arcgis module.

Line 83: for i in range(len(itemObject.layers)):

File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 6978, in __getattribute__
if self['layers'] == None or self['layers'] == []:
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 7009, in __getitem__
return dict.__getitem__(self, k)
KeyError: 'layers'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.