<?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 Need help with arcpy with ARCSDE with Oracle in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/need-help-with-arcpy-with-arcsde-with-oracle/m-p/510752#M40116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written a script that imports cad drawings into a geodatabase.&amp;nbsp; I first was importing into a file gdb and have since modified it to use SDE with Oracle as a db.&amp;nbsp; Troubleshooting has a been a nightmare.&amp;nbsp; The overall error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Underlying DBMS error [ORA-00911: invalid character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(SDE.VU_0029_04_dwg_Point)] [SDE.VU_0029_04_dwg_Point]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Merge).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, after testing the tablename throughly I came to the conclusion the problem lies within the column names. So, I added code to check those and this is the result:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname EntLinetype changed to EntLinetyp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname BlkLinetype changed to BlkLinetyp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname APPLICATION changed to APPLICATIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname FILE_VERSION changed to FILE_VERSI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname INTERNAL_UNITS changed to INTERNAL_U&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname FACILITY_ID changed to FACILITY_I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname LEGEND_POINT_X changed to LEGEND_POI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname LEGEND_POINT_Y changed to LEGEND_POI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my real question is why is arcpy truncating my column names to 10 characters when my db supports 30 characters?&amp;nbsp;&amp;nbsp; Is there a way I can get around this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 12:20:58 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2010-12-22T12:20:58Z</dc:date>
    <item>
      <title>Need help with arcpy with ARCSDE with Oracle</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-arcpy-with-arcsde-with-oracle/m-p/510752#M40116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written a script that imports cad drawings into a geodatabase.&amp;nbsp; I first was importing into a file gdb and have since modified it to use SDE with Oracle as a db.&amp;nbsp; Troubleshooting has a been a nightmare.&amp;nbsp; The overall error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Underlying DBMS error [ORA-00911: invalid character&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(SDE.VU_0029_04_dwg_Point)] [SDE.VU_0029_04_dwg_Point]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Merge).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, after testing the tablename throughly I came to the conclusion the problem lies within the column names. So, I added code to check those and this is the result:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname EntLinetype changed to EntLinetyp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname BlkLinetype changed to BlkLinetyp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname APPLICATION changed to APPLICATIO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname FILE_VERSION changed to FILE_VERSI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname INTERNAL_UNITS changed to INTERNAL_U&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname FACILITY_ID changed to FACILITY_I&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname LEGEND_POINT_X changed to LEGEND_POI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fieldname LEGEND_POINT_Y changed to LEGEND_POI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now my real question is why is arcpy truncating my column names to 10 characters when my db supports 30 characters?&amp;nbsp;&amp;nbsp; Is there a way I can get around this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 12:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-arcpy-with-arcsde-with-oracle/m-p/510752#M40116</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-12-22T12:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with arcpy with ARCSDE with Oracle</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-arcpy-with-arcsde-with-oracle/m-p/510753#M40117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After much investigation, I find that arcpy.ValidateTableName() returns a truncated name but isn't used.&amp;nbsp; It still uses my long field name.&amp;nbsp; The real problem I was running into is a encoding problem. Not sure where this column name is coming from but fixed with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if field.name.encode('ascii', 'ignore').upper() == "Y":
&amp;nbsp;&amp;nbsp; fieldMappings.removeFieldMap(fmCnt)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="http://cpc-fis.vanderbilt.edu/downloads/invalidcolumnname.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-arcpy-with-arcsde-with-oracle/m-p/510753#M40117</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T22:21:50Z</dc:date>
    </item>
  </channel>
</rss>

