span8
span4
span8
span4
The tutorial will work for FME Server 2016+ and has last been edited for FME Server 2018. For earlier versions of FME Server, please refer to this article.
Resource folders are a convenient storage area for uploading and storing data, and data being stored in a resources folder can be used when publishing or running workspaces. In addition, existing directories (such as UNC shares) can be mounted and used when publishing from FME Workbench, or browsed when submitting a job through the web interface.
Please download the tutorial data before starting the examples below.
This example will demonstrate how to upload data to a Resources folder on FME Server through the web interface, and then utilize the data when running a job from a published workspace
1. Upload data to FME Server through the web interface
FME Server Web Interface Resources page
2. Generate a simple workspace
Generate Workspace wizard
Create a New Repository in the Publish to FME Server wizard
3. Browse and use data uploaded to FME Server
This example will demonstrate how to upload data to a Resources folder when first publishing a workspace from FME Workbench using the ‘select files’ option. This data then becomes available for use at any time by other published workspaces.
1. Generate a simple workspace
2. Publish a workspace and upload data
Select location for files to be uploaded to when publishing a workspace
This example demonstrates how to upload data into the Resources folder without logging on to the FME Server Web Interface by looking directly into the operating system’s file system.
1. Copy data into the Resources Folder within the File Directory
Locate Hidden Items in file directory
Uploading a folder to FME Server Resources through FME System Share
This example demonstrates how to create a macro that contains a resource location and then utilize it within an FME Workspace. Note: if you see an error message such as "Failed to open...", you may need to change the user account that the FME Server Engines service is using. See guide here.
1. Create a Macro allowing direct access to the Resource
MACRO_DEF FME_SHAREDRESOURCE_BACKUP "C:/ProgramData/Safe Software/FME Server///resources/backups/"\
MACRO_DEF FME_SHAREDRESOURCE_MYDATA "//<hostname>/data/"
Add a macro in fmeEngineConfig.txt file
2. Add the Resource Folder as a Network Location
Create a new resource connection in the FME Server Web Interface
3. Testing the Macro
Create a private parameter
Assign the private parameter as the reader source value
This example demonstrates reading data, using a macro to specify the location.
1. Add the Macro to a simple workspace reader
$(FME_SHAREDRESOURCE_MYDATA)Parks.tab
Use a macro to read data saved in FME Server Resources
Select an FME Server Resource using the Select File From Web option
2. Publish and run the workspace
If you have already uploaded data to a different folder in FME Server > Resources using one of the other examples in this article then you can view the macro to use in FME Workbench by hovering your mouse over the folder or selecting the folder and then Actions > Properties. However by rule of thumb they follow the pattern FME_SHAREDRESOURCES_<folder name>.
This example demonstrates writing data, using a macro to specify file location.
1. Add the Macro to a simple workspace writer
Generate a workspace with the output written directly to FME Server
2. Publish and run the workspace
Folder created once the workspace was run containing the new shapefiles
This example demonstrates how to utilize a macro in order to access files in a Resource folder. This method can be used to allow files to be used in reader and writer parameters. For example seed, template or SDE connection files can be specified and shared between workspaces.
1. Add the Macro to a simple workspace writer
Add a private parameter with the value connected to an FME Server Resource
Link the private parameter to the reader template file parameter
2. Publish and run the workspace
Web User Interface: Unexpected Behavior When No Internet Connection (2013 and older)
FME Server Resources - Uploading, Referencing and Configuration (Only 2014-2015)
Run a service from Web UI: Sample Job Fails
3 Machine Distributed Installation
FME Server Web UI unresponsive
Web UI login hangs. Notifier repeatedly fails to start.
Authorization Fails Using Active Directory with FME Server
FME Server Does Not Start: “Address already in use” Error
© 2019 Safe Software Inc | Legal