<?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 Describe.catalogPath strange results in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/describe-catalogpath-strange-results/m-p/353255#M27714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script tool that takes a workspace as a parameter, then loops through the tables in that workspace and prints their catalog path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
from arcpy import env

workspace = arcpy.GetParameterAsText(0)

env.workspace = workspace

for fc in sorted(arcpy.ListTables()):
 arcpy.AddMessage(arcpy.Describe(fc).catalogPath)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a file geodatabase with a schema imported from an SDE via XML.&amp;nbsp; When I run my script tool against this file gdb I get strange results.&amp;nbsp; The catalog path prints correctly for most of the tables, but a few will show having different catalog paths.&amp;nbsp; Is this a python thing, an environment thing, or an XML schema document thing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 16:21:53 GMT</pubDate>
    <dc:creator>DanielDillard</dc:creator>
    <dc:date>2012-10-11T16:21:53Z</dc:date>
    <item>
      <title>Describe.catalogPath strange results</title>
      <link>https://community.esri.com/t5/python-questions/describe-catalogpath-strange-results/m-p/353255#M27714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script tool that takes a workspace as a parameter, then loops through the tables in that workspace and prints their catalog path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
from arcpy import env

workspace = arcpy.GetParameterAsText(0)

env.workspace = workspace

for fc in sorted(arcpy.ListTables()):
 arcpy.AddMessage(arcpy.Describe(fc).catalogPath)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a file geodatabase with a schema imported from an SDE via XML.&amp;nbsp; When I run my script tool against this file gdb I get strange results.&amp;nbsp; The catalog path prints correctly for most of the tables, but a few will show having different catalog paths.&amp;nbsp; Is this a python thing, an environment thing, or an XML schema document thing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 16:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-catalogpath-strange-results/m-p/353255#M27714</guid>
      <dc:creator>DanielDillard</dc:creator>
      <dc:date>2012-10-11T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Describe.catalogPath strange results</title>
      <link>https://community.esri.com/t5/python-questions/describe-catalogpath-strange-results/m-p/353256#M27715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Follow up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was running my script tool in ArcMap.&amp;nbsp; The tables that were showing a deviant catalog path were tables in the ArcMap TOC that were copies of the tables in my target workspace (same name, different workspace.&amp;nbsp; Ex: the target workspace is a File GDB with a table called STUDY_INFO, and the table in ArcMap is STUDY_INFO.dbf in a folder containing .dbf tables as well as shapefiles.)&amp;nbsp; If I removed the table from ArcMap, the tool listed the correct path.&amp;nbsp; This is kind of annoying, as the tool parameter is a workspace path and has nothing to do with the ArcMap TOC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 15:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/describe-catalogpath-strange-results/m-p/353256#M27715</guid>
      <dc:creator>DanielDillard</dc:creator>
      <dc:date>2012-10-15T15:42:17Z</dc:date>
    </item>
  </channel>
</rss>

