<?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 InsertCursor not working for feature service with update to ArcGIS Pro 2.5 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-insertcursor-not-working-for-feature-service/m-p/451440#M19844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm continuing to have issues with previous functionality not working after the update to Pro 2.5. I'm trying to use arcpy.da.InsertCursor() to insert features into a feature service feature layer. This is something that I did fairly frequently without problems prior to the update. After the update to Pro 2.5, I am getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RuntimeError: ERROR: code:500, Unable to complete operation., Unable to perform applyEdits operation., An error occurred., Internal server error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to insert into a feature service layer that is in a project in ArcGIS Pro. I'm able to edit, create, delete fine in the feature service manually. An example of the code I'm trying to run is below:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;values &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;refcode&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;geom&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"refcode"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;elem_poly&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;values&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about what I should be doing differently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:08:43 GMT</pubDate>
    <dc:creator>MollyMoore</dc:creator>
    <dc:date>2021-12-11T20:08:43Z</dc:date>
    <item>
      <title>Arcpy InsertCursor not working for feature service with update to ArcGIS Pro 2.5</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-insertcursor-not-working-for-feature-service/m-p/451440#M19844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm continuing to have issues with previous functionality not working after the update to Pro 2.5. I'm trying to use arcpy.da.InsertCursor() to insert features into a feature service feature layer. This is something that I did fairly frequently without problems prior to the update. After the update to Pro 2.5, I am getting the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RuntimeError: ERROR: code:500, Unable to complete operation., Unable to perform applyEdits operation., An error occurred., Internal server error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to insert into a feature service layer that is in a project in ArcGIS Pro. I'm able to edit, create, delete fine in the feature service manually. An example of the code I'm trying to run is below:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;values &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;refcode&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;geom&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"refcode"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;elem_poly&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;values&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about what I should be doing differently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-insertcursor-not-working-for-feature-service/m-p/451440#M19844</guid>
      <dc:creator>MollyMoore</dc:creator>
      <dc:date>2021-12-11T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy InsertCursor not working for feature service with update to ArcGIS Pro 2.5</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-insertcursor-not-working-for-feature-service/m-p/451441#M19845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has there been any changes to the service itself?&amp;nbsp; Can it be a permissions issue, such that your creds aren't being passed correctly?&amp;nbsp; Just tossing these up and seeing what sticks.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-insertcursor-not-working-for-feature-service/m-p/451441#M19845</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-02-18T20:51:16Z</dc:date>
    </item>
  </channel>
</rss>

