<?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: arcpy.ParseTableName returning null in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475837#M37271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think problem is related to your "&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;adr" path , I tried one of my sde connection and it works. Try to copy your path location &lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;from catalog location after browsing your path. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;IMG alt="catalog_location.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/7170_catalog_location.png" style="height: auto;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 13:03:09 GMT</pubDate>
    <dc:creator>NaimeCelik</dc:creator>
    <dc:date>2014-09-03T13:03:09Z</dc:date>
    <item>
      <title>arcpy.ParseTableName returning null</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475835#M37269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this very simpel script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adr =r"\\gisbatch\servere\GIS-DB\GISEDIT\ADRESSE@GISEDIT.sde\GISDIST.ADRESSE.ENHED_ADR_BBR"&lt;/P&gt;&lt;P&gt;env.workspace = os.path.dirname(adr)&lt;/P&gt;&lt;P&gt;print arcpy.ParseTableName(os.path.basename(adr))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had expected this reply "GISDIST, ADRESSE, ENHED_ADR_BBR"&lt;/P&gt;&lt;P&gt;But I get this "(null), (null), GISDIST.ADRESSE.ENHED_ADR_BBR"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I do wrong or if then, what is the purpose with the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 11:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475835#M37269</guid>
      <dc:creator>deleted-user-tmoWMkOb1VrD</dc:creator>
      <dc:date>2014-09-03T11:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ParseTableName returning null</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475836#M37270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't you just want to use the os stuff instead?&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14097475243553822 jive_text_macro" jivemacro_uid="_14097475243553822"&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import os&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; adr =r"&lt;A href="https://community.esri.com/"&gt;\\gisbatch\servere\GIS-DB\GISEDIT\ADRESSE@GISEDIT.sde\GISDIST.ADRESSE.ENHED_ADR_BBR&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; adr&lt;/P&gt;
&lt;P&gt;'\\\\gisbatch\\servere\\GIS-DB\\GISEDIT\\ADRESSE@GISEDIT.sde\\GISDIST.ADRESSE.ENHED_ADR_BBR'&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; x = os.path.basename(adr)&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; x&lt;/P&gt;
&lt;P&gt;'GISDIST.ADRESSE.ENHED_ADR_BBR'&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; y = os.path.dirname(adr)&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; y&lt;/P&gt;
&lt;P&gt;'\\\\gisbatch\\servere\\GIS-DB\\GISEDIT\\ADRESSE@GISEDIT.sde'&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 12:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475836#M37270</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-09-03T12:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.ParseTableName returning null</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475837#M37271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think problem is related to your "&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;adr" path , I tried one of my sde connection and it works. Try to copy your path location &lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;from catalog location after browsing your path. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;IMG alt="catalog_location.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/7170_catalog_location.png" style="height: auto;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 13:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-parsetablename-returning-null/m-p/475837#M37271</guid>
      <dc:creator>NaimeCelik</dc:creator>
      <dc:date>2014-09-03T13:03:09Z</dc:date>
    </item>
  </channel>
</rss>

