Hello community,
I am currently trying to find a way to update a hosted feature table that has 1.7M records (20 table fields) and a hosted feature layer (Points) that has just over 500k records in AGOL. The two layers are being used in an ExB and need to be updated weekly. I am trying to use the Truncate and Append REST services to assist in this and have tried both Python and FME to run the updates.
The Truncate works perfectly and the only issue that I have is with the Append.
For the FME process I use the HTTPCaller to call the two REST services after I upload a zipped FGDB to AGOL. This works to a point but I usually get just a partial update most likely due to the gateway timeout. When it works, it takes about 20 minutes.
For the Python process I break the FGDB up into 50K record chunks, upload it, append it and then call the next chunk. The results for my 1.7M record table are all over the place. Sometimes I get zero records updated, sometimes I get to the 7th chunk (out of ~36) and sometimes I get to the point where it only has 4000 records left. It makes no sense. The entire Python process has only worked once out of about 20 tries and the FME process worked once out of about 10 tries.
I also have ArcGIS Enterprise and the entire process takes about 1h20m hour to run using a normal truncate and append in FME using a feature writer. We use Enterprise for internal use.
I've attached my Python as it does work, but I am trying to find a way to automate and efficiently update my data weekly without running into what I assume is the gateway timeout. I also attached a screenshot of the processing where I can tell that it hits the timeout.
Thank you for any help that you can give,
Peter