<?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: Bug in Python API 1.8.1 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/bug-in-python-api-1-8-1/m-p/782756#M1266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to see if that issue has been address with version 1.8.2, otherwise raise an "Issue" at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-python-api" title="https://github.com/Esri/arcgis-python-api"&gt;GitHub - Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2020 04:03:35 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-10-27T04:03:35Z</dc:date>
    <item>
      <title>Bug in Python API 1.8.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/bug-in-python-api-1-8-1/m-p/782755#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think there is a bug in the Python API.&lt;/P&gt;&lt;P&gt;When creating a new Table feature and adding it to a webmap I get an error:&lt;/P&gt;&lt;P&gt;AttributeError("'NoneType' object has no attribute 'json'",)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_table = Table(new_table_url)&lt;BR /&gt; wm.add_table(new_table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the&amp;nbsp;add_table function in&amp;nbsp;C:\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\mapping\_types.py we have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not isinstance(table, arcgis.features.Table):&lt;BR /&gt; raise Exception("Type of object passed in must of type 'Table'")&lt;BR /&gt; self.add_layer(table, options)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in&amp;nbsp;&amp;nbsp;def add_layer(self, layer, options=None):&lt;/P&gt;&lt;P&gt;the first check is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if options is None:&lt;BR /&gt; options = {}&lt;BR /&gt; if isinstance(layer, arcgis.features.FeatureLayer) and \&lt;BR /&gt; 'renderer' not in options:&lt;BR /&gt; options['renderer'] = json.loads(layer.renderer.json)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which throws the error because tables obviously don't have renderers.&lt;/P&gt;&lt;P&gt;If you do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isinstance(table, arcgis.features.Table)&lt;BR /&gt;True&lt;BR /&gt;isinstance(table, arcgis.features.FeatureLayer)&lt;BR /&gt;True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is why it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2020 01:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/bug-in-python-api-1-8-1/m-p/782755#M1265</guid>
      <dc:creator>FraserHand</dc:creator>
      <dc:date>2020-10-27T01:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in Python API 1.8.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/bug-in-python-api-1-8-1/m-p/782756#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to see if that issue has been address with version 1.8.2, otherwise raise an "Issue" at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-python-api" title="https://github.com/Esri/arcgis-python-api"&gt;GitHub - Esri/arcgis-python-api: Documentation and samples for ArcGIS API for Python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2020 04:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/bug-in-python-api-1-8-1/m-p/782756#M1266</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-10-27T04:03:35Z</dc:date>
    </item>
  </channel>
</rss>

