<?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 seems to cause a roadblock in the data flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266866#M45950</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Maybe if tWriteJSONField&amp;nbsp;was renamed to&amp;nbsp;tWriteJSON&lt;EM&gt;&lt;STRONG&gt;Report&lt;/STRONG&gt;&lt;/EM&gt; there would be less confusion? &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;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 18:25:26 GMT</pubDate>
    <dc:creator>theronrohr</dc:creator>
    <dc:date>2019-04-05T18:25:26Z</dc:date>
    <item>
      <title>tWriteJSONField seems to cause a roadblock in the data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266862#M45946</link>
      <description>&lt;P&gt;Hi there... new Talend developer here... I have a data flow (picture hopefully inserted below) where I am querying a table for some rows (3 in this case) and I want to process each one in turn. This was working as I would expect in an earlier version where the steps were: (1) parse the records into fields, (2) map several fields into a combined comma delimited message field, (3)&amp;nbsp;send the message to a queue, (4) update the relevant database row with a processed date.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However when I added a tWriteJSONField component the behavior has changed. Now all 3 rows are processed as before up until the tWriteJSONField component. At that component&amp;nbsp;the flow seems to wait until all rows are processed before proceeding. Then after the tWriteJSONField component the remaining components are run 3 times but all 3 using the final rows values. This of course is no good. Is there somethign I am doing wrong in the setup of the tWriteJSONField component? Or can I not use this inside a flow? I'm confused!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Note that the diagram below is on step1 in debug mode. It shows that 3 rows have been processed but &lt;U&gt;not beyond&lt;/U&gt; the tWriteJSONField component.&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="Untitled.png" style="width: 730px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/13260iD22120A78E44BCC5/image-size/large?v=1.0&amp;amp;px=999" title="Untitled.png" alt="Untitled.png" /&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266862#M45946</guid>
      <dc:creator>theronrohr</dc:creator>
      <dc:date>2018-10-17T21:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField seems to cause a roadblock in the data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266863#M45947</link>
      <description>&lt;P&gt;Me again... to clarify: what I want is for each of the 3 records to go all the way through the flow until the end before the next record is processed.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266863#M45947</guid>
      <dc:creator>theronrohr</dc:creator>
      <dc:date>2018-10-17T21:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField seems to cause a roadblock in the data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266864#M45948</link>
      <description>&lt;P&gt;I have exactly the same problem and have spent a lot of time trying all sorts of workarounds to get the flow to pass each row through&amp;nbsp;tWriteJSONField without queuing them up first.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As in the OP, the rows halt at tWriteJSONField, then the flow proceeds row by row after it.&amp;nbsp; This behavior messes up my setting global variables with the row values before the tWriteJSONField; the global variables always reflect the last row of data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Why was the&amp;nbsp;tWriteJSONField component designed this way?&amp;nbsp; Also, as a side effect of this, or as a different anti-pattern, the variables in the schema get nulled out, so you can't expect to persist schema variables through the&amp;nbsp;tWriteJSONField.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unless someone can explain to me the reason for this design and a workaround, I would consider this a bug.&amp;nbsp; Somebody &lt;A href="https://github.com/ijokarumawak/tRowToJSON" target="_self" rel="nofollow noopener noreferrer"&gt;developed a custom component called&amp;nbsp;tRowToJSON&lt;/A&gt;&amp;nbsp;probably because of the stock component's maladjusted behavior.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 04:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266864#M45948</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-04-04T04:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField seems to cause a roadblock in the data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266865#M45949</link>
      <description>&lt;P&gt;Oh, someone replied to my post! &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;In the end I just worked around this by writing out the json formatting in a java component. But it's good to know there is a custom component for when this comes up again.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I also find it annoying that a lot of components do not flow the schema variables across them. There must be some design philosophy behind this that will become apparent to me one day.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 18:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266865#M45949</guid>
      <dc:creator>theronrohr</dc:creator>
      <dc:date>2019-04-05T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField seems to cause a roadblock in the data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266866#M45950</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Maybe if tWriteJSONField&amp;nbsp;was renamed to&amp;nbsp;tWriteJSON&lt;EM&gt;&lt;STRONG&gt;Report&lt;/STRONG&gt;&lt;/EM&gt; there would be less confusion? &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;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 18:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266866#M45950</guid>
      <dc:creator>theronrohr</dc:creator>
      <dc:date>2019-04-05T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField seems to cause a roadblock in the data flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266867#M45951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LL9IAAW"&gt;@theronrohr&lt;/A&gt;&amp;nbsp;, I figured out a workaround for this, see my response in my thread here:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCwWwCAK#M97608" target="_blank" rel="noopener"&gt;https://community.talend.com/t5/Design-and-Development/tWriteJSONField-and-tWriteXMLField-queue-unexpectedly-and/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 04:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-seems-to-cause-a-roadblock-in-the-data-flow/m-p/2266867#M45951</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-07-11T04:36:34Z</dc:date>
    </item>
  </channel>
</rss>

