Skip to main content
Question

Backing Up AGOL Relationship Classes

  • February 24, 2020
  • 4 replies
  • 82 views

Forum|alt.badge.img

Hello,

Is it possible to automate the backup of ArcGIS Online feature services and associated relationship class(es) within AGOL with FME?

I have a current workflow that backs AGOL data both within AGOL and locally as a file gdb; however, the relationship class is never replicated in either backup. I understand for file gdb's that "Relationship classes cannot be created through FME and must be set up through ArcGIS prior to running the translation." However, I was wondering about the AGOL backup data. Any way to retain that relationship class using FME when backing up (writing to) AGOL?

4 replies

lars_de_vries
Forum|alt.badge.img+10

You can use a template database (either an empty database or an XML template of the database) with the relationship class already defined.

You can also download a replica database using the REST API and an HTTPCaller.


bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 24, 2020

If you have ArcGIS on the FME machine you can recreate the relationship class with a shutdown script, the pattern is described here:

https://community.esri.com/community/open-platform-standards-and-interoperability/blog/2019/03/21/using-arcgis-pros-python-environment-in-etl-tools

 


Forum|alt.badge.img
  • Author
  • February 26, 2020
bruceharold wrote:

If you have ArcGIS on the FME machine you can recreate the relationship class with a shutdown script, the pattern is described here:

https://community.esri.com/community/open-platform-standards-and-interoperability/blog/2019/03/21/using-arcgis-pros-python-environment-in-etl-tools

 

Hello...I'm struggling with the python syntax for the FME shutdown script as I'm primarily interested in creating the relationship class for the hosted feature backup data in AGOL. I've backed up Survey 123 data with repeats in AGOL using FME. Trying to create a relationship class for that backed-up data in AGOL is proving problematic. Thanks.

Tony


bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 26, 2020
aviveiro wrote:

Hello...I'm struggling with the python syntax for the FME shutdown script as I'm primarily interested in creating the relationship class for the hosted feature backup data in AGOL. I've backed up Survey 123 data with repeats in AGOL using FME. Trying to create a relationship class for that backed-up data in AGOL is proving problematic. Thanks.

Tony

Hi, you'll need to write to File GDB, use the shutdown script to create the relationship(s) in File GDB then zip and upload the File GDB to AGOL.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings