<?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 Re: forms property returns value error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1242751#M8193</link>
    <description>&lt;P&gt;I tried your suggestion but then I have the same error as before and a new one:&amp;nbsp;&lt;EM&gt;ValueError: dictionary update sequence element #0 has length 1; 2 is required&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I've been troubleshooting this for a couple of days now, i'm really exhausted. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I create a new map, it works fine...&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 18:11:04 GMT</pubDate>
    <dc:creator>mikaël</dc:creator>
    <dc:date>2022-12-20T18:11:04Z</dc:date>
    <item>
      <title>forms property returns value error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1174143#M7403</link>
      <description>&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import FeatureLayerCollection&lt;BR /&gt;import json&lt;BR /&gt;from arcgis.mapping import WebMap&lt;/P&gt;&lt;P&gt;gis = GIS("home")&lt;/P&gt;&lt;P&gt;I am trying to retrieve the forms on an existing webmap (that has layers with forms configured) using the following script:&lt;/P&gt;&lt;P&gt;wm_item = gis.content.get("itemid")&lt;BR /&gt;wm = WebMap(wm_item)&lt;BR /&gt;wm.forms&lt;/P&gt;&lt;P&gt;However, I get a long error message ending with:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ValueError&lt;/SPAN&gt;: A layer url which can be used to generate a feature layer is required to use this module&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Anyone else having this issue? This web map does containt layers and e.g. wm.layers does return the operational layers as an output. The script I run is pretty similar to the one given in de api documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1174143#M7403</guid>
      <dc:creator>PeterGoedbloed1</dc:creator>
      <dc:date>2022-05-16T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: forms property returns value error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1174145#M7404</link>
      <description>&lt;P&gt;I figured out that it seems do have something to do with group layers. The function does not work properly when there are (nested) grouplayers configured in the webmap.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1174145#M7404</guid>
      <dc:creator>PeterGoedbloed1</dc:creator>
      <dc:date>2022-05-16T12:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: forms property returns value error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1242227#M8176</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/453487"&gt;@PeterGoedbloed1&lt;/a&gt;&amp;nbsp; I got this error as well.&amp;nbsp; I don't know how you figured that out, but you were totally right.&amp;nbsp; I moved all the layers in the web map out of the group layer and it worked!!&amp;nbsp; Thank you!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2022 09:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1242227#M8176</guid>
      <dc:creator>sofoo</dc:creator>
      <dc:date>2022-12-18T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: forms property returns value error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1242751#M8193</link>
      <description>&lt;P&gt;I tried your suggestion but then I have the same error as before and a new one:&amp;nbsp;&lt;EM&gt;ValueError: dictionary update sequence element #0 has length 1; 2 is required&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I've been troubleshooting this for a couple of days now, i'm really exhausted. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I create a new map, it works fine...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 18:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/forms-property-returns-value-error/m-p/1242751#M8193</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2022-12-20T18:11:04Z</dc:date>
    </item>
  </channel>
</rss>

