Skip to main content
Solved

How to batch process feature layers in an ArcGIS Online account

  • September 22, 2020
  • 2 replies
  • 143 views

damian6105
Participant
Forum|alt.badge.img

Hi, I have and ArcGIS Online account containing around 100 directories (Sp1, Sp2, Sp3,...). Each directory contains a feature layer (Sp1_WFL, Sp2_WFL, Sp3_WFL,...). I'm trying to figure out how to create an FME script that will batch process all of my feature layers. At the moment I want to add a new field to each of my feature layers and populate the field with a particular value. I recently watched an FME webinar that suggested using a DIRECTORY AND FILE PATHNAMES reader and a WORKSPACERUNNER transformer however I can't seem to get it to work. Is this the best option to use for batch processing in ArcGIS Online? If anyone could get me started I would really appreciate it.

Regards, Damian

Best answer by chrisatsafe

Hi @damian6105​ ,

 

The Directory and File Pathnames is only for local files so you'd need to have a mapped drive to AGOL (similar to a mapped Google Drive or Dropbox) in order for that to work. I don't believe that is an option yet. However, something like this should be possible using the ArcGISOnlineConnector and a FeatureReader. Try looking into the ArcGISOnlineConnector and setting the feature service parameter based on the Name attribute that is created by the  ArcGISOnlineConnector. 

 

You'll need to have a value like this as your Feature Service parameter:

username@Value(_full_path)@Value(_name)

You should only have to set the username as your AGOL username (i.e. user content folder). The remainder of the path will be dynamically set by the attribute values for _full_path and _name value 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.

2 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • September 22, 2020

Hi @damian6105​ ,

 

The Directory and File Pathnames is only for local files so you'd need to have a mapped drive to AGOL (similar to a mapped Google Drive or Dropbox) in order for that to work. I don't believe that is an option yet. However, something like this should be possible using the ArcGISOnlineConnector and a FeatureReader. Try looking into the ArcGISOnlineConnector and setting the feature service parameter based on the Name attribute that is created by the  ArcGISOnlineConnector. 

 

You'll need to have a value like this as your Feature Service parameter:

username@Value(_full_path)@Value(_name)

You should only have to set the username as your AGOL username (i.e. user content folder). The remainder of the path will be dynamically set by the attribute values for _full_path and _name value AGOL


damian6105
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • September 23, 2020

Great, thanks for that Chris. I implemented your suggestion and it successfully iterated through all the folders in my AGOL account.

Sincerely, Damian