<?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: gis.content.get not working as expected in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/gis-content-get-not-working-as-expected/m-p/846362#M3670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem. The working python install has arcgis module 1.2.1 and the non-working one has 1.0.1. I had to uninstall pro completely and re-install it. There was a bug in older version of Pro that prevents updating the python modules. Now I have arcgis module 1.2.5 and it works. It was a Pro 1.X updated to 2.0.1, but not uninstalled during the update. Now its a clean Pro 2.1.0 install.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 13:12:54 GMT</pubDate>
    <dc:creator>JohnBroecher</dc:creator>
    <dc:date>2018-03-15T13:12:54Z</dc:date>
    <item>
      <title>gis.content.get not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/gis-content-get-not-working-as-expected/m-p/846361#M3669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script works on my Anaconda Python 3.6.4 but I need to run it from the Pro Python installation and it fails saying that the item object has no attribute export. It is supposed to download create an item and download it as a GDB do disk. It seems that&amp;nbsp; gis.content.get function results in a different object type. How can I get this to work in the Pro Python installation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from arcgis.gis import *&lt;/P&gt;&lt;P&gt;import time&lt;/P&gt;&lt;P&gt;import sys&lt;/P&gt;&lt;P&gt;gis = GIS(username="username", password="pswd")&lt;BR /&gt;data_item_id = '259558969c234c669667adf956e6939d'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data_item = gis.content.get(data_item_id)&lt;BR /&gt;title="Test_Export" + time.strftime("%Y%m%d-%H%M%S")&lt;BR /&gt;print(data_item) # for testing&lt;BR /&gt;print(sys.version) # for testing&lt;BR /&gt;outputgdb = data_item.export(title=title,export_format="File Geodatabase",wait=True)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The printed output when it works (data_item and sys.version):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;Item title:"Secure_SD_Roadkill" type:Feature Layer Collection owner:username&amp;gt;&lt;BR /&gt;3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The printed output when it fails (data_item and sys.version):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;numViews=84&lt;BR /&gt; spatialReference='GCS_WGS_1984'&lt;BR /&gt; listed=False&lt;BR /&gt; scoreCompleteness=66&lt;BR /&gt; screenshots=[]&lt;BR /&gt; guid=None&lt;BR /&gt; industries=[]&lt;BR /&gt; created=1519400137000&lt;BR /&gt; _portal=&amp;lt;arcgis._impl.portalpy.Portal object at 0x0000000001434160&amp;gt;&lt;BR /&gt; categories=[]&lt;BR /&gt; languages=[]&lt;BR /&gt; tables=None&lt;BR /&gt; thumbnail='thumbnail/thumbnail.png'&lt;BR /&gt; _gis=&amp;lt;arcgis.gis.GIS object at 0x0000000001434128&amp;gt;&lt;BR /&gt; numRatings=0&lt;BR /&gt; banner=None&lt;BR /&gt; ownerFolder='71848e17504e418ea6671ab7fdfdb288'&lt;BR /&gt;&lt;SPAN&gt; url='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FjWPBXspaQsJStWX8%2Farcgis%2Frest%2Fservices%2FSecure_SD_Roadkill%2FFeatureServer" rel="nofollow" target="_blank"&gt;https://services.arcgis.com/jWPBXspaQsJStWX8/arcgis/rest/services/Secure_SD_Roadkill/FeatureServer&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;BR /&gt; culture='en-us'&lt;BR /&gt; access='org'&lt;BR /&gt; _workdir='C:\\Users\\GFSF12~1\\AppData\\Local\\Temp'&lt;BR /&gt; modified=1519400162000&lt;BR /&gt; itemControl='admin'&lt;BR /&gt; commentsEnabled=True&lt;BR /&gt; itemid='259558969c234c669667adf956e6939d'&lt;BR /&gt; avgRating=0&lt;BR /&gt; appCategories=[]&lt;BR /&gt; tags=['SD', 'Roadkill', 'GFP', 'South', 'Dakota', 'ArcGIS', 'Service Definition', '.sd']&lt;BR /&gt; protected=False&lt;BR /&gt; owner='userName'&lt;BR /&gt; largeThumbnail=None&lt;BR /&gt; description=None&lt;BR /&gt; name='Secure_SD_Roadkill'&lt;BR /&gt; snippet='Secured Service that has records appended from SD Roadkill Survey123 Data.'&lt;BR /&gt; proxyFilter=None&lt;BR /&gt; id='259558969c234c669667adf956e6939d'&lt;BR /&gt; title='Secure_SD_Roadkill'&lt;BR /&gt; type='Feature Service'&lt;BR /&gt; typeKeywords=['ArcGIS Server', 'Data', 'Feature Access', 'Feature Service', 'Service', 'Singlelayer', 'Hosted Service']&lt;BR /&gt; licenseInfo=None&lt;BR /&gt; size=65536&lt;BR /&gt; properties=None&lt;BR /&gt; accessInformation=None&lt;BR /&gt; documentation=None&lt;BR /&gt; extent=[[-180, -90], [180, 90]]&lt;BR /&gt; layers=None&lt;BR /&gt; numComments=0&lt;BR /&gt; _hydrated=False&lt;BR /&gt;3.5.3 |Continuum Analytics, Inc.| (default, May 15 2017, 10:43:23) [MSC v.1900 64 bit (AMD64)]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/398826_pastedImage_8.png" style="width: 620px; height: 214px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/gis-content-get-not-working-as-expected/m-p/846361#M3669</guid>
      <dc:creator>JohnBroecher</dc:creator>
      <dc:date>2018-03-14T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: gis.content.get not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/gis-content-get-not-working-as-expected/m-p/846362#M3670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem. The working python install has arcgis module 1.2.1 and the non-working one has 1.0.1. I had to uninstall pro completely and re-install it. There was a bug in older version of Pro that prevents updating the python modules. Now I have arcgis module 1.2.5 and it works. It was a Pro 1.X updated to 2.0.1, but not uninstalled during the update. Now its a clean Pro 2.1.0 install.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/gis-content-get-not-working-as-expected/m-p/846362#M3670</guid>
      <dc:creator>JohnBroecher</dc:creator>
      <dc:date>2018-03-15T13:12:54Z</dc:date>
    </item>
  </channel>
</rss>

