Skip to main content
Question

WorkspaceRunner in FME 2018 has strange functionality with Filename (Multiple) value


Forum|alt.badge.img+1

I'm having some trouble with the WorkspaceRunner transformer in FME 2018 windows 32 bit.

Say Workspace B contains a FeatureReader transformer. In Workspace B, create a published parameter called FileList with a filename (Multiple) and set this as the dataset field in the FeatureReader to read txt files. Set the value of FileList to C:\\temp\\a.txt,C:\\temp\\b.txt. I have no errors running workspace B as is.

 

Using FME 2018, I trigger workspace B using a WorkspaceRunner in Workspace A, I get an error which highlights the paths in the Filename (Multiple) parameter are not valid. It is using the same value as FileList (C:\\temp\\a.txt,C:\\temp\\b.txt) that is used in workspace b published parameter.

It seams that the WorkspaceRunner doesn't send through the FileList value correctly in FME 2018. I have examined the log files and can see that in 2012, the Command line arguments are different. See below for differences (notice the qutation marks missing in 2018):

 

FME 2012 log file:`--FileList' `""C:\\temp\\a.txt" "C:\\temp\\b.txt""'

FME 2018 log file: `--FileList' `C:\\temp\\a.txt,C:\\temp\\b.txt'

---

I also tried the following with abnormal results.

Open the WorkspaceRunner in FME 2018. In the FileList field set C:\\temp\\a.txt,C:\\temp\\b.txt as the value. Highlight the value (ctr-a) and then copy and paste it straight back in to the field. It then turns into "C:\\temp\\a.txt,C:\\temp\\b.txt".

 

Is this a bug or am I missing something here?

 

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • January 17, 2019

If you're passing a filename list as a published parameter you have to set it in the workspace runner in this sort of format

 ""D:\Folder1\File1.gz" "D:\Folder2\File2.gz""

https://knowledge.safe.com/questions/25387/specifying-multiple-filenames-as-a-source-paramete.html

&

https://knowledge.safe.com/questions/25278/use-an-attribute-containing-a-list-of-files-as-fea.html


Forum|alt.badge.img+1
  • Author
  • January 17, 2019
ebygomm wrote:

If you're passing a filename list as a published parameter you have to set it in the workspace runner in this sort of format

 ""D:\Folder1\File1.gz" "D:\Folder2\File2.gz""

https://knowledge.safe.com/questions/25387/specifying-multiple-filenames-as-a-source-paramete.html

&

https://knowledge.safe.com/questions/25278/use-an-attribute-containing-a-list-of-files-as-fea.html

Thanks for your reply. 

If I directly copy:

""D:\Folder1\File1.gz" "D:\Folder2\File2.gz""

and paste it into the WorkspaceRunner value in FME 2018, it does not stay that value. it turns into:

"D:\Folder1\File1.gz""","""D:\Folder2\File2.gz"

Notice the new quotation marks. Do you get similar results? 


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