You are viewing limited content. For full access, please sign in.

Question

Question

For Each Output File (Only include files like) using TOKEN not Working

asked on March 10, 2017

I have a workflow that searches for a specific file in LF server location using the "For Each Output File" activity. In the Files section, I am using Type: [Windows File Directory], including options [Folder Path] (with a token) and [Only include files like].

Problem:

1) When a specific file name in [Only include files like] is provided as a TOKEN, it does not return anything.

2) When a specific file name in [Only include files like] is type in, then it works.

 

The need arises because I have a workflow with a script that creates a CSV file with a random name in a windows location, it is then emailed and finally deleted from the windows path. 

Because the I am not being able to pass the file name as a token, for the moment, I am renaming the file, searching for the file with the new name using the [For Each Output File] activity with a fixed, typed file name for it to work.

 

Question: Has anybody been able to have the [For Each Output File] work using a TOKEN as the file name?

Help will be greatly appreciate.

 

 

 

 

For Each Output File.jpg
0 0

Replies

replied on March 13, 2017

What does your File Name token resolve to?

0 0
replied on March 13, 2017

Miruna,

 

The [File Name] token could be any name [OutputFile.csv, for example], which will be located, emailed and deleted.

Note: It works only when file name is typed in (see image).

Let me know if you need more details.

For Each Output File with File Name.jpg
0 0
replied on March 13, 2017

It works for me in a quick test. Have you tried tracking the token before it goes into the loop to check it has the value you expect?

0 0
replied on March 13, 2017

I had tracked the token, but with unsuccessful results. I assign the same value I type to the token, but it still does not work (no file found is returned).

0 0
replied on March 13, 2017

So when you track the token it has the value you expected, but For Each File does not find it?

0 0
replied on March 13, 2017

That is exactly right.

However, I have good news. I updated my Designer and it is now working as expected.

 

Thank you very much for your help.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.