Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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
The issue is that using a 'run if' connection will only execute once regardless of how many rows are processed by your main connection.
Got a solution.