Tryng to append a selected set of features to an existing FC
So I grab a point, create a buffer in memory, select counties in that buffer, then I want to write those to a multipart feature in an existing FC...
The selectedCounties.gdb has Feature Classes "CountiesDissolved" and "Counties_appended" in it
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Target Dataset: Dataset Counties_appended does not exist or is not supported
Failed to execute (Append).
I also tried as such
arcpy.Append_management(results, "C:\Work\CountySelection\Data\SelectCounties.gdb\Counties_appended", "TEST","","")
Any thoughts?
I am also going to want to add values to the FC attributes on the append but thats the next step I guess
point <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Point<SPAN class="punctuation token">(</SPAN>coordinateX<SPAN class="punctuation token">,</SPAN> coordinateY<SPAN class="punctuation token">)</SPAN>
ptGeometry <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>PointGeometry<SPAN class="punctuation token">(</SPAN>point<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># FEED THE BUFFER ANALYSIS THE POINT GEOMETRY THE DISTANCE PARAMETERS</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>Buffer_analysis<SPAN class="punctuation token">(</SPAN>ptGeometry<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'IN_MEMORY/BufferGeom'</SPAN><SPAN class="punctuation token">,</SPAN> distanceMeters<SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>env<SPAN class="punctuation token">.</SPAN>workspace <SPAN class="operator token">=</SPAN> <SPAN class="string token">"C:\Work\CountySelection\Data\SelectCounties.gdb"</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>MakeFeatureLayer_management<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'CountiesDissolved'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'counties_lyr'</SPAN><SPAN class="punctuation token">)</SPAN>
results <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>SelectLayerByLocation_management<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'counties_lyr'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'INTERSECT'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'IN_MEMORY/BufferGeom'</SPAN><SPAN class="punctuation token">)</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>Append_management<SPAN class="punctuation token">(</SPAN>results<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Counties_appended"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"TEST"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">""</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>