<?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: Check the response code from tFileFetch component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364679#M128395</link>
    <description>&lt;P&gt;@Dhanoop B S​&amp;nbsp;, read this &lt;A href="https://community.talend.com/s/feed/0D53p00007vCjQlCAK" alt="https://community.talend.com/s/feed/0D53p00007vCjQlCAK" target="_blank"&gt;post &lt;/A&gt;to learn how to redirect the output from console to a file, then read the content of entire file as a string using tFileInputRaw component, check the string if it contains "500" or extract the response code using regex expression on a tJavaRow. Create a context variable (Boolean type), used to determine whether to rerun tfilefetch component.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​To redirect the log messages from console to a file, you can also use tRedirectOutput component, this is a custom component shared by &lt;A href="https://github.com/TalendExchange/Components/tree/main/archive/brazabr" alt="https://github.com/TalendExchange/Components/tree/main/archive/brazabr" target="_blank"&gt;brazabr&lt;/A&gt;, download it from &lt;A href="https://github.com/TalendExchange/Components/blob/main/archive/brazabr/components/tRedirectOutput/files/v_0.2__tRedirectOutput.zip" alt="https://github.com/TalendExchange/Components/blob/main/archive/brazabr/components/tRedirectOutput/files/v_0.2__tRedirectOutput.zip" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2023 02:16:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-24T02:16:57Z</dc:date>
    <item>
      <title>Check the response code from tFileFetch component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364675#M128391</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am posting a JSON file to API URI using tfileFetch component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to capture the response code from tfilefetch and if the response code is in series of 500, I need to loop back to tfilefetch to post the JSON file again. This needs to be continued until the response code is not in 500 series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please help how this can be implemented in talend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dhanoop&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364675#M128391</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-11-15T21:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check the response code from tFileFetch component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364676#M128392</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you share a screenshot to show us the response code? Is it printed on the console? If so, you need to redirect all the messages printed on the console to somewhere, read the messages and extract the response code and parse it. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 09:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364676#M128392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-21T09:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check the response code from tFileFetch component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364677#M128393</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response code is printed on the console. Please find the  screenshot as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000skWNeAAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141479iF9C23B5741C9E66A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000skWNeAAM.png" alt="0695b00000skWNeAAM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how we can extract the response code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 10:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364677#M128393</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2023-11-21T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Check the response code from tFileFetch component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364678#M128394</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;Any solution for the above&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 07:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364678#M128394</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2023-11-23T07:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Check the response code from tFileFetch component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364679#M128395</link>
      <description>&lt;P&gt;@Dhanoop B S​&amp;nbsp;, read this &lt;A href="https://community.talend.com/s/feed/0D53p00007vCjQlCAK" alt="https://community.talend.com/s/feed/0D53p00007vCjQlCAK" target="_blank"&gt;post &lt;/A&gt;to learn how to redirect the output from console to a file, then read the content of entire file as a string using tFileInputRaw component, check the string if it contains "500" or extract the response code using regex expression on a tJavaRow. Create a context variable (Boolean type), used to determine whether to rerun tfilefetch component.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​To redirect the log messages from console to a file, you can also use tRedirectOutput component, this is a custom component shared by &lt;A href="https://github.com/TalendExchange/Components/tree/main/archive/brazabr" alt="https://github.com/TalendExchange/Components/tree/main/archive/brazabr" target="_blank"&gt;brazabr&lt;/A&gt;, download it from &lt;A href="https://github.com/TalendExchange/Components/blob/main/archive/brazabr/components/tRedirectOutput/files/v_0.2__tRedirectOutput.zip" alt="https://github.com/TalendExchange/Components/blob/main/archive/brazabr/components/tRedirectOutput/files/v_0.2__tRedirectOutput.zip" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 02:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Check-the-response-code-from-tFileFetch-component/m-p/2364679#M128395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-24T02:16:57Z</dc:date>
    </item>
  </channel>
</rss>

