<?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: Why does arcpy.da.Describe return different keys for the same data based on location? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354263#M69303</link>
    <description>&lt;P&gt;also, try datatype rather than your check&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/workspace-properties.htm" target="_blank"&gt;Workspace properties—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;as in the code example above&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;desc.workspaceType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;workspaceType&lt;BR /&gt;(Read Only)&lt;BR /&gt;Specifies the workspace type.&lt;/P&gt;&lt;P&gt;FileSystem—The workspace type is a file-based workspace (shapefile, coverage, and so on) or an in-memory workspace.&lt;BR /&gt;LocalDatabase—The workspace type is a local geodatabase (a file or personal geodatabase) or a memory workspace.&lt;BR /&gt;RemoteDatabase—The workspace type is a geodatabase that requires a remote connection (enterprise, OLE DB, and so on).&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 19:17:02 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-11-28T19:17:02Z</dc:date>
    <item>
      <title>Why does arcpy.da.Describe return different keys for the same data based on location?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354215#M69300</link>
      <description>&lt;P&gt;I have a file geodatabase on a remote desktop with the following layer: r'C:\Folder\Database.gdb\Feature_Dataset\Feature_Class'. If I copy this entire gdb to my local machine, da.Describe does not return the workspace property as it does on the remote desktop.&lt;/P&gt;&lt;P&gt;On the remote desktop:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;desc = arcpy.da.Describe(r'C:\...\Folder\Database.gdb\FDataset\Feature_Class')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;print('workspace' in desc.keys())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;True&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;On my local desktop:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;desc = arcpy.da.Describe(r'C:\...\Folder\Database.gdb\FDataset\Feature_Class')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;print('workspace' in desc.keys())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This is from the python window in ArcGIS Pro 3.2 on my local desktop, and 3.1 on the remote. It's not just the workspace key that's different, though, and it makes it difficult to write python tools when the keys are different.&lt;/P&gt;&lt;P&gt;Is it because the remote desktop has enterprise? To be clear neither of these are sde databases - they're both file geodatabases.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 18:05:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354215#M69300</guid>
      <dc:creator>DantePisani1</dc:creator>
      <dc:date>2023-11-28T18:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.da.Describe return different keys for the same data based on location?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354255#M69302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Just as a diagnostic, in both places print out all the keys and values using pretty print.&lt;/P&gt;&lt;P&gt;import pprint&lt;BR /&gt;pprint.pprint(desc)&lt;/P&gt;&lt;P&gt;Compare the two outputs...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 19:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354255#M69302</guid>
      <dc:creator>RobBurke</dc:creator>
      <dc:date>2023-11-28T19:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.da.Describe return different keys for the same data based on location?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354263#M69303</link>
      <description>&lt;P&gt;also, try datatype rather than your check&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/workspace-properties.htm" target="_blank"&gt;Workspace properties—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;as in the code example above&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;desc.workspaceType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;workspaceType&lt;BR /&gt;(Read Only)&lt;BR /&gt;Specifies the workspace type.&lt;/P&gt;&lt;P&gt;FileSystem—The workspace type is a file-based workspace (shapefile, coverage, and so on) or an in-memory workspace.&lt;BR /&gt;LocalDatabase—The workspace type is a local geodatabase (a file or personal geodatabase) or a memory workspace.&lt;BR /&gt;RemoteDatabase—The workspace type is a geodatabase that requires a remote connection (enterprise, OLE DB, and so on).&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 19:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354263#M69303</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-11-28T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.da.Describe return different keys for the same data based on location?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354265#M69304</link>
      <description>&lt;P&gt;The&amp;nbsp;&amp;nbsp;&lt;EM&gt;workspace&amp;nbsp;&lt;/EM&gt;property was added to the Describe results in version 3.2.&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 19:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354265#M69304</guid>
      <dc:creator>justin-mpls</dc:creator>
      <dc:date>2023-11-28T19:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.da.Describe return different keys for the same data based on location?</title>
      <link>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354321#M69307</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 20:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-does-arcpy-da-describe-return-different-keys/m-p/1354321#M69307</guid>
      <dc:creator>DantePisani1</dc:creator>
      <dc:date>2023-11-28T20:41:17Z</dc:date>
    </item>
  </channel>
</rss>

