Skip to main content
Archived

Option for $(FME_MF_DIR)

danilo_fme
  • danilo_fme
    danilo_fme

When you save an FME script that has UNC references to readers or writers, FME often replaces that UNC path with $(FME_MF_DIR). However, this causes problems in FME Server, which uploads the FMW script to the FME Server folder and can't find the reader or writer using $(FME_MF_DIR).

I would like an option in the FME Options dialog so that you could turn this behaviour off. When I use a UNC path there is no need to convert it to $(FME_MF_DIR). The path will always be the same whether FME is reading it on the server or on a desktop

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

6 replies

david_r
Celebrity
  • June 13, 2017

I'm not sure this is related to using UNC paths or not. As far as I know, if FME detects a path relative to the location of the workbench file, it will try to replace as much of the path as possible with $(FME_MF_DIR). This is great if you're sharing a workspace + data with a colleague, but not so much when you publish to FME Server, as you say.

You can work around this by not referencing any paths in the same directory as the fmw file, or in a folder directly under the location of the fmw file.

Example: Your workspace is located in \\\\myserver\\folder1\\folder2\\myworkspace.fmw

If your workspace references anything under \\\\myserver\\folder1\\folder2\\ (including subfolders), you'll get the behavior you're observing. The solution would be to put data etc in a different folder, e.g. \\\\myserver\\folder1\\folder3\\


kieranmg
Forum|alt.badge.img+3
  • April 28, 2020

Spent an hour or more wondering why my pythonCaller was failing in Server but not workbench. Inspecting the parameters in fme server i could see this FME_MF_DIR_ENCODED macro looked to be the only difference. your folder reshuffle suggestion worked David even now thank you!


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 10, 2024
The following idea has been merged into this idea:

All the votes have been transferred into this idea.

LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 10, 2024
The following idea has been merged into this idea:

All the votes have been transferred into this idea.

LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 10, 2024
The following idea has been merged into this idea:

All the votes have been transferred into this idea.

LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 10, 2024
The following idea has been merged into this idea:

All the votes have been transferred into this idea.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings