<?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.Append_management throws exception in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcpy-append-management-throws-exception/m-p/778143#M5263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mission is to add this specific point (&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;arcpy.Point(&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;495880.11039999966&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;6220115.4076000005&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;99&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;to a feature class, the fc are a part of a geometric network&lt;/P&gt;&lt;P&gt;I cannot use the arcpy.da.insert cursor due to&amp;nbsp;Bug NIM102778&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first i create a new feature class which is not a part of a geometric network like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;spatial_ref&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.Describe(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ELDB.EL.MUFFE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;).spatialReference&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; fc&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.CreateFeatureclass_management(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"C:&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\Schema&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;LDB.EL.El"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"MyTempFeatureClass"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Point"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ELDB.EL.MUFFE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;None&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ENABLED"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,spatial_ref)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;And inserts into the new class like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;point2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.Point(&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;495880.11039999966&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;6220115.4076000005&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;99&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;pt2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.PointGeometry(point2,spatial_ref)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;icursor&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.da.InsertCursor(fc,[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"SNCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"RMCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"LCCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"OMCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Enabled"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"MACode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ADate"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Comment"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;icursor.insertRow([pt2,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"10000"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,datetime.datetime.now(),&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Created&amp;nbsp;from TestScript"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;del&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;icursor&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point Im able to find the&amp;nbsp;MyTempFeatureClass and the inserted point in ArcMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now its time to append the point into thw feature class in the geometric network&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im doing it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;edit&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.da.Editor(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"C:&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\Schema&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;edit.startEditing(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;edit.startOperation()&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.Append_management&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"C:&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\osa&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;LDB.EL.&lt;SPAN style="color: #ce9178; background-color: #1e1e1e;"&gt;MyTempFeatureClass&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"&lt;SPAN style="color: #d16969; background-color: #1e1e1e;"&gt;C:&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\osa&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;LDB.EL.MUFFE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'NO_TEST'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;except&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Exception&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;e:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;pass&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;finally&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;edit.stopOperation()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;edit.stopEditing(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exception is:&lt;/P&gt;&lt;P&gt;ERROR 000372: Spatial Reference for output is invalid, Please update to allow output to become valid\nFailed to&lt;/P&gt;&lt;P&gt;execute (Append).\n'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2019 13:02:28 GMT</pubDate>
    <dc:creator>leonoestergaard</dc:creator>
    <dc:date>2019-11-05T13:02:28Z</dc:date>
    <item>
      <title>arcpy.Append_management throws exception</title>
      <link>https://community.esri.com/t5/developers-questions/arcpy-append-management-throws-exception/m-p/778143#M5263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mission is to add this specific point (&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;arcpy.Point(&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;495880.11039999966&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;6220115.4076000005&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;99&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;to a feature class, the fc are a part of a geometric network&lt;/P&gt;&lt;P&gt;I cannot use the arcpy.da.insert cursor due to&amp;nbsp;Bug NIM102778&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So first i create a new feature class which is not a part of a geometric network like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;spatial_ref&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.Describe(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ELDB.EL.MUFFE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;).spatialReference&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; fc&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.CreateFeatureclass_management(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"C:&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\Schema&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;LDB.EL.El"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"MyTempFeatureClass"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Point"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ELDB.EL.MUFFE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;None&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ENABLED"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,spatial_ref)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;And inserts into the new class like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;point2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.Point(&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;495880.11039999966&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;6220115.4076000005&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;99&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;pt2&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.PointGeometry(point2,spatial_ref)&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;icursor&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.da.InsertCursor(fc,[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"SNCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"RMCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"LCCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"OMCode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Enabled"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"MACode"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"ADate"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Comment"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;icursor.insertRow([pt2,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"10000"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,datetime.datetime.now(),&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Created&amp;nbsp;from TestScript"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;del&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;icursor&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point Im able to find the&amp;nbsp;MyTempFeatureClass and the inserted point in ArcMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now its time to append the point into thw feature class in the geometric network&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im doing it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;edit&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;arcpy.da.Editor(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"C:&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\Schema&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;edit.startEditing(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;edit.startOperation()&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.Append_management&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"C:&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\osa&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;LDB.EL.&lt;SPAN style="color: #ce9178; background-color: #1e1e1e;"&gt;MyTempFeatureClass&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;"&lt;SPAN style="color: #d16969; background-color: #1e1e1e;"&gt;C:&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\C&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;onnections&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\G&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;ISProddb\osa&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;l@ProdDB.sde&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #d7ba7d;"&gt;\E&lt;/SPAN&gt;&lt;SPAN style="color: #d16969;"&gt;LDB.EL.MUFFE"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'NO_TEST'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;except&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Exception&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;e:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;pass&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;finally&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;edit.stopOperation()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;edit.stopEditing(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exception is:&lt;/P&gt;&lt;P&gt;ERROR 000372: Spatial Reference for output is invalid, Please update to allow output to become valid\nFailed to&lt;/P&gt;&lt;P&gt;execute (Append).\n'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 13:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcpy-append-management-throws-exception/m-p/778143#M5263</guid>
      <dc:creator>leonoestergaard</dc:creator>
      <dc:date>2019-11-05T13:02:28Z</dc:date>
    </item>
  </channel>
</rss>

