<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Download multiple files with tFileFetch will not work in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280095#M55052</link>
    <description>This is great. It works! Thx, so much.</description>
    <pubDate>Wed, 12 Sep 2018 14:53:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-12T14:53:16Z</dc:date>
    <item>
      <title>Download multiple files with tFileFetch will not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280092#M55049</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I interpret an XML file with products. Each product has one or no image. The image is identified with an HTTPS URI.&lt;/P&gt; 
&lt;P&gt;"image1 (tJavaRow) prepares global variales for URI and filename so I can use them in tFileFetch.&lt;/P&gt; 
&lt;P&gt;The "run if" clause checks whether the URI is set. It yes I want to execute the tFileFetch.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143298iF3BEDE57F2A77CA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQv.png" alt="0683p000009LzQv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tFileInputXML_1 iterates 2 products with 2 valid images.&lt;/P&gt; 
&lt;P&gt;The problem is that the tJavaRow componenten&lt;/P&gt; 
&lt;P&gt;The problem is that image1 (tJavaRow) is called twice (that's correct &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; but tFileFetch will only be called once for the second product.&lt;/P&gt; 
&lt;P&gt;In the following screenshot you see the trace output for each tJavaRow and only one Status entry for the tFileFetch.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;SPAN class="lia-message-image-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134073i2F33DF05E10B4FD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzAI.png" alt="0683p000009LzAI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Note:&lt;/P&gt; 
&lt;P&gt;If I replace the "Run if" with the "Main" connection all works fine. tFileFetch will be called twice.&lt;/P&gt; 
&lt;P&gt;The problem with that is, that if a product has no image than tFileFetch runs into an error because of an invalid URI.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What is the problem?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thx,&lt;/P&gt; 
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280092#M55049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T14:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Download multiple files with tFileFetch will not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280093#M55050</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Got an answer that using a 'run if' connection will only execute once regardless of how many rows are processed by your main connection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-06 lia-quilt-column-right lia-quilt-column-main-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-panel lia-panel-standard MessageTagsTaplet Chrome lia-component-message-view-widget-tags"&gt;&lt;DIV class="lia-decoration-border"&gt;&lt;BR /&gt;&lt;DIV class="lia-decoration-border-bottom"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280093#M55050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Download multiple files with tFileFetch will not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280094#M55051</link>
      <description>&lt;P&gt;The IF link will only fie once, on the completion of the component. I'm not sure about the data you are carrying through your job, but try adding a tFlowToIterate component, connect a tJava (as a dummy component) to that and then add your IF link from your tJava.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your column data in your tJavaRow will be added to the globalMap using this method. So to retrieve it you will need to use a bit of Java. For a String column called URL on a row called row1, you would use the following code...&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("row1.URL"))&lt;/PRE&gt;&lt;P&gt;You will need to use the above method in your tFileFetch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works because the the tFlowToIterate converts rows to iterations. This means that the connected tJava (the dummy one) will be started and finished for every row in your data set. This will allow you to use the IF (which I assume is a conditional to decide whether to try and retrieve the file or not).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 14:42:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280094#M55051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T14:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Download multiple files with tFileFetch will not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280095#M55052</link>
      <description>This is great. It works! Thx, so much.</description>
      <pubDate>Wed, 12 Sep 2018 14:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280095#M55052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-12T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Download multiple files with tFileFetch will not work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280096#M55053</link>
      <description>&lt;P&gt;Hi @michaelsooonah michaelsooonah​&amp;nbsp;@Richard Hall​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to download image from sharepoint. I have tried with tFileFatch &amp;amp; able to download .jpeg but when I'm trying to open it then its showing me error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Error:- It appears that we don't support this file format&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBL6AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152138iEB6852385DE5151E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBL6AAN.png" alt="0695b00000UwBL6AAN.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBLBAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144338iB40583A1D6CA7286/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBLBAA3.png" alt="0695b00000UwBLBAA3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBLGAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141498i8C814580C72A66A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBLGAA3.png" alt="0695b00000UwBLGAA3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000UwBLLAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138226i6DE59F8D9872B746/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000UwBLLAA3.png" alt="0695b00000UwBLLAA3.png" /&gt;&lt;/span&gt;do yo have any suggestions how I can resolved this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 11:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Download-multiple-files-with-tFileFetch-will-not-work/m-p/2280096#M55053</guid>
      <dc:creator>Jmiles1658991691</dc:creator>
      <dc:date>2022-08-09T11:30:21Z</dc:date>
    </item>
  </channel>
</rss>

