<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic web_map.forms causes: AttributeError: 'PropertyMap' instance has no attribute 'layerType' in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/web-map-forms-causes-attributeerror-propertymap/m-p/1251825#M66677</link>
    <description>&lt;P&gt;Calling 'web_map.forms' causes the following error on ArcGIS Python 2.1.0.&amp;nbsp; Python 3.9.&lt;/P&gt;&lt;P&gt;However, it works with another web map. Any ideas about what is wrong with my web map?&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/app/src/save_web_map_to_json.py", line 52, in &amp;lt;module&amp;gt;&lt;BR /&gt;pprint(web_map.forms)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/_impl/common/_uti&lt;BR /&gt;ls.py", line 219, in _lazy_property&lt;BR /&gt;setattr(self, attr_name, fn(self))&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/_types.py&lt;BR /&gt;", line 1591, in forms&lt;BR /&gt;return _forms.FormCollection(parent=self)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 61, in __init__&lt;BR /&gt;self._refresh_forms(parent)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 78, in _refresh_forms&lt;BR /&gt;self.forms = self._get_forms_from_webmap(parent)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 163, in _get_forms_from_webmap&lt;BR /&gt;self._construct_forms_array(forms, webmap.tables, parent=webmap)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 133, in _construct_forms_array&lt;BR /&gt;FormCollection._get_forms_within_group_layer(forms, layer, parent)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 137, in _get_forms_within_group_layer&lt;BR /&gt;if layer.layerType == "GroupLayer":&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/_impl/common/_mix&lt;BR /&gt;ins.py", line 82, in __getattr__&lt;BR /&gt;raise AttributeError(&lt;BR /&gt;AttributeError: 'PropertyMap' instance has no attribute 'layerType'&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 13:06:10 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-01-26T13:06:10Z</dc:date>
    <item>
      <title>web_map.forms causes: AttributeError: 'PropertyMap' instance has no attribute 'layerType'</title>
      <link>https://community.esri.com/t5/python-questions/web-map-forms-causes-attributeerror-propertymap/m-p/1251825#M66677</link>
      <description>&lt;P&gt;Calling 'web_map.forms' causes the following error on ArcGIS Python 2.1.0.&amp;nbsp; Python 3.9.&lt;/P&gt;&lt;P&gt;However, it works with another web map. Any ideas about what is wrong with my web map?&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/app/src/save_web_map_to_json.py", line 52, in &amp;lt;module&amp;gt;&lt;BR /&gt;pprint(web_map.forms)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/_impl/common/_uti&lt;BR /&gt;ls.py", line 219, in _lazy_property&lt;BR /&gt;setattr(self, attr_name, fn(self))&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/_types.py&lt;BR /&gt;", line 1591, in forms&lt;BR /&gt;return _forms.FormCollection(parent=self)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 61, in __init__&lt;BR /&gt;self._refresh_forms(parent)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 78, in _refresh_forms&lt;BR /&gt;self.forms = self._get_forms_from_webmap(parent)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 163, in _get_forms_from_webmap&lt;BR /&gt;self._construct_forms_array(forms, webmap.tables, parent=webmap)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 133, in _construct_forms_array&lt;BR /&gt;FormCollection._get_forms_within_group_layer(forms, layer, parent)&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/mapping/forms.py"&lt;BR /&gt;, line 137, in _get_forms_within_group_layer&lt;BR /&gt;if layer.layerType == "GroupLayer":&lt;BR /&gt;File "/usr/local/lib/python3.9/site-packages/arcgis/_impl/common/_mix&lt;BR /&gt;ins.py", line 82, in __getattr__&lt;BR /&gt;raise AttributeError(&lt;BR /&gt;AttributeError: 'PropertyMap' instance has no attribute 'layerType'&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/web-map-forms-causes-attributeerror-propertymap/m-p/1251825#M66677</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-26T13:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: web_map.forms causes: AttributeError: 'PropertyMap' instance has no attribute 'layerType'</title>
      <link>https://community.esri.com/t5/python-questions/web-map-forms-causes-attributeerror-propertymap/m-p/1251826#M66678</link>
      <description>&lt;P&gt;Also, using Portal environment.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/web-map-forms-causes-attributeerror-propertymap/m-p/1251826#M66678</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-26T13:06:55Z</dc:date>
    </item>
  </channel>
</rss>

