<?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: API URL null in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247818#M32872</link>
    <description>&lt;P&gt;If you are intending to use parallel execution you need to REALLY understand what you are doing. It won't gain you much here. I suggest you don't use it. Your problem is likely caused by the use of ....&lt;/P&gt;&lt;PRE&gt;globalMap.get("tRESTClient_1_HEADERS")&lt;/PRE&gt;&lt;P&gt;This is a single instance of an object that you are using in parallel. As such you have no idea which parallel flow the result will correspond to.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 14:40:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-14T14:40:27Z</dc:date>
    <item>
      <title>API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247817#M32871</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Hi Talend experts&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I have got below job which reads next API URL until it finds one also it iterates for different course_ids. I have tweaked the design a bit to run parallel execution(the idea is to use parallel execution option of iterate) to execute multiple calls at a time.&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="Screen Shot 2018-11-14 at 4.04.35 pm.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0rT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135222i5EA4D8D3CC36773A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0rT.png" alt="0683p000009M0rT.png" /&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;StoreCourseID:&lt;BR /&gt;//globalMap.put("canvas_id", row1.canvas_id);&lt;BR /&gt;globalMap.put("V_API_URL" + row1.canvas_id, "&lt;A href="https://swinburneonline.instructure.com/api/v1/courses/%22+" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;https://swinburneonline.instructure.com/api/v1/courses/"+&lt;/A&gt;row1.canvas_id +"/analytics/student_summaries?per_page=100");&lt;BR /&gt;globalMap.put("V_LOOP"+ row1.canvas_id, true);&lt;BR /&gt;&lt;BR /&gt;tLoop:&lt;BR /&gt;((Boolean) globalMap.get("V_LOOP"+ row1.canvas_id))&lt;BR /&gt;&lt;BR /&gt;tRestClient:&lt;BR /&gt;&lt;BR /&gt;((String) globalMap.get("V_API_URL" + row1.canvas_id))&lt;BR /&gt;&lt;BR /&gt;GetNextUrl&lt;BR /&gt;System.out.println("Current URL IS: "+globalMap.get("V_API_URL"+ row1.canvas_id)); (prints correctly)&lt;BR /&gt;System.out.println("Rest URL"+ globalMap.get("tRESTClient_1_HEADERS")); (doesn't print and errors out to null)&lt;BR /&gt;java.util.List &amp;lt;STRING&amp;gt; strList&amp;amp;nbsp; = ((java.util.Map&amp;lt;STRING&amp;gt;&amp;amp;gt&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEwU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132678i7DA9A7BA04588AD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEwU.png" alt="0683p000009MEwU.png" /&gt;&lt;/span&gt;globalMap.get("tRESTClient_1_HEADERS")).get("Link");&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;SetNextURlToCurrUrl:&lt;BR /&gt;&lt;BR /&gt;if ((Boolean) globalMap.get("V_LOOP"+row1.canvas_id))&lt;BR /&gt;; {&lt;BR /&gt;System.out.println("URL1 IS: "+globalMap.get("V_API_URL"));&lt;BR /&gt;globalMap.put("V_API_URL"+row1.canvas_id,globalMap.get("next_url"+row1.canvas_id));&lt;BR /&gt;System.out.println("URL IS: "+globalMap.get("V_API_URL"));&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In doing so I have run into problem where Rest URL is always getting NULL when I get it from GetNextURL (tjava) component. Not sure what's wrong. Any help is really appreciated!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU" target="_blank"&gt;@rhall&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOQnAAO" target="_blank"&gt;@gr44&lt;/A&gt;: your input is really appreciated!!&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Harshal.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247817#M32871</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2024-11-16T07:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247818#M32872</link>
      <description>&lt;P&gt;If you are intending to use parallel execution you need to REALLY understand what you are doing. It won't gain you much here. I suggest you don't use it. Your problem is likely caused by the use of ....&lt;/P&gt;&lt;PRE&gt;globalMap.get("tRESTClient_1_HEADERS")&lt;/PRE&gt;&lt;P&gt;This is a single instance of an object that you are using in parallel. As such you have no idea which parallel flow the result will correspond to.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247818#M32872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T14:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247819#M32873</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;: How Do I do parallel execution to make entire flow faster? Just imagine I have got 5k course id read from fb and iterated to rest api URL and on top pagination happens. So this is making flow really slow. I am able to run only 2k course id for almost 2.5 hours as call happens for each course id and each page inside it. Let alone be remaining ~3k records. 
&lt;BR /&gt; 
&lt;BR /&gt;There must be some way of improving performance for current flow. How do I parallelise then for multiple course ids together?</description>
      <pubDate>Wed, 14 Nov 2018 19:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247819#M32873</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-14T19:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247820#M32874</link>
      <description>&lt;P&gt;OK. Here is a way that might help. Put the part of the job which iterates over the web service calls in a separate job. That job should receive a context variable which holds the course_id. Keep in your current job the part of the process which iterates over the course_ids. Then use your new child job to be called by the iterate link supply the course_id. You can then try and execute that child job in parallel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By&amp;nbsp; doing this you are keeping the individual course queries in the same process. Therefore your "next_url" functionality will carry on the way it is.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 13:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247820#M32874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-15T13:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247821#M32875</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;: Thanks for your reply. Not sure if I understood your problem but if you could just show design step here that would be fantastic. But I tried doing context way but it didn’t work as in context it can store one value at a time and I want parallelism(many ids being passed to many flow) to be happening at the same time.</description>
      <pubDate>Thu, 15 Nov 2018 17:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247821#M32875</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-15T17:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247822#M32876</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;: Sorry for the earlier post. I did not quite understand. Then I implemented the way you mentioned and it is working.&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="Screen Shot 2018-11-16 at 10.36.28 am.png" style="width: 831px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0eG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156888i41FEF8AAAAC57A8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0eG.png" alt="0683p000009M0eG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It works fine.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Not sure what's the best value to parallelise. I am going to test out for 50 and see how it goes.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 23:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247822#M32876</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-15T23:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247823#M32877</link>
      <description>&lt;P&gt;Make sure you test this thoroughly. You *may* find some timing issues, but this is a better way of attempting this.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247823#M32877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-16T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247824#M32878</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;: I found out that there is throttle value set at source and I can’t do parallelism. So per token value I have certain resourcing limit. This is going to slow down everything &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;. However I have asked application team to see if at all I can set parallelism and what’s the best value I can have. 
&lt;BR /&gt; 
&lt;BR /&gt;Yes you are right I had timing issues when I was testing for 50 or 100 parallel execution. How to tackle them?</description>
      <pubDate>Fri, 16 Nov 2018 17:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247824#M32878</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-16T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247825#M32879</link>
      <description>&lt;P&gt;I've just carried out a quick test and I don't see this issue in v6.5.1. What version are you using?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 13:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247825#M32879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-17T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247826#M32880</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;: I’m using 6.4.1. How to avoid that type of situation?</description>
      <pubDate>Sat, 17 Nov 2018 15:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247826#M32880</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-17T15:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: API URL null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247827#M32881</link>
      <description>&lt;P&gt;I'm not sure. This *might* be a bug. I built a quick job like this....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tRowGenerator -------------------------------------&amp;gt; tFlowToIterate-------------------------&amp;gt; tJava&lt;/P&gt;
&lt;P&gt;(Generating a single integer sequence) .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(Running 10 in parallel)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (Printing the numbers)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This produced an output of .....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;P&gt;9&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;P&gt;10&lt;/P&gt;
&lt;P&gt;7&lt;/P&gt;
&lt;P&gt;8&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;6&lt;/P&gt;
&lt;P&gt;5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I extended the test to 100 with 100&amp;nbsp; in parallel and it still looked ok.....although I didn't spend too much time checking.&lt;/P&gt;
&lt;P&gt;But I did this in v6.5.1. Try something similar and see if you get problems. If you do, it sounds like a bug in v6.4&lt;/P&gt;</description>
      <pubDate>Sat, 17 Nov 2018 16:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/API-URL-null/m-p/2247827#M32881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-17T16:34:20Z</dc:date>
    </item>
  </channel>
</rss>

