Hello,
I am trying to se the ArcGIS API for Python to create a "FormCollection" from a webmap. The webmap contains several FieldMap smartforms and all I want is to create a form collection as per ESRI's documentation. I have written the following code:
wmItem = gis.content.get(itemID) # Fetch webmap item
wm = WebMap(wmItem) # Create wm object
fcoll = wm.forms
The error is on line 3: "AttributeError: 'PropertyMap' instance has no attribute 'layerType':
This webmap has several layer and tables with smartforms. I have also tried several other web maps and keep getting the same error.
Alternatively, this following code, straight from ESRI documentation gives the exact same error on the form_collection variable:
from arcgis.mapping.forms import FormCollection
wm = arcgis.mapping.WebMap(item)
form_collection = FormCollection(wm)
I would greatly appreciate any help.
Thank you!