Hello,
When publishing a web tool from Pro, my tool uploads successfully. When testing the tool within WAB, I receive the following error:
desc = arcpy.Describe(inView)
fidSet = desc.FIDSet
if fidSet:
fidList = fidSet.replace(' ','').split(';')
oidSet = set([int(oid) for oid in fidList])
else:
oidSet = set()
Solved! Go to Solution.
fidSet = desc['FIDSet']
is arcpy's data access procedure since it returns a dictionary or 'describe' properties
TableView properties—ArcGIS Pro | Documentation
Layer properties—ArcGIS Pro | Documentation
I see FIDset in both arcpy.Describe and arcpy.da.Describe but they return slightly different results
Thanks Dan Patterson,
I attempted the arcpy.da.Describe as well but attempted it a second time just in case. I receive the following error when using arcpy.da.Describe within Pro itself (meaning, as you know, that I won't be able to export the webtool)--
fidSet = desc.FIDSet
AttributeError: 'dict' object has no attribute 'FIDSet'
A tableview is used the script, and a join is formed between oids of a tableview of attachments and an fc.
Thanks
fidSet = desc['FIDSet']
is arcpy's data access procedure since it returns a dictionary or 'describe' properties
This worked, thank you!