<?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: tMap order not correct? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358620#M123611</link>
    <description>I am just wondering if&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;tJavaRow is the villian here. tJavaRow executes for every input row. Can you try to remove tJavaRow once and see if Main Order 1 still remains in "Starting" status.&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Wed, 12 Oct 2016 06:29:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-10-12T06:29:42Z</dc:date>
    <item>
      <title>tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358619#M123610</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am curretly facing a problem with the tMap row's order.&amp;nbsp;&lt;BR /&gt;As you can see on the screenshot I have several tMap connected to each others. Some tmap have Lookup and 2 main rows with order 1 and 2.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When I execute the job, datas seem to ignore the row with "order 1". Datas are supposed to be checked in order to update a variable (thanks to tJavaRow) to determine if there is a problem in datas consistency or not. If there is a problem, we update a context variable which is used in tMap "filtre_nb_rejects==0" to avoid a "NumberFormatException" when we cast numbers.&lt;BR /&gt;The fact the rows with order:1 are ignored makes the entire records circulate without being checked, causing an error when datas are not correct.&lt;BR /&gt;&lt;BR /&gt;I would really be thankful if anyone could help me.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/404039/Capture.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MFqd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142667i0E3E13730800678E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MFqd.png" alt="0683p000009MFqd.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 10:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358619#M123610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-11T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358620#M123611</link>
      <description>I am just wondering if&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana," helvetica=""&gt;tJavaRow is the villian here. tJavaRow executes for every input row. Can you try to remove tJavaRow once and see if Main Order 1 still remains in "Starting" status.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 12 Oct 2016 06:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358620#M123611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T06:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358621#M123612</link>
      <description>This is not going to work and if it does it will not be reliable. You are treating a "row" connector like an "iterate" connector and expecting data rows to be passed through the process in such a way that context variables can be assigned and used per data row. You need to break this down into several subjobs or change the way you handle the error check. I would carry out the initial check on your data. Add the check result to a column on the data row. Then use that column to trigger other logic. If you want to use a context variable for this, you will need to break it down into several subjobs and use the "iterate" connector to ensure timing.</description>
      <pubDate>Wed, 12 Oct 2016 09:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358621#M123612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T09:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358622#M123613</link>
      <description>Hello
&lt;BR /&gt;
&lt;BR /&gt;I see order 1 is a runIf connector in this job, the component or subjob linked with runIf only runs when the execution of previous component finishes. I don't understand the problem here, can you upload a full screenshot of the job and explain what are your expected result?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 12 Oct 2016 13:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358622#M123613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T13:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358623#M123614</link>
      <description>I agree with Rhall_2.0 here. You should probably try the approach that he has suggested</description>
      <pubDate>Wed, 12 Oct 2016 14:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358623#M123614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358624#M123615</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;thank you all for your answers. 
&lt;BR /&gt; 
&lt;BR /&gt;We know that this job could have been developed much better and is not very "optimized". But these developments have been made by a person who was new to Talend and actually is no more in the company right now. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;shong&lt;/B&gt;: the tMap connectors are not "runIf" connectors, these are main connectors. I can't really screenshot the entire job because it is huge and wouldn't really help for the problem I am facing. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;rhall_2.0&lt;/B&gt;: I thought the execution of "main order 2" would be waiting for all rows to circulate in the "main order 1". I understand the approach you suggest but the entire project has been developed by another person and I am new to this project and now have to update/improve some part of the jobs. I can't really "repair" this part of the job because it would take too much time. It is working well in production environment at the moment. I just noticed that "problem" when I was running several tests on a new feature I added, I can't even tell you if this behavior is new, but I don't think it is. 
&lt;BR /&gt; 
&lt;BR /&gt;What I just can't understand is that the "main order 1" is waiting for the ENTIRE rows to circulate in the "main order 2" connector. That's not even "parallel" or something, the "main order 1" connector remains "Starting" while the "main order 2" is executing. 
&lt;BR /&gt; 
&lt;BR /&gt;(sorry for my english which sometimes is approximative)</description>
      <pubDate>Wed, 12 Oct 2016 14:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358624#M123615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358625#M123616</link>
      <description>You will need to give us more information about the code in the tJavaRows before we can help any further I am afraid. However, your understanding of the ordering of the tMap out links is wrong. In a system where there are no hold-ups in the flow, the ordering would be order 1, then order 2 per row. As an example, I have quickly knocked up a test job to show this. It has a tRowGenerator, a tMap and two tLogRows. The tRowGenerator simply produces a sequence of consecutive numbers. The tMap adds either "AAA" or "BBB" to the number and sends one to one output and the other to the other. The order of data is below... 
&lt;BR /&gt;1AAA 
&lt;BR /&gt;1BBB 
&lt;BR /&gt;2AAA 
&lt;BR /&gt;2BBB 
&lt;BR /&gt;3AAA 
&lt;BR /&gt;3BBB 
&lt;BR /&gt;4AAA 
&lt;BR /&gt;4BBB 
&lt;BR /&gt;5AAA 
&lt;BR /&gt;5BBB 
&lt;BR /&gt; 
&lt;BR /&gt;The "AAA" data came from order 1 and "BBB" came from order 2.</description>
      <pubDate>Wed, 12 Oct 2016 15:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358625#M123616</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-12T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: tMap order not correct?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358626#M123617</link>
      <description>@predz - Are you sure it is working fine in your production box? Is it possible that this scenario never occured in your production box box because of which you didn't encounter this issue.
&lt;BR /&gt;Using tJavaRow is the problem here. Some rework will be required here to make this job more robust else this job may fail with another scenario.&amp;nbsp;</description>
      <pubDate>Thu, 13 Oct 2016 05:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-order-not-correct/m-p/2358626#M123617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-13T05:18:12Z</dc:date>
    </item>
  </channel>
</rss>

