<?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: How to set restriction on tLoop iteration while retry for error &amp;quot;org.apache.axis2.AxisFault:Read timed out &amp;quot; in tSalesForceinput component? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223544#M16634</link>
    <description>&lt;P&gt;The fact that your code is not getting to the the tJava is not because something is going wrong. There is no error on what I suspect your OnComponentError is connected to. The error is occurring on the salesforce component and the flow will likely stop there (I cannot see it, so I am having to guess). That is why I gave the suggestion I did above. You need to have the status (variable settings) set to a state of failure before the Salesforce component so that if the flow stops dead there, it will cycle through again. If the flow gets beyond the Salesforce component then it can be considered a success.&lt;BR /&gt;&lt;BR /&gt;It is very hard to imagine your flow (particularly as you say you have changed it). Can you try what I suggested, test it and send a screen shot with issues?&lt;BR /&gt;&lt;BR /&gt;By the way, the tLogCatcher just intercepts logs. It does not change the flow. You can see how it is supposed to be used by looking at the link below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/display/TalendOpenStudioComponentsReferenceGuide61EN/tLogCatcher" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendOpenStudioComponentsReferenceGuide61EN/tLogCatcher&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 10:01:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-25T10:01:34Z</dc:date>
    <item>
      <title>How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223537#M16627</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I want to count number of records for CampaignMember table from&amp;nbsp;SalesForce.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But Sometimes it gives me "org.apache.axis2.AxisFault:Read timed out" for tSalesforceinput component for only CampaignMember object ,other objects have no problem.&lt;/P&gt; 
&lt;P&gt;That's why i want to retry this process &amp;nbsp;2 times using &lt;STRONG&gt;tLoop&lt;/STRONG&gt; as shown below but again for&amp;nbsp;CampaignMember object when it fails it doesn't retry.&lt;/P&gt; 
&lt;P&gt;Can any one resolve my issue and provide me solution over this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;vaibhav&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" image-alt="retry by tloop.jpg" style="width: 409px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltre.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156327i03AED4E711E6D664/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltre.jpg" alt="0683p000009Ltre.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJava code.jpg" style="width: 430px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltro.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153816i2F3DF0AC46F86DA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltro.jpg" alt="0683p000009Ltro.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tloop setting.jpg" style="width: 427px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltg5.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153812i691A03F36828DF70/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltg5.jpg" alt="0683p000009Ltg5.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223537#M16627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223538#M16628</link>
      <description>&lt;P&gt;This is down to an error in your Java. By the way, thanks for the screenshots, but with code it is easier if you copy and paste it into the forum. It allows us to edit it for you&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please excuse typos in the code examples.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;Your loop condition should be like below.....&lt;/P&gt; 
&lt;PRE&gt;((String)globalMap.get("LoopIterate")).compareToIgnoreCase("Start")==0&lt;/PRE&gt; 
&lt;P&gt;You are comparing the exact value. You are saying "Is the value of my globalMap variable THIS value?". It's subtle but it is like saying that two cars are the same. They may be the same make, model, year, colour.....they may even have the same number plate. They may look EXACTLY the same. But they are different cars. The "==" checks for that. You want to compare the value.&lt;BR /&gt;&lt;BR /&gt;The second issue is with the first line of your IF condition in the tJava. There is a relatively famous saying which goes "You can say someone is a waste of space, but not a waste of null". Null is nothing. It is the non existence of something. You are treating as a String with the value "null". What you want to use is below (again, the code is pseudo code, but you should get the idea)....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;if(globalMap.get("Salesforce_component")==null){
     ---do something
}else if(........&lt;/PRE&gt; 
&lt;P&gt;Try adjusting your code following the above and you will be a step closer. It still may have issues. If so, let us know&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223538#M16628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T12:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223539#M16629</link>
      <description>Hi rhall_2_0, 
&lt;BR /&gt;Thanks for your quick response 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I have used the condition mentioned in your reply,my job running fine with all other objects but still issues with CampaignMember object. 
&lt;BR /&gt; 
&lt;BR /&gt;Actually the thing is I have used tLogCatcher in my job at bottom but whenever Read timed out error comes it doesn't go to tjava where I update my Global variable value used in tLoop so it doesn't retry and directly terminate the flow. 
&lt;BR /&gt; 
&lt;BR /&gt;Can you suggest me over this? 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Fri, 21 Apr 2017 14:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223539#M16629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223540#M16630</link>
      <description>&lt;P&gt;You are using an OnComponentOK to link to the tJava. That is likely something to do with this here. You can sort this by changing the approach. Have the globalMap that controls the Loop to be immediately set to the value that will continue the loop before you do anything. Then set that globalMap to be the complete status in the tJava which currently is not being fired. My thinking is that this will only be fired on a successful run. Therefore you should use this to end the loop instead of continue it.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223540#M16630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223541#M16631</link>
      <description>Hi, 
&lt;BR /&gt;I am actually doing whatever u said in your reply but there is no problem with objects those are successfully executed . 
&lt;BR /&gt;Problem is with some objects that's why I want to retry them at least for 2 times so that error vanishes and I get success message. 
&lt;BR /&gt;Because when I get same error on Sales Force UI for same object ,I just fire SOQL query again to count no. of records in that object ,after 2 retry it will gives me the count. 
&lt;BR /&gt;Same thing I want implement in my scenario also but bcz of tLogCatcher the flow directly divert to end and the value for tLoop is not updated. 
&lt;BR /&gt; 
&lt;BR /&gt;Can you send me working example for my scenario that I discussed so that I will implement it? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks &amp;amp; regards 
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Mon, 24 Apr 2017 07:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223541#M16631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T07:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223542#M16632</link>
      <description>&lt;P&gt;If you are getting an error with the Salesforce component the flow will not get to the tJava. As such, you need to increment a counter before the Salesforce component. I would approach this in the following way...&lt;BR /&gt;&lt;BR /&gt;1) Use an increment counter in your Loop. Also use a While Loop. This can be done with a globalMap variable created before the tLoop (maybe in a tJava).&lt;BR /&gt;2) Increment this globalMap variable before the Salesforce component is called.&lt;BR /&gt;3) Set the While loop limit to whatever you want (I think you say you wish it to try twice).&lt;BR /&gt;4) If the Salesforce component is called successfully and the update is carried out in the DB (ie if the tJava at the end is reached) set the gobalMap varible to be equal or greater than you max loop value.&lt;BR /&gt;&lt;BR /&gt;This *should* solve your issue.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223542#M16632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-24T09:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223543#M16633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;tLogCatcher doesn't allow me to divert the flow of execution for retry as previously discussed, now I disable it and handle the incoming error by using "onComponentError" link and attach it further with tJava where I update my tLoop condition .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This will update global variable value from tloop and go for retry. But now again different issue arises though my condition -&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;if((Integer)globalMap.get("tLoop_1_CURRENT_ITERATION")&amp;lt;3)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;globalMap.put("LoopIterate", "Start");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;System.out.println("Going for Retry for "+context.SF_Table);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;is true it doesn't pass the flow to tjava also , as I don't get "&lt;STRONG&gt;Going for Retry for" &lt;/STRONG&gt;message in error log/trace.&lt;/P&gt; 
&lt;P&gt;Is there any limitation for OnComponentError link? Does it support all objects i.e. input components as &amp;nbsp;well as output components?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kindly reply ...!&lt;/P&gt; 
&lt;P&gt;Vaibhav&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 08:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223543#M16633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223544#M16634</link>
      <description>&lt;P&gt;The fact that your code is not getting to the the tJava is not because something is going wrong. There is no error on what I suspect your OnComponentError is connected to. The error is occurring on the salesforce component and the flow will likely stop there (I cannot see it, so I am having to guess). That is why I gave the suggestion I did above. You need to have the status (variable settings) set to a state of failure before the Salesforce component so that if the flow stops dead there, it will cycle through again. If the flow gets beyond the Salesforce component then it can be considered a success.&lt;BR /&gt;&lt;BR /&gt;It is very hard to imagine your flow (particularly as you say you have changed it). Can you try what I suggested, test it and send a screen shot with issues?&lt;BR /&gt;&lt;BR /&gt;By the way, the tLogCatcher just intercepts logs. It does not change the flow. You can see how it is supposed to be used by looking at the link below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/display/TalendOpenStudioComponentsReferenceGuide61EN/tLogCatcher" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendOpenStudioComponentsReferenceGuide61EN/tLogCatcher&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 10:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223544#M16634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set restriction on tLoop iteration while retry for error "org.apache.axis2.AxisFault:Read timed out " in tSalesForceinput component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223545#M16635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Sorry for late reply......!&lt;/P&gt; 
&lt;P&gt;The issue is solved now but with different approach .&lt;/P&gt; 
&lt;P&gt;I uses one more tRunJob to retry the job on my expected condition. Also uses tBufferOutput component to transfer parameters back to Master Job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Design is like this:&lt;/P&gt; 
&lt;P&gt;Master job--&amp;gt;tRunJob_1--&amp;gt;Child Job--&amp;gt;If error comes --&amp;gt;&lt;SPAN&gt;tBufferOutput---&amp;gt;Master Job--&amp;gt;If Error recorded--&amp;gt;tRunJob_2--&amp;gt;process repeats ....&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Master jOb-&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RowCountMaster Job pic.jpg" style="width: 868px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv4Q.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145677iCF0F767A712687ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv4Q.jpg" alt="0683p000009Lv4Q.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Child Job-&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rowcount child job pic.jpg" style="width: 921px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuxK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130744i5CA3019901DCCB05/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuxK.jpg" alt="0683p000009LuxK.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 08:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-restriction-on-tLoop-iteration-while-retry-for-error/m-p/2223545#M16635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-26T08:02:37Z</dc:date>
    </item>
  </channel>
</rss>

