Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Download multiple files with tFileFetch will not work

Hi!

 

I interpret an XML file with products. Each product has one or no image. The image is identified with an HTTPS URI.

"image1 (tJavaRow) prepares global variales for URI and filename so I can use them in tFileFetch.

The "run if" clause checks whether the URI is set. It yes I want to execute the tFileFetch.

 

0683p000009LzQv.png

tFileInputXML_1 iterates 2 products with 2 valid images.

The problem is that the tJavaRow componenten

The problem is that image1 (tJavaRow) is called twice (that's correct 🙂 but tFileFetch will only be called once for the second product.

In the following screenshot you see the trace output for each tJavaRow and only one Status entry for the tFileFetch.

 

0683p000009LzAI.png

Note:

If I replace the "Run if" with the "Main" connection all works fine. tFileFetch will be called twice.

The problem with that is, that if a product has no image than tFileFetch runs into an error because of an invalid URI.

 

What is the problem?

 

Thx,

Michael

 

Labels (4)
1 Solution

Accepted Solutions
3 Replies
Anonymous
Not applicable
Author

The issue is that using a 'run if' connection will only execute once regardless of how many rows are processed by your main connection. 

Anonymous
Not applicable
Author

OK. Thx.
Any idea how to deal if empty URIs using the main connection?
Anonymous
Not applicable
Author