<?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: Python arcpy.InsertCursor Does not work in SDE in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147873#M11482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, because most likely you will need to set up the edit session in your Python script. Did you try this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 18:39:53 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2016-03-03T18:39:53Z</dc:date>
    <item>
      <title>Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147867#M11476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running the Python code below first pointing to an SDE layer and then pointing to a FGDB layer and in the first case after the program finish nothing gets inserted in SDE. It works in the FGDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The layer in SDE is not versioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can Append layers from the FGDB to SDE using:&amp;nbsp; arcpy.Append_management(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;curAppend = arcpy.InsertCursor(WASDAGREEMENT_D)


&amp;nbsp; .....


&amp;nbsp; rowAppend = curAppend.newRow()
&amp;nbsp; rowAppend.SHAPE = rowYesterday.SHAPE
&amp;nbsp; rowAppend.AGMID = rowYesterday.getValue("AGMID")
&amp;nbsp; rowAppend.DIGIBY =&amp;nbsp; rowYesterday.getValue("DIGIBY")
&amp;nbsp; rowAppend.DIGIDATE =&amp;nbsp; rowYesterday.getValue("DIGIDATE")
&amp;nbsp; rowAppend.STATUS =&amp;nbsp; rowYesterday.getValue("STATUS")
&amp;nbsp; rowAppend.REQUESTED =&amp;nbsp; rowYesterday.getValue("REQUESTED")
&amp;nbsp; rowAppend.PNAME =&amp;nbsp; rowYesterday.getValue("PNAME")
&amp;nbsp; rowAppend.PLOCATION =&amp;nbsp; rowYesterday.getValue("PLOCATION")
&amp;nbsp; rowAppend.PDESC =&amp;nbsp; rowYesterday.getValue("PDESC")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; curAppend.insertRow(rowAppend)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147867#M11476</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-12-11T08:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147868#M11477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using a del statement for your curAppend? If your not your changes won't show until you close your python IDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-data-access/insertcursor-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-data-access/insertcursor-class.htm"&gt;InsertCursor—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 15:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147868#M11477</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-03-03T15:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147869#M11478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wes, for some reason I am getting an error on you link.&amp;nbsp; Might want to check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147869#M11478</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-03-03T16:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147870#M11479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks must be something wrong with the links again.&lt;/P&gt;&lt;P&gt;copy and paste in your browser this path without the quotes&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small unlinked" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-data-access/insertcursor-class.htm&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147870#M11479</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-03-03T16:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147871#M11480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably have to start an edit session as explained in code sample 2 at the end of this page: &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-data-access/editor.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-data-access/editor.htm"&gt;Editor—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147871#M11480</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-03-03T16:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147872#M11481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This same code works fine when I point to a layer in a FGDB but it does nthing when I point to the same king of layer in SDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 18:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147872#M11481</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2016-03-03T18:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy.InsertCursor Does not work in SDE</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147873#M11482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, because most likely you will need to set up the edit session in your Python script. Did you try this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 18:39:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-insertcursor-does-not-work-in-sde/m-p/147873#M11482</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-03-03T18:39:53Z</dc:date>
    </item>
  </channel>
</rss>

