FME Server Data Upload: Resource Files

Liz Sanderson
Liz Sanderson
  • Updated

FME Version

  • FME 2022.1


Let's look at another method for Data Upload by uploading a file to FME Server’s shared Resources folder, then 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 Server for multiple users. Files uploaded in this way will persist by default, but the system maintenance tools within FME Server can be used to clear out these files at regular intervals. Consult your FME Server Administrator for more details regarding persistent file storage.

Step-by-step Instructions

Note: This exercise is a continuation of FME Server Data Upload: Running a Workspace, ensure you have completed that exercise first before starting this one.
1. Create a Folder in the Resources Folder

In FME Server, on the side menu bar, expand Files & Connections then click on Resources. The Resources folder contains all of the files created within FME Server and provides a central location to upload files for use within FME Server.
On the Resources page, navigate to the Data folder.
Data Folder

Click New Folder and name the folder DataUpload. Click OK.
New Folder

2. Upload a File Into the DataUpload Folder

In the DataUpload folder, click the Upload button. From the drop-down, select Files. 

Browse to the weekendplayfieldstatus.csv and click Open to add the file. This file is now available to any workspace within FME Server, other users are also able to download this file.

3. Run the Workspace

To run the workspace with the file from the Resources folder we need to configure the parameters. Click Run Workspace on the side menu bar, select the Data Upload Repository and the CheckFieldStatus.fmw workspace. In the Service drop-down select Data Download. For the Field Status CSV File parameter, click Browse Resources and navigate to the weekendplayfieldstatus.csv file we just uploaded under Resources (Tab) > Data > DataUpload. Click OK. 
Choose existing resource to run workspace
You should now have $(FME_SHAREDRESOURCE_DATA)/DataUpload/weekendfieldstatus.csv for the Field Status CSV File.
Existing Resource Selected 

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 up in Google Earth to view the results; the results can also be viewed in FME Data Inspector if you do not have Google Earth.

Continue to FME Server Data Upload: Read Data from a URL to continue 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?



Please sign in to leave a comment.