Skip to main content
Question

Backing Up AGOL Relationship Classes

  • February 24, 2020
  • 4 replies
  • 110 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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

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
Supporter
Forum|alt.badge.img+19
  • Supporter
  • 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

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
Supporter
Forum|alt.badge.img+19
  • Supporter
  • February 26, 2020

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.