So you are trying to send a list of shapefiles as a parameter?
If this is the case, to send the parameter via a workspace runner it needs to be formatted slightly differently, as a space separated list wrapped in quotes, e.g.
""C:\\TEMP\\Shapefile1.shp" "C:\\TEMP\\Shapefile2.shp" "C:\\TEMP\\Shapefile3.shp""
I don't see a reason why it shouldn't work. If @ebygomm's answer doesn't help, can you explain how it isn't working? Does it work for one file, and skip the rest? If so, you might need to set a Merge Filter in the reader in that workspace. If it doesn't work for any files, does the log provide a clue with an error message?
Thanks for your answers!
But... I can't get it to work when the shapefiles are located in a folder somewhere else than a subfolder relatively speaking deeper down from the executing workspaces.
Example.
C:\\fme_rocks\\WorkspaceRunner\\Workspacerunner.fmw and workspacetoberun.fmw ---> C:\\fme_rocks\\WorkspaceRunner\\INPUT\\shapefile1.shp and shapefile2.shp --> this works
C:\\fme_rocks\\WorkspaceRunner\\Workspacerunner.fmw and workspacetoberun.fmw ---> C:\\datadir\\subfolder\\shapefiles\\shapefile1.shp and shapefile2.shp --> this is what I need to work and is what I can't get to work.
This is how i try to reference my shapefiles within the workspacerunner:
""C:\\whatever\\NYKO2.shp" "C:\\whatever\\NYKO3.shp""
The log-error:
Shape Reader: Failed to open dataset 'C:\\whatever\\NYKO2.shpC:\\whatever\\NYKO3.shp' which is neither an existing file nor directory
If a friendly soul would like to look deeper into this you can find an isolation of this behavior attached to this message (created with FME2019.0 64-bit)
Thanks for your answers!
But... I can't get it to work when the shapefiles are located in a folder somewhere else than a subfolder relatively speaking deeper down from the executing workspaces.
Example.
C:\\fme_rocks\\WorkspaceRunner\\Workspacerunner.fmw and workspacetoberun.fmw ---> C:\\fme_rocks\\WorkspaceRunner\\INPUT\\shapefile1.shp and shapefile2.shp --> this works
C:\\fme_rocks\\WorkspaceRunner\\Workspacerunner.fmw and workspacetoberun.fmw ---> C:\\datadir\\subfolder\\shapefiles\\shapefile1.shp and shapefile2.shp --> this is what I need to work and is what I can't get to work.
This is how i try to reference my shapefiles within the workspacerunner:
""C:\\whatever\\NYKO2.shp" "C:\\whatever\\NYKO3.shp""
The log-error:
Shape Reader: Failed to open dataset 'C:\\whatever\\NYKO2.shpC:\\whatever\\NYKO3.shp' which is neither an existing file nor directory
If a friendly soul would like to look deeper into this you can find an isolation of this behavior attached to this message (created with FME2019.0 64-bit)
I've seen this issue before when trying to use the text editor directly in the workspace runner to enter the parameter. Instead, create an attribute with shapefiles references as previously described and then use that in the workspace runner
I've seen this issue before when trying to use the text editor directly in the workspace runner to enter the parameter. Instead, create an attribute with shapefiles references as previously described and then use that in the workspace runner
Oh I see. That actually works 😃
Thanks!
FME is truly a fantastic software and I am constantly amazed by its capabilities. Although - one small wish from me would be that the WorkspaceRunner would do this file-referencing right out of the box.
Cheers everyone!
I've seen this issue before when trying to use the text editor directly in the workspace runner to enter the parameter. Instead, create an attribute with shapefiles references as previously described and then use that in the workspace runner
I think the way you had it set up should work, but it doesn't - what do you think @mark2atsafe , is this a known issue?