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:
RuntimeError: ERROR: code:500, Unable to complete operation., Unable to perform applyEdits operation., An error occurred., Internal server error.
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:
values <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN>refcode<SPAN class="punctuation token">,</SPAN>geom<SPAN class="punctuation token">]</SPAN>
fields <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">"refcode"</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">"SHAPE@"</SPAN><SPAN class="punctuation token">]</SPAN>
<SPAN class="keyword token">with</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>da<SPAN class="punctuation token">.</SPAN>InsertCursor<SPAN class="punctuation token">(</SPAN>elem_poly<SPAN class="punctuation token">,</SPAN>fields<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> cursor<SPAN class="punctuation token">:</SPAN>
cursor<SPAN class="punctuation token">.</SPAN>insertRow<SPAN class="punctuation token">(</SPAN>values<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Any ideas about what I should be doing differently?