<?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: Handling error in tRESTClient component in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420954#M140188</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I am having a joblet which will generate the access token before reading from tFileInputExcel.&lt;/P&gt;
&lt;P&gt;Once the access token is generated, we are patching the records stored in tFileInputExcel. If there are many records in Excel there is a chance that the job might get failed as a result of token expiration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;DBS&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 04:13:52 GMT</pubDate>
    <dc:creator>DBS1</dc:creator>
    <dc:date>2024-02-20T04:13:52Z</dc:date>
    <item>
      <title>Handling error in tRESTClient component in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420645#M140180</link>
      <description>&lt;P&gt;Hi Team&lt;/P&gt;
&lt;P&gt;I am having a job which fetches the JSON stored in tFileInputExcel and patches the data using tRESTClient componet.&lt;BR /&gt;I am connectng the tFileInputExcel directly to tRESTClient and the Error link is connected to tDie to make the job fail.&lt;/P&gt;
&lt;P&gt;If the error code is 401 (Access token expired), I don't want to make the job fail instead I need to regenerate Access token and need to post the same row as coming from tFileInputExcel.&lt;/P&gt;
&lt;P&gt;How can this be done in Talend&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 10:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420645#M140180</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-02-19T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handling error in tRESTClient component in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420941#M140187</link>
      <description>&lt;P&gt;How do you regenerate the access token? is it coming from tFileInputExcel?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 02:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420941#M140187</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-02-20T02:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Handling error in tRESTClient component in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420954#M140188</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I am having a joblet which will generate the access token before reading from tFileInputExcel.&lt;/P&gt;
&lt;P&gt;Once the access token is generated, we are patching the records stored in tFileInputExcel. If there are many records in Excel there is a chance that the job might get failed as a result of token expiration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;DBS&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 04:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2420954#M140188</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-02-20T04:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handling error in tRESTClient component in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2421029#M140190</link>
      <description>&lt;P&gt;Thank you for your explanation. To re-run the job, you can use a tLoop&amp;nbsp; with '&lt;STRONG&gt;while type&lt;/STRONG&gt;'&amp;nbsp; to execute the job in a loop. Define a context variable with boolean type to determine whether the job continue to execute. This variable will be used in the &lt;STRONG&gt;Condition&lt;/STRONG&gt; field on tLoop. In the end of job, reset the value of context variable based on the status of tRestClient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2421029#M140190</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-02-20T08:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Handling error in tRESTClient component in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2421143#M140192</link>
      <description>&lt;P&gt;Thanks for your suggestion.&lt;BR /&gt;&lt;BR /&gt;I have implemented by the below approach.&lt;/P&gt;
&lt;P&gt;tFileInputExcel -&amp;gt;&amp;nbsp;tFlowtoIterate -&amp;gt; Iterate -&amp;gt; tFixedFlowInput -&amp;gt; tRESTClient.&lt;/P&gt;
&lt;P&gt;From tRESTClient, I will catch the error code and if the error code is 401, the access token is regenerated and the same record is posted using another trestclient component. For error codes other than 401, I have connected the flow to tDie component to make the job fail.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;DBS&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 11:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Handling-error-in-tRESTClient-component-in-talend/m-p/2421143#M140192</guid>
      <dc:creator>DBS1</dc:creator>
      <dc:date>2024-02-20T11:35:14Z</dc:date>
    </item>
  </channel>
</rss>

