<?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: Python SDE to GDB: Error 00354 (randomly putting &amp;quot;.shp&amp;quot; on some outputs) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248218#M66557</link>
    <description>&lt;P&gt;Hi Jeff, see my above reply to David.&lt;/P&gt;&lt;P&gt;I did try use those methods, but had issues with them too.&lt;/P&gt;&lt;P&gt;To keep the file formats on the ToGeodatabase method, I have a created a different lists for the feature classes and tables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_0-1673640966519.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60429iA518074C41558300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_0-1673640966519.png" alt="Ramon_de_Leon_0-1673640966519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 20:17:03 GMT</pubDate>
    <dc:creator>Ramon_de_Leon</dc:creator>
    <dc:date>2023-01-13T20:17:03Z</dc:date>
    <item>
      <title>Python SDE to GDB: Error 00354 (randomly putting ".shp" on some outputs)</title>
      <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248172#M66543</link>
      <description>&lt;P&gt;I have a python script that creates a copy&amp;nbsp; features and tables from a SDE database (around 400 files).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_0-1673635994458.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60422i006769E347886740/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_0-1673635994458.png" alt="Ramon_de_Leon_0-1673635994458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Every time I run it , I get a couple of &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;"ERROR 000354: The name contains invalid characters"&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; errors. Upon checking the error messages I see that it is putting a ".shp" on the "output feature class" parameters. Every time I run it, it would be a different feature class that get this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_1-1673636099981.png" style="width: 583px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60423i63D5706517745663/image-dimensions/583x178?v=v2" width="583" height="178" role="button" title="Ramon_de_Leon_1-1673636099981.png" alt="Ramon_de_Leon_1-1673636099981.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone else who had experienced this behavior and solved it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 18:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248172#M66543</guid>
      <dc:creator>Ramon_de_Leon</dc:creator>
      <dc:date>2023-01-13T18:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDE to GDB: Error 00354 (randomly putting ".shp" on some outputs)</title>
      <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248185#M66545</link>
      <description>&lt;P&gt;As per &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/feature-class-to-geodatabase.htm" target="_blank" rel="noopener"&gt;the good word&lt;/A&gt;, if you grab a shapefile with this tool the output will also have the .shp suffix. You're better off with Feature Class To Feature Class and Table to Table instead as this gives you control over the output name.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 19:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248185#M66545</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2023-01-13T19:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDE to GDB: Error 00354 (randomly putting ".shp" on some outputs)</title>
      <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248190#M66548</link>
      <description>&lt;P&gt;You are also converting these Featureclasses and tables to Geodatabases in your code by using the methods ToGeoDatabase_conversion.&amp;nbsp; Is that intended or are you trying to keep the featureclass/ table file format?&amp;nbsp; If you want to keep the format, you should use the methods &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt;&amp;nbsp; posted.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 19:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248190#M66548</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-13T19:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDE to GDB: Error 00354 (randomly putting ".shp" on some outputs)</title>
      <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248212#M66554</link>
      <description>&lt;P&gt;Hi David, I am&amp;nbsp; grabbing the feature classes and tables from a SDE database.&lt;/P&gt;&lt;P&gt;I tried both "Feature Class To Feature Class", "Copy Features" "Table to Table" and "Export Table", but when I used those I had lots of problems with "lock" related errors.&lt;/P&gt;&lt;P&gt;That was when I resorted to "Feature Class To Geodatabase".&lt;/P&gt;&lt;P&gt;It's weird because out of hundreds of feature classes, it adds the ".shp" on just a couple of of them and it is random every time I run the script.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248212#M66554</guid>
      <dc:creator>Ramon_de_Leon</dc:creator>
      <dc:date>2023-01-13T20:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDE to GDB: Error 00354 (randomly putting ".shp" on some outputs)</title>
      <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248218#M66557</link>
      <description>&lt;P&gt;Hi Jeff, see my above reply to David.&lt;/P&gt;&lt;P&gt;I did try use those methods, but had issues with them too.&lt;/P&gt;&lt;P&gt;To keep the file formats on the ToGeodatabase method, I have a created a different lists for the feature classes and tables.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_0-1673640966519.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60429iA518074C41558300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_0-1673640966519.png" alt="Ramon_de_Leon_0-1673640966519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248218#M66557</guid>
      <dc:creator>Ramon_de_Leon</dc:creator>
      <dc:date>2023-01-13T20:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDE to GDB: Error 00354 (randomly putting ".shp" on some outputs)</title>
      <link>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248225#M66560</link>
      <description>&lt;P&gt;Locks can be a pain to work around. If you have the data loaded in Pro or arcmap while running the scripts, it will throw the lock error so make sure that any of the outputs are not open in arc when you run the script. You can include some code to either rename the output for these datasets whose outputs are locked, or skip them so you have a more more solid solution than converting the file types, which I think you would have to convert back to featureclass and table at some point or write more code to handle them.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-sde-to-gdb-error-00354-randomly-putting/m-p/1248225#M66560</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-13T20:34:27Z</dc:date>
    </item>
  </channel>
</rss>

