Skip to main content
Question

Using FME server parameters on the desktop

  • October 7, 2019
  • 8 replies
  • 337 views

arjanboogaart
Participant
Forum|alt.badge.img

I'm working on a script that I downloaded from the server and want to run this on the desktop version.

It requires a couple parameter changes to make that working, but it's quite a hassle to do that properly whenever switching between desktop and server.

For instances changing the featureReader file path from $(FME_SHAREDRESOURCE_TEMP)/$(FME_MF_NAME)/foo.json to ~/documents/FME/foo.json

I noticed that I can set FME server parameters on the desktop, which are currently all empty.

Can I for example set $(FME_SHAREDRESOURCE_TEMP) = ~/documents and $(FME_MF_NAME) = FME so it works on the desktop and server without the need to change these parameters whenever I switch between server and desktop?

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.

8 replies

arjanboogaart
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • October 7, 2019

It didn't quite do what I expected. First, $(FME_MF_NAME) cannot be set manually.

So I set $(FME_SHAREDRESOURCE_TEMP) = ~/documents/FME.

However, it reads this as relative path, so it created the folders from the location of the script: ~/documents/FME/~/documents/FME/$(FME_MF_NAME)/

Setting $(FME_SHAREDRESOURCE_TEMP) = output fixes it, creating the output files in ~/documents/FME/output/$(FME_MF_NAME)/


david_r
Celebrity
  • October 7, 2019

As you've discovered, you cannot set FME_MF_NAME, it will always correspond to the workspace name.

For the FME Server parameters, you can override them in FME Desktop and point them to a local path. When you execute the workspace on FME Server the "local overrides" are automatically overwritten by the server values.

All paths in FME are interpreted as relative to the workspace file, as far as possible. This is to make it easier to move workspaces and associated files between systems.


arjanboogaart
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • October 7, 2019

As you've discovered, you cannot set FME_MF_NAME, it will always correspond to the workspace name.

For the FME Server parameters, you can override them in FME Desktop and point them to a local path. When you execute the workspace on FME Server the "local overrides" are automatically overwritten by the server values.

All paths in FME are interpreted as relative to the workspace file, as far as possible. This is to make it easier to move workspaces and associated files between systems.

Ah, that is really nice. I couldn't find any documentation on how they can be used on the desktop version.

This'll save me quite a lot of time


mattwilkie
Enthusiast
Forum|alt.badge.img+11
  • Enthusiast
  • June 23, 2022

As you've discovered, you cannot set FME_MF_NAME, it will always correspond to the workspace name.

For the FME Server parameters, you can override them in FME Desktop and point them to a local path. When you execute the workspace on FME Server the "local overrides" are automatically overwritten by the server values.

All paths in FME are interpreted as relative to the workspace file, as far as possible. This is to make it easier to move workspaces and associated files between systems.

can you flesh this out with an example please? When I set a parameter to "$(FME_SHAREDRESOURCE_TEMP)" in desktop CSV2 Writer after closing the dialog it goes blank and the script fails when running.

 


david_r
Celebrity
  • June 27, 2022

can you flesh this out with an example please? When I set a parameter to "$(FME_SHAREDRESOURCE_TEMP)" in desktop CSV2 Writer after closing the dialog it goes blank and the script fails when running.

 

Did you define the value of FME_SHAREDRESOURCE_TEMP in the Workspace Navigator first?

image


mattwilkie
Enthusiast
Forum|alt.badge.img+11
  • Enthusiast
  • June 27, 2022

can you flesh this out with an example please? When I set a parameter to "$(FME_SHAREDRESOURCE_TEMP)" in desktop CSV2 Writer after closing the dialog it goes blank and the script fails when running.

 

No I hadn't done that. Thanks!


arnovananrooij
Contributor
Forum|alt.badge.img+5

can you flesh this out with an example please? When I set a parameter to "$(FME_SHAREDRESOURCE_TEMP)" in desktop CSV2 Writer after closing the dialog it goes blank and the script fails when running.

 

@david_r​ Is there a way of setting this value for all workspaces run from Desktop? Now I need to set this over and over for each workspace.


david_r
Celebrity
  • November 3, 2022

can you flesh this out with an example please? When I set a parameter to "$(FME_SHAREDRESOURCE_TEMP)" in desktop CSV2 Writer after closing the dialog it goes blank and the script fails when running.

 

Not that I know of, unfortunately.