Skip to main content
Question

WorkspaceRunner fails if variable path is used


tschoppenhof
Contributor
Forum|alt.badge.img+7

I try to run diffrent workspaces with a WorkspaceRunner. It works with a fullpath but not if I use a AttributeValue or a UserParameter fed by a pathReader.

 

The ErrorMessage contains "An error occurred while evaluating a test parameter: @Tcl2 -- failed to evaluate expression `WorkspaceRunner ..."

 

I run it on Windows 10 with FME 2022.1. I already added FME_Home to PATH environment.

 

With FME 2019.2.x it worked fine.

 

An Example Workspace is provided.

 

Settings Workspacerunner 

 

6 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

I can reproduce this. When I use an AttributeCreator to set path_windows = "@Value(path_windows)" it does work.


tschoppenhof
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 1, 2023
nielsgerrits wrote:

I can reproduce this. When I use an AttributeCreator to set path_windows = "@Value(path_windows)" it does work.

It does not work for me. I still encounter the same Error.


nielsgerrits
VIP
Forum|alt.badge.img+54
tschoppenhof wrote:

It does not work for me. I still encounter the same Error.

You also have a required published parameter "SourceDataset_PATH" in the target workspace. This attribute can't be added in the workspacerunner as the path is an attribute. Does it work when you remove the parameter?


DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • February 1, 2023
tschoppenhof wrote:

It does not work for me. I still encounter the same Error.

@tschoppenhof​  The solution is to use the actual path to the child workspace when setting up the WorkspaceRunner. This will expose the Workspace Parameters from the child workspace. Then the FME Workspace can be reset to @Value(path_windows) and it will run without error.


tschoppenhof
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 2, 2023
tschoppenhof wrote:

It does not work for me. I still encounter the same Error.

It will run that's true but not as expected. If I have different PrivateParameters in my child workspaces it will always use the PrivateParameter which I used for setting up and not the ones which are actually defined in the child Workspaces. And this ruins the whole output.

I've updated the workspaces in the original question accordingly.


tschoppenhof
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 2, 2023

I got my Workspace to run with a downgrade of the WorkspaceRunner from Version 4 to Version 3 (Copied from a FME Workspace 2019). But after that no adjustment in the WorkspaceRunner is possible because it will upgrade again automatically. Is this wanted behavior?


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