<?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: ERROR 000670: output Output Feature Class is same as input Input Features in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161394#M12331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be useful to show what you selected when the tool was being run.&amp;nbsp; In place of print statements you need to use arcpy.AddMessage( stuff ) to get print-out to the dialog when it is running.&amp;nbsp; As it stands, it is difficult to determine whether the parameters are correct since you haven't listed them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 19:33:42 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-03-17T19:33:42Z</dc:date>
    <item>
      <title>ERROR 000670: output Output Feature Class is same as input Input Features</title>
      <link>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161390#M12327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Good day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What should I do to avoid this error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; File "G:\MB\script\Model3C.py", line 37, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Select_analysis(Input_Features, Output_Feature_Class, Expression)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\analysis.py", line 84, in Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;ERROR 000670: output Output Feature Class is same as input Input Features&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Failed to execute (Select).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is my code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;# Load required toolboxes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;#arcpy.ImportToolbox("Model Functions")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;# Script arguments&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Input_Features = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Expression = arcpy.GetParameterAsText(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Group_By_Fields = arcpy.GetParameterAsText(2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;NOMBRE__Value_ = arcpy.GetParameterAsText(3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;if NOMBRE__Value_ == '#' or not NOMBRE__Value_:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOMBRE__Value_ = "C:\\Users\\CARLOSH\\Documents\\ArcGIS\\Default.gdb\\NOMBRE_CONSTANTE_%Value%" # provide a default value if unspecified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Skip_Null_Values = arcpy.GetParameterAsText(4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;if Skip_Null_Values == '#' or not Skip_Null_Values:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Skip_Null_Values = "false" # provide a default value if unspecified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;# Local variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Output_Feature_Class = Input_Features&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Selected_Features = Output_Feature_Class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Value = Output_Feature_Class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;# Process: Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;arcpy.Select_analysis(Input_Features, Output_Feature_Class, Expression)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;# Process: Iterate Feature Selection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;arcpy.IterateFeatureSelection_mb(Output_Feature_Class, Group_By_Fields, Skip_Null_Values)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;# Process: Copy Features&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;arcpy.CopyFeatures_management(Selected_Features, NOMBRE__Value_, "", "0", "0", "0")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 16:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161390#M12327</guid>
      <dc:creator>CarlosHernandez8</dc:creator>
      <dc:date>2016-03-17T16:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000670: output Output Feature Class is same as input Input Features</title>
      <link>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161391#M12328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you throw some print statements in so the various inputs and outputs can be evaluated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 16:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161391#M12328</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-17T16:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000670: output Output Feature Class is same as input Input Features</title>
      <link>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161392#M12329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you trying to accomplish?&amp;nbsp; I see in your code that you are setting the output feature class name to the name of your input feature class, hence the error message.&amp;nbsp; Are you trying to overwrite an existing feature class with a subselection of itself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 17:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161392#M12329</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-03-17T17:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000670: output Output Feature Class is same as input Input Features</title>
      <link>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161393#M12330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for answering ,&lt;/P&gt;&lt;P&gt;this code is good! When you step to a tool it generates the error that I showed, I attached a screen with parameters and output interface and error running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Este codigo genera un featureclass por registro .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no experience in python, I have problems with parameters, &lt;STRONG&gt;which is not the error generating tool&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Revisar2.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/191353_Revisar2.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Revisar3.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/191366_Revisar3.png" style="width: 620px; height: 308px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 17:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161393#M12330</guid>
      <dc:creator>CarlosHernandez8</dc:creator>
      <dc:date>2016-03-17T17:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000670: output Output Feature Class is same as input Input Features</title>
      <link>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161394#M12331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be useful to show what you selected when the tool was being run.&amp;nbsp; In place of print statements you need to use arcpy.AddMessage( stuff ) to get print-out to the dialog when it is running.&amp;nbsp; As it stands, it is difficult to determine whether the parameters are correct since you haven't listed them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 19:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000670-output-output-feature-class-is-same/m-p/161394#M12331</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-17T19:33:42Z</dc:date>
    </item>
  </channel>
</rss>

