FME Flow Data Upload: Resource Files

Tandra Geraedts
Tandra Geraedts
  • Updated

FME Version

Introduction

Let's look at another method for Data Upload: uploading a file to FME Flow’s (formerly FME Server) shared Resources folder and reading that file from Resources when we run a workspace.

Unlike uploading a temporary file when you run a workspace, uploading a file to Resources makes that file available to every workspace on FME Flow for multiple users. Files uploaded this way will persist by default, but the system maintenance tools within FME Flow can be used to clear them out regularly. Consult your FME Flow Administrator for more details regarding persistent file storage.
 

Step-by-step Instructions

This exercise continues from FME Flow Data Upload: Running a Workspace. Please ensure you have completed that exercise before starting this one.


1. Create a Folder in the Resources Folder

In FME Flow, click on Resources in the side menu. The Resources folder contains all of the files that are created within FME Flow and provides a central location to upload files for use within FME Flow.

On the Resources page, navigate to the Data folder.

DataResourceNavigation.png

 

Click New and name the folder DataUpload. Click OK.
NewFolderName.png

2. Upload a File Into the DataUpload Folder

In the DataUpload folder, click the Upload button. From the drop-down, select Files. 
UploadFileResources.png 
Browse to the weekendplayfieldstatus.csv and click Open to add the file. This file is now available to any workspace within FME Flow, and other users can download it.


3. Run the Workspace

To run the workspace with the file from the Resources folder, we need to configure the parameters. We will run the same workspace as the previous exercise. Click Run Workspace on the side menu bar, select “Data Upload Tutorial” for the repository, “CheckFieldStatus.fmw” for the workspace, and “Data Download” for the Service.

RunWorkspaceReminder.png

 

Next, under Published Parameters, click the blue “Browse Resources” button. In the pop-up, navigate to the Data folder, then to the DataUpload folder created in the previous step. Select the weekendplayfieldstatus.csv file and notice the item has been added to the panel on the right under “Selected Items”.

SelectCSVFile.png

You should now have Resources/DataUpload/weekendfieldstatus.csv for the Field Status CSV File.
ResourcePath.png

Click Run to run the workspace.

4. Download Results

After the workspace has run, click on the Data Download URL. This will download a zip file containing the FieldStatus.kml file. Unzip the file and open it in Google Earth to view the results; if you do not have Google Earth, you can also view the results in FME Data Inspector.

Continue to FME Flow Data Upload: Read Data from a URL for the exercise where we will connect to data using a URL to provide the data for the workspace.
 

Data Attribution

The data used here originates from open data made available by the City of Vancouver, British Columbia. It contains information licensed under the Open Government License - Vancouver.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.