<?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: AttributeError: 'tuple' object has no attribute 'content' in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182642#M7490</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cut of the&amp;nbsp;&lt;SPAN&gt;"workforce_scripts" , and no more errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;gis = arcgis.gis.GIS(portal_url, portal_username, portal_password)&lt;BR /&gt;item = gis.content.get("code of the wf project")&lt;BR /&gt;project = workforce.Project(item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 11:57:07 GMT</pubDate>
    <dc:creator>FrederikPicavet</dc:creator>
    <dc:date>2022-06-14T11:57:07Z</dc:date>
    <item>
      <title>AttributeError: 'tuple' object has no attribute 'content'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182615#M7488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We work on a dedicated hosted version, so not the cloud solution.&lt;BR /&gt;When we launch the scripts we manage to load everything to start with.&lt;/P&gt;&lt;P&gt;so:&lt;BR /&gt;import arcgis&lt;BR /&gt;from arcgis.apps import workforce&lt;BR /&gt;from arcgis geocoding import geocode&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;whe define our portal username password and portal url in a second phase&lt;BR /&gt;so:&lt;BR /&gt;portal_username ="our username"&lt;BR /&gt;portal_password = "our password"&lt;BR /&gt;portal_url = "our url"&lt;/P&gt;&lt;P&gt;now when we enter in the third phase where we want to open the layer&lt;BR /&gt;gis = arcgis.gis.GIS(portal_url), "workforce_scripts"&amp;nbsp;&lt;BR /&gt;gis.conten.get("the_unique_name_in_the_url_of_the_workforce_layer)&lt;BR /&gt;project = workforce.project(item)&lt;/P&gt;&lt;P&gt;this second line generates the following error:&lt;/P&gt;&lt;P&gt;AttributeError: 'tuple' object has no attribute 'content'&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone knows what we should look for?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182615#M7488</guid>
      <dc:creator>FrederikPicavet</dc:creator>
      <dc:date>2022-06-14T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'tuple' object has no attribute 'content'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182622#M7489</link>
      <description>&lt;P&gt;&lt;SPAN&gt;gis = arcgis.gis.GIS(portal_url), "workforce_scripts"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"workforce_scripts" does this need to be comment out?&amp;nbsp; &amp;nbsp;It should have caused the script to error&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182622#M7489</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-06-14T09:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'tuple' object has no attribute 'content'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182642#M7490</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cut of the&amp;nbsp;&lt;SPAN&gt;"workforce_scripts" , and no more errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;gis = arcgis.gis.GIS(portal_url, portal_username, portal_password)&lt;BR /&gt;item = gis.content.get("code of the wf project")&lt;BR /&gt;project = workforce.Project(item)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/attributeerror-tuple-object-has-no-attribute/m-p/1182642#M7490</guid>
      <dc:creator>FrederikPicavet</dc:creator>
      <dc:date>2022-06-14T11:57:07Z</dc:date>
    </item>
  </channel>
</rss>

