<?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: Exception when creating dashboard-chart in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1088772#M6497</link>
    <description>&lt;P&gt;There's been registered two bug related to this issue, so the problem is being solved as we speak hopefully.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 06:19:03 GMT</pubDate>
    <dc:creator>TorbjørnDalløkken2</dc:creator>
    <dc:date>2021-08-13T06:19:03Z</dc:date>
    <item>
      <title>Exception when creating dashboard-chart</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1048061#M5931</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a Dashboard using the arcgis.apps.dashboard library, and I've got a problem creating charts. I've succeeded in creating a empty chart and adding it to a new dashboard, but as soon as I try to add a valuefield I get an exception. The chart is using&amp;nbsp;groupByValues, so I need to add a field using the function&amp;nbsp;&lt;STRONG&gt;add_value_field()&lt;/STRONG&gt;. I pass the fieldname through this function like this:&lt;/P&gt;&lt;PRE&gt;chart = SerialChart(item = webmap,&lt;BR /&gt;                    layer=0,&lt;BR /&gt;                    name="Test Chart",&lt;BR /&gt;                    title = "Test Title",&lt;BR /&gt;                    categories_from = "groupByValues")&lt;BR /&gt;&lt;BR /&gt;chart.data.add_value_field("PriKlasse")&lt;/PRE&gt;&lt;P&gt;Then I get this exception:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;~\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone1\lib\site-packages\arcgis\apps\dashboard\_serialchart\_serial_chart.py&lt;/SPAN&gt; in &lt;SPAN class="ansi-cyan-fg"&gt;_field_type&lt;/SPAN&gt;&lt;SPAN class="ansi-blue-intense-fg ansi-bold"&gt;(self, field_name)&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-fg"&gt;   1046&lt;/SPAN&gt; 
&lt;SPAN class="ansi-green-fg"&gt;   1047&lt;/SPAN&gt;     &lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;def&lt;/SPAN&gt; _field_type&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;,&lt;/SPAN&gt; field_name&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;-&amp;gt; 1048&lt;/SPAN&gt;         f_type &lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;=&lt;/SPAN&gt; self&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;_item&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;tables&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;[&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;0&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;]&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;(&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;)&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;sdf&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;[&lt;/SPAN&gt;field_name&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;]&lt;/SPAN&gt;&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;.&lt;/SPAN&gt;dtype
&lt;SPAN class="ansi-green-fg"&gt;   1049&lt;/SPAN&gt;         &lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;return&lt;/SPAN&gt; f_type
&lt;SPAN class="ansi-green-fg"&gt;   1050&lt;/SPAN&gt; 

&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;IndexError&lt;/SPAN&gt;: list index out of range&lt;/PRE&gt;&lt;P&gt;The error seems to be the same as described in this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/creating-dashboard-elements-with-geojson/m-p/1024505" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/creating-dashboard-elements-with-geojson/m-p/1024505&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 12:36:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1048061#M5931</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2021-04-16T12:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when creating dashboard-chart</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1088772#M6497</link>
      <description>&lt;P&gt;There's been registered two bug related to this issue, so the problem is being solved as we speak hopefully.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 06:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1088772#M6497</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2021-08-13T06:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when creating dashboard-chart</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1132040#M6982</link>
      <description>&lt;P&gt;@ TorbjørnDalløkken2 ‎is this fixed by now? Would you be so kind to share the bug ID, so we can check the status and versions?&lt;BR /&gt;In Github, there is this Bug report: &lt;A href="https://github.com/Esri/arcgis-python-api/issues/1110" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/issues/1110&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 15:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1132040#M6982</guid>
      <dc:creator>SimonSchütte_ct</dc:creator>
      <dc:date>2022-01-10T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when creating dashboard-chart</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1204917#M7656</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/460855"&gt;@SimonSchütte_ct&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just recieved a message from ESRI saying that the bugs now are closed without being fixed. The reason for that is that the dashboard-module was using the ArcGIS Dashboard Classic, which is retired and the dashboard-module will also be deprecated from version 2.0.1.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/ops-dashboard/announcements/dashboards-classic-retiring/" target="_blank" rel="noopener"&gt;ArcGIS Dashboards Classic is Retiring&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 08:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-when-creating-dashboard-chart/m-p/1204917#M7656</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2022-08-22T08:51:34Z</dc:date>
    </item>
  </channel>
</rss>

