<?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 code 500 on appending data with REST API to ArcGIS Online table in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391362#M4691</link>
    <description>&lt;P&gt;Well that was exactly what I was thinking, since the problems started occuring on the 26th and the "what's new" blog is dated February 28th, but I did not see anything recent for the REST or Python API.&lt;/P&gt;&lt;P&gt;But yeah good idea, I'll send them an email.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 18:57:27 GMT</pubDate>
    <dc:creator>mikaël</dc:creator>
    <dc:date>2024-03-05T18:57:27Z</dc:date>
    <item>
      <title>Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391289#M4689</link>
      <description>&lt;P&gt;I have this process that runs daily, where I get some values from an external source, I transform &amp;amp; store them in a local DB. I then match existing values on AGOL to this local table to make sure the objectids are the same (just to make sure everything is in sync) and add new objectids sequentially locally from the last existing one on AGOL. Then I append (with python) this data to my AGOL table (upload_format = 'geojson', upsert = True, edits = the results from a query on my local DB).&lt;/P&gt;&lt;P&gt;This was running fine, every day, until last week, when I started getting an Exception: Unknown Error (Error Code: 500). The sync and changeTracking parameters are deactivated and I've tried deleting and recreating the table (multiple times)...&lt;/P&gt;&lt;P&gt;What to do?&lt;/P&gt;&lt;P&gt;Please help!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;U&gt;EDIT march 11th&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Working with ESRI staff on this, will update with developments. Also noticed that I only have this problem with tables, appending to layers is working correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 13:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391289#M4689</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-03-11T13:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391344#M4690</link>
      <description>&lt;P&gt;If it was running fine until last week, I would open a support ticket since AGOL was updated last week and this may be a behavior change or a new bug.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 18:32:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391344#M4690</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2024-03-05T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391362#M4691</link>
      <description>&lt;P&gt;Well that was exactly what I was thinking, since the problems started occuring on the 26th and the "what's new" blog is dated February 28th, but I did not see anything recent for the REST or Python API.&lt;/P&gt;&lt;P&gt;But yeah good idea, I'll send them an email.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 18:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1391362#M4691</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-03-05T18:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1410947#M4729</link>
      <description>&lt;P&gt;Any word on this one yet? I have a similar situation, except I am appending from an existing gdb.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fLyr.append(item_id=fgd_item.id, upload_format="filegdb", upsert=False, field_mappings=[])&lt;/LI-CODE&gt;&lt;P&gt;I set up the process to run in task scheduler every few minutes for testing purposes to see what kind of errors I would get.&amp;nbsp; The script worked for weeks beforehand, and after setting it up in task scheduler, it worked for a couple days. Now when I run it, I get the same result as you:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception: Unknown Error&lt;/P&gt;&lt;P&gt;(Error Code: 500)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1410947#M4729</guid>
      <dc:creator>twhammond</dc:creator>
      <dc:date>2024-04-17T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1410951#M4730</link>
      <description>&lt;P&gt;Last update was yesterday, an ESRI analyst is still looking into this issue.&lt;/P&gt;&lt;DIV&gt;I changed my workflow to use edit_features() which is more complicated because I have to check beforehand which features I have to update and which I have to add, which I did not have to do with append(). But at least it's working now.&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1410951#M4730</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-04-17T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1410973#M4731</link>
      <description>&lt;P&gt;Thanks, I'll start looking at moving away from append() in the meantime.&amp;nbsp; Hopefully they get to the bottom of it soon.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 15:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1410973#M4731</guid>
      <dc:creator>twhammond</dc:creator>
      <dc:date>2024-04-17T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1414674#M4736</link>
      <description>&lt;P&gt;Here is the latest update:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV&gt;The outcome of the escalation was Esri Inc. logging the following defect:&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;BUG-000166918&lt;/STRONG&gt;: Error 500 "Unknown error" encountered when overwriting hosted tables with any file type data using ArcGIS API for Python.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;A workaround for this issue is to use a File Geodatabase to append data to the table instead of GeoJSON (or CSV).&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1414674#M4736</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-04-24T13:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1414742#M4737</link>
      <description>&lt;P&gt;That's interesting.&amp;nbsp; I got the issue while appending data using a file geodatabase.&amp;nbsp; However, the bug mysteriously disappeared after a couple days and has been working normally ever since.&amp;nbsp; I honestly have no idea what caused it to break, or why I stopped encountering the error.&lt;/P&gt;&lt;P&gt;So I can't say the workaround doesn't work, but I can say as of last Wednesday I was encountering the same error when appending to table from a geodatabase.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1414742#M4737</guid>
      <dc:creator>twhammond</dc:creator>
      <dc:date>2024-04-24T14:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1484836#M4765</link>
      <description>&lt;P&gt;Glad ESRI could help a bit.&amp;nbsp;I'm also appending a file gdb into a truncated dataset and getting the Error Code: 500. It doesn't seem to be a work around that actually works around. I've looked into&amp;nbsp;&lt;SPAN&gt;edit_features(), but given the size of this dataset getting overwritten daily (~15,000 records) it seems like append() would/should be the tool for the job. Curious if you've heard anything else from ESRI.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 22:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1484836#M4765</guid>
      <dc:creator>gmaz</dc:creator>
      <dc:date>2024-06-04T22:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1485305#M4767</link>
      <description>&lt;P&gt;Nope nothing yet. I've started using AGOL regularly 2 years ago and ESRI opened a couple of bugs from my emails.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikAMD_1-1717591208853.png" style="width: 722px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106221i4A8F11A8E85CF872/image-dimensions/722x195?v=v2" width="722" height="195" role="button" title="mikAMD_1-1717591208853.png" alt="mikAMD_1-1717591208853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;No changes yet, so you have to be patient or try to workaround a problem or use something else completely &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 12:41:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1485305#M4767</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-06-05T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1485361#M4768</link>
      <description>&lt;P&gt;Ahh...thank you. I also opened a case with ESRI about this. I'm looking into some workarounds and will let you know if anything comes of the case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 14:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1485361#M4768</guid>
      <dc:creator>gmaz</dc:creator>
      <dc:date>2024-06-05T14:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1537830#M4844</link>
      <description>&lt;P&gt;Has there been an update to this? I am trying to truncate and append using a modified version of the script here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/overwrite-arcgis-online-feature-service-using/ta-p/904457" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-documents/overwrite-arcgis-online-feature-service-using/ta-p/904457&lt;/A&gt;&amp;nbsp;and I am getting the "Error appending features: Error reading features.&lt;BR /&gt;(Error Code: 500)" issue. I changed the script to use a shapefile because apparently using a file geodatabase also doesn't work with the arcgis for python api&amp;nbsp; for some unknown reason. (&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/problem-update-hosted-feature-in-portal/td-p/1258473" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/problem-update-hosted-feature-in-portal/td-p/1258473&lt;/A&gt;). Thanks for any updates.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 15:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1537830#M4844</guid>
      <dc:creator>AndyHess</dc:creator>
      <dc:date>2024-09-12T15:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1537892#M4845</link>
      <description>&lt;P&gt;No update, although you're not getting the same error I was ("Error reading features"). Maybe in your case the problem is not append() ?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 17:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1537892#M4845</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-09-12T17:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1548172#M4856</link>
      <description>&lt;P&gt;I just started noticing this issue with the 500 error code with one of my scripts that uses append().&amp;nbsp; But after downloading the ZIP file of the FGDB and using the Update Features on the item page, it worked with no issues.&amp;nbsp; So I tried again with the developer tools open and noticed it was sending the append_fields and field_mappings, which I was omitting in Python since they are optional.&amp;nbsp; The append in Python was successful after setting the append_fields and field_mappings.&amp;nbsp; Though it was the append_fields that fixed it, since I tried without field_mappings.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 19:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1548172#M4856</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2024-10-11T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1548177#M4857</link>
      <description>&lt;P&gt;wow thanks, will try it out!&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233731"&gt;@Justin_Greco&lt;/a&gt;&amp;nbsp;finally managed to test your solution. Unfortunately it doesn't work for me.&lt;/P&gt;&lt;P&gt;I created a new empty feature service, added a couple of records manually on AGOL then tried to append features with a python dict (to FeatureSet to FeactureCollection), either to add or update existing ones, attributes and/or geometry. Tried adding/removing/changing parameters field_mappings and append_fields and also played with upsert and update_geometry. Still getting error 500.&lt;/P&gt;&lt;P&gt;Plus, weirder thing is that when I had troubleshooted this problem in march, I was only getting the problem when appending to tables, not layers. But now I'm getting it with this item which is a layer.&lt;/P&gt;&lt;P&gt;Oh well, at least edit_features() works for me and I changed my current flow to use that function instead so it's not too much of a bother anymore, it's just weird (and I would prefer to use append() which is much simpler).&lt;/P&gt;&lt;P&gt;Leaving the question opened in case there's another answer in a not too distant future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 13:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1548177#M4857</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-10-29T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error code 500 on appending data with REST API to ArcGIS Online table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1560497#M4888</link>
      <description>&lt;P&gt;Well, I think I got it.&lt;/P&gt;&lt;P&gt;My usual workflow was getting data from a local (PostgreSQL/PostGIS) DB and transforming that into a geojson and appending to a layer/table with the upload_format='geojson' parameter. For some reason, it stopped working and I created this post.&lt;/P&gt;&lt;P&gt;When I tried again last time (my last post), I was creating a manual dictionary, transforming that into a featureCollection and using the upload_format='featureCollection' and edits=fc parameters, where fc was my feature collection (from_featureset(from_dict(data))).&lt;/P&gt;&lt;P&gt;Upon further testing today for another project, I was looking yet again at the &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.features.toc.html" target="_self"&gt;reference&lt;/A&gt;, and noticed that under the &lt;STRONG&gt;edits&lt;/STRONG&gt; parameters description, it's written: "Only feature collection json is supported". But I was not sending a feature collection json, I was sending the feature collection object. So I modified the parameter to edits=fc.properties and it was successful!!&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;edits&lt;/STRONG&gt; parameters description also states: "Append supports all format through the upload_id or item_id". But when I was sending my geojson, I was never using those parameters. So I don't know if it changed at some point. So anyway, I'll try again with a geojson with the upload_id or item_id, and if it still fails, I'll just change my DB query to return a feature collection json instead.&lt;/P&gt;&lt;P&gt;There you go!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 21:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-code-500-on-appending-data-with-rest-api-to/m-p/1560497#M4888</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-11-19T21:35:18Z</dc:date>
    </item>
  </channel>
</rss>

