<?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 using insert cursor (da) with featureclass in a geometric network in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428228#M33644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="color: #222222; font-size: 18px; margin-top: 25px; margin-bottom: 9px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;As Callum pointed out to me in a separate email it looks like its a bug.&lt;/H2&gt;&lt;H2 style="color: #222222; font-size: 18px; margin-top: 25px; margin-bottom: 9px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Bug NIM-102778&lt;/H2&gt;&lt;H3 style="color: #222222; font-size: 15px; margin-top: 17px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Synopsis&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;The insertRow method of arcpy.da.InsertCursor fails when working with data in a geometric network.&lt;/P&gt;&lt;H3 style="color: #222222; font-size: 15px; margin-top: 17px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Additional Information&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;N/A&lt;/P&gt;&lt;H3 style="color: #222222; font-size: 15px; margin-top: 17px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Alternate Solution&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;The Append tool works fine for features participating in a geometric network. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Fill an empty feature class outside the geometric network with records using an insert cursor. &lt;BR /&gt;2. Use the Append tool to add the records to the feature class in the geometric network.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMTAyNzc4"&gt;http://support.esri.com/en/bugs/nimbus/TklNMTAyNzc4&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2015 02:31:13 GMT</pubDate>
    <dc:creator>JohnPlunkett</dc:creator>
    <dc:date>2015-10-15T02:31:13Z</dc:date>
    <item>
      <title>Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428220#M33636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am got an issue where I am trying to insert features into a feature class that participates in a geometric network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly I guess the question is "Is this even possible?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I try to insert a record into the featureclass I am getting this error: &lt;/SPAN&gt;&lt;SPAN lang="EN-NZ" style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: black; mso-ansi-language: EN-NZ;"&gt;SystemError('error return without exception set',)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the geometric network or use the code on another feature class that does not participate in a geometric network it works fine. I cannot however remove the geometric network from the production database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has any ideas on this issue that would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Callum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 19:46:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428220#M33636</guid>
      <dc:creator>CallumSmith</dc:creator>
      <dc:date>2015-10-13T19:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428221#M33637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/editor.htm"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;here...&lt;/SPAN&gt;&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;This statement&lt;/P&gt;&lt;P&gt;The following includes some dataset types that can only be edited within an edit session:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Feature classes participating in a topology&lt;/LI&gt;&lt;LI&gt;Feature classes participating in a geometric network&lt;/LI&gt;&lt;LI&gt;Versioned datasets in enterprise geodatabases&lt;/LI&gt;&lt;LI&gt;Some object and feature classes with class extensions&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have not clue if it applies to your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 19:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428221#M33637</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-13T19:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428222#M33638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not tried it but you can start edit in ArcMap and run your script in the python window.&lt;/P&gt;&lt;P&gt;Maybe it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 04:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428222#M33638</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2015-10-14T04:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428223#M33639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recently completed a tool to update / insert into a Network Dataset. I can confirm that you need a edit session open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 06:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428223#M33639</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-10-14T06:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428224#M33640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know...I wish you could make notes in the margins of the online help &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 10:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428224#M33640</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-14T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428225#M33641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Neil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have an edit session open as the featureclass is also in a versioned enterprise geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my testing I have copied the data to a file gdb and it still does not work. If I remove the geometric network the it does work???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Callum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428225#M33641</guid>
      <dc:creator>CallumSmith</dc:creator>
      <dc:date>2015-10-14T20:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428226#M33642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have tried running the script from a tool within arcmap and it still gives me the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Callum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428226#M33642</guid>
      <dc:creator>CallumSmith</dc:creator>
      <dc:date>2015-10-14T20:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428227#M33643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I do have an edit session open as the featureclass participates in a geometric network and is also versioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why it is failing as the error message is not very helpful!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Callum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 20:49:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428227#M33643</guid>
      <dc:creator>CallumSmith</dc:creator>
      <dc:date>2015-10-14T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error using insert cursor (da) with featureclass in a geometric network</title>
      <link>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428228#M33644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="color: #222222; font-size: 18px; margin-top: 25px; margin-bottom: 9px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;As Callum pointed out to me in a separate email it looks like its a bug.&lt;/H2&gt;&lt;H2 style="color: #222222; font-size: 18px; margin-top: 25px; margin-bottom: 9px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Bug NIM-102778&lt;/H2&gt;&lt;H3 style="color: #222222; font-size: 15px; margin-top: 17px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Synopsis&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;The insertRow method of arcpy.da.InsertCursor fails when working with data in a geometric network.&lt;/P&gt;&lt;H3 style="color: #222222; font-size: 15px; margin-top: 17px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Additional Information&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;N/A&lt;/P&gt;&lt;H3 style="color: #222222; font-size: 15px; margin-top: 17px; font-family: 'Avenir LT W01 35 Light', Arial, Helvetica, sans-serif; font-weight: normal !important;"&gt;Alternate Solution&lt;/H3&gt;&lt;P style="margin-bottom: 10px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;The Append tool works fine for features participating in a geometric network. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Fill an empty feature class outside the geometric network with records using an insert cursor. &lt;BR /&gt;2. Use the Append tool to add the records to the feature class in the geometric network.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMTAyNzc4"&gt;http://support.esri.com/en/bugs/nimbus/TklNMTAyNzc4&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 02:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-insert-cursor-da-with-featureclass-in/m-p/428228#M33644</guid>
      <dc:creator>JohnPlunkett</dc:creator>
      <dc:date>2015-10-15T02:31:13Z</dc:date>
    </item>
  </channel>
</rss>

