Skip to main content

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

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


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

Sincerely, Damian


Reply