<?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: tWriteJSONfield change execution order of the job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374001#M136659</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;So far, we don't have a better workaround on execution order issue. Feel free to create a jira issue on talend bug tracker.&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://jira.talendforge.org/secure/Dashboard.jspa" href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/secure/Dashboard.jspa&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;
 &lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt; 
&lt;H2 class="message-subject"&gt;&amp;nbsp;&lt;/H2&gt;</description>
    <pubDate>Tue, 09 Jan 2018 07:41:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-09T07:41:29Z</dc:date>
    <item>
      <title>tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373995#M136653</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I found following strange behaviour of the&amp;nbsp;tWriteJSONfield component. It change the order of the rows processing.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is an XML file with 2 records, i.e. &amp;lt;fileName&amp;gt;aaa.pdf&amp;lt;/fileName&amp;gt;&lt;SPAN&gt;&amp;lt;fileName&amp;gt;bbb.jpg&amp;lt;/fileName&amp;gt;. Without&amp;nbsp;tWriteJSONfield, 2 rows are processed by all components&amp;nbsp;consequentially:&lt;BR /&gt;&lt;/SPAN&gt;&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="Pasted image at 2017_12_23 07_33 PM.png" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsCI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144257iFD06E70443B80451/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsCI.png" alt="0683p000009LsCI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But when I add&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;tWriteJSONfield, both rows are processed first by components located &lt;STRONG&gt;before&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;tWriteJSONfield, and then both rows are processed by the rest of components:&lt;/SPAN&gt;&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="Pasted image at 2017_12_23 07_33 PM (1).png" style="width: 696px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsLY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144223i2E441F2AA37C8562/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsLY.png" alt="0683p000009LsLY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is criticall in my case because I use global variables for each row. Why it behave such way? Is it as designed?&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pasted image at 2017_12_23 07_33 PM (1).png" style="width: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsJO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139450iBF158665E5489E12/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsJO.png" alt="0683p000009LsJO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2017 17:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373995#M136653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-23T17:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373996#M136654</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;This should be the known component behaviour. such as, tAggregate and tDenormalize components may change input order.&lt;/P&gt;
&lt;P&gt;What does your current use case look like?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 08:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373996#M136654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-25T08:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373997#M136655</link>
      <description>&lt;P&gt;Hi Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all it is generally not a good thing when execution order is not transparent.&lt;/P&gt;&lt;P&gt;I faced this issue because I use global variable which I set for the row. I set global variable before tWriteJSONField component. And I need to get this variable after&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;tWriteJSONField component. And because of this behaviour, I can get value only for the last row.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2017 10:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373997#M136655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-25T10:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373998#M136656</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Would you mind posting your current setting of global variable screenshot on forum so that we can see if there is any workaround for your scenario?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 06:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373998#M136656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T06:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373999#M136657</link>
      <description>&lt;P&gt;Here it is:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) generates 2 random rows&lt;/P&gt; 
&lt;P&gt;2) set random value to global variable&lt;/P&gt; 
&lt;P&gt;3) call tWriteJSON (doesnt really matter what it do)&lt;/P&gt; 
&lt;P&gt;4) get&amp;nbsp;&lt;SPAN&gt;global variable value using tMap. The value is always same, the last one generated&lt;/SPAN&gt;&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="talend2.JPG" style="width: 764px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ls4c.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141037i04B594F4F90F5634/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ls4c.jpg" alt="0683p000009Ls4c.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tLogRow_5 displays only value for the last row&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="Capture2.JPG" style="width: 419px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrzP.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155790iE69F26FFF789FEF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrzP.jpg" alt="0683p000009LrzP.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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="Capture3.JPG" style="width: 366px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsNF.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155930i6E4A57EE6B0A8539/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsNF.jpg" alt="0683p000009LsNF.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 20:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2373999#M136657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T20:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374000#M136658</link>
      <description>&lt;P&gt;Hi Sabrina, any news on that? I found a workaround (using Java code) but I think this is an issue in Talend and should be fixed&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374000#M136658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-07T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374001#M136659</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;So far, we don't have a better workaround on execution order issue. Feel free to create a jira issue on talend bug tracker.&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://jira.talendforge.org/secure/Dashboard.jspa" href="https://jira.talendforge.org/secure/Dashboard.jspa" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/secure/Dashboard.jspa&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;
 &lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt; 
&lt;H2 class="message-subject"&gt;&amp;nbsp;&lt;/H2&gt;</description>
      <pubDate>Tue, 09 Jan 2018 07:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374001#M136659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T07:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONfield change execution order of the job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374002#M136660</link>
      <description>Hello 
&lt;BR /&gt;It seems like a bug, I tested and got the same issue. 
&lt;BR /&gt;Do you want to generate a json string for all input rows or a json string for each input row? If later, you can use tFlowToiterate to iterate each input row, eg: 
&lt;BR /&gt;tFileinputXML--main(row1)--tFlowToiterate--iterate-tfixedflowinput--main--tWriteJsonField--tMap--&amp;gt;tllogrow 
&lt;BR /&gt; 
&lt;BR /&gt;on tFixedFlowInput or tMap, you can get the current value with the expression like: 
&lt;BR /&gt;(String)globalMap.get("row1.columnName") 
&lt;BR /&gt;//for string type. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 09 Jan 2018 08:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONfield-change-execution-order-of-the-job/m-p/2374002#M136660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T08:35:24Z</dc:date>
    </item>
  </channel>
</rss>

