<?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 arcpy.CopyFeatures_management, SDE, and schema with underscores in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213366#M16430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The best that I can narrow down is that my script is failing because of underscores in my SDE schema names. (All other schemas &amp;amp; tablespaces, both spatial and tabular, without underscores run through the process just fine.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error returned to the python shell:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Input Features: Dataset X222_TRN_MST.GIS_POINTS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; does not exist or is not supported"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have multiple SDE environments and am using multiple SDE connection files for various schemas --all that work fine, EXCEPT the &lt;/SPAN&gt;&lt;STRONG&gt;schema that includes an underscore&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have a workaround? I'm not going to convince my DBA to change the schema name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 16:22:14 GMT</pubDate>
    <dc:creator>JanicePoehlman</dc:creator>
    <dc:date>2011-09-28T16:22:14Z</dc:date>
    <item>
      <title>arcpy.CopyFeatures_management, SDE, and schema with underscores</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213366#M16430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The best that I can narrow down is that my script is failing because of underscores in my SDE schema names. (All other schemas &amp;amp; tablespaces, both spatial and tabular, without underscores run through the process just fine.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error returned to the python shell:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Input Features: Dataset X222_TRN_MST.GIS_POINTS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; does not exist or is not supported"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have multiple SDE environments and am using multiple SDE connection files for various schemas --all that work fine, EXCEPT the &lt;/SPAN&gt;&lt;STRONG&gt;schema that includes an underscore&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have a workaround? I'm not going to convince my DBA to change the schema name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 16:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213366#M16430</guid>
      <dc:creator>JanicePoehlman</dc:creator>
      <dc:date>2011-09-28T16:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CopyFeatures_management, SDE, and schema with underscores</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213367#M16431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What code is failing? Have you tried FeatureClassToFeatureClass_conversion tool? Are you using the right keyword?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 17:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213367#M16431</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-09-28T17:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CopyFeatures_management, SDE, and schema with underscores</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213368#M16432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;pubschema = parameters["SDEpub"]&amp;nbsp;&amp;nbsp; #input from parameters file
sdenv = parameters["env"]&amp;nbsp; #input from parameters file
pubDEVbugeo = "SDE"+sdenv+"_"+str(date.today()) + "_BU_" +pubschema+ "gdb"&amp;nbsp; #construct name
f2 = open(feat_class_pub) #open text file
&amp;nbsp;&amp;nbsp;&amp;nbsp; while 1:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sLine = f2.readline() #read text file
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not sLine: break
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(pubschema+sLine, outputdir+"/"+env+"/"+sLine) #copy to new&lt;/PRE&gt;&lt;SPAN&gt;I'm using an SDE connection file, a copy of the exact one that is used to connect to SDE through ArcCatalog on the same computer.&amp;nbsp; I shouldn't think this would be an issue (it's not for other connection files or this one in AC) and the keyword is in the connection file but I will take a look.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script syntax works but balks on schema names that include an underscore.&amp;nbsp; Might be barking up the wrong tree but it's a place to start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-copyfeatures-management-sde-and-schema-with/m-p/213368#M16432</guid>
      <dc:creator>JanicePoehlman</dc:creator>
      <dc:date>2021-12-11T10:28:20Z</dc:date>
    </item>
  </channel>
</rss>

