Select to view content in your preferred language

Overwrite Hosted Feature Layer with attachments/relationships - Python Script

318
0
01-09-2024 11:02 AM
ModernElectric
Occasional Contributor III

Good Morning.

I've been working on a workflow with help from a previous post dealing with updating an AGOL Hosted Feature Layer using the truncate and append tools within a stand-alone Python Script. It works just fine with a plain Hosted Feature Layer from a File GDB feature class. However, the issue I am having is updating/overwriting the Hosted Feature Layer(s) that contain attachment(s) and are part of a relationship class from the original File GDB. Finding difficulties getting additional assistance on how to do this. I can do it within ArcGIS Pro by using the tool. However, I want to write a Python script and incorporate it into my nightly Batch File(s) to update our data.

Appreciate your help

0 Replies