<?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: Problem with tWriteJSONField: Group By shifted in result set? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230495#M21104</link>
    <description>Hi,&lt;BR /&gt;What's the actual result when you design your job as:&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tMysqlInput &amp;nbsp;=&amp;gt; tWriteJSONField =&amp;gt; tLogRow?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;The "group by" field on component tWriteJsonField should work well.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;What's the build version you are using?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Thu, 08 Sep 2016 09:04:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-08T09:04:57Z</dc:date>
    <item>
      <title>Problem with tWriteJSONField: Group By shifted in result set?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230494#M21103</link>
      <description>Hello, 
&lt;BR /&gt; 
&lt;BR /&gt;i have a problem with the tWriteJSONField-component. 
&lt;BR /&gt;The current job (simplified) looks like this: 
&lt;BR /&gt;tMysqlInput =&amp;gt; (tSortRow) =&amp;gt; tWriteJSONField =&amp;gt; tLogRow 
&lt;BR /&gt; 
&lt;BR /&gt;The DB-Input-Data looks like: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;|id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |typ|client_id|dayofweek|from_m|to_m|from_a|to_a|singleday|singlemonth|comment|odd_week|&lt;BR /&gt;|=------+---+---------+---------+------+----+------+----+---------+-----------+-------+-------=|&lt;BR /&gt;|1640760|a&amp;nbsp; |24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0000&amp;nbsp; |0000|0000&amp;nbsp; |0000|0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |false&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|1640761|a&amp;nbsp; |24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0800&amp;nbsp; |0000|0000&amp;nbsp; |1830|0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |false&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|1640766|a&amp;nbsp; |24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0830&amp;nbsp; |1300|0000&amp;nbsp; |0000|0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |false&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|1640767|a&amp;nbsp; |32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |false&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;|1640768|a&amp;nbsp; |32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0830&amp;nbsp; |1830|0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |false&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;...&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;These are opening times for clients. My goal is it to build a single json for all opening times per client. Expected Output is: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;|client_id|openings&lt;BR /&gt;|24&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |{"openings":}|&lt;BR /&gt;|32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |{"openings":}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Instead, what i actually get is: 
&lt;BR /&gt; 
&lt;PRE&gt;|client_id|openings&lt;BR /&gt;|32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |{"openings":}|&lt;BR /&gt;|64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |{"openings":}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;As you see the client_id does not match the client_id in the openings-json. They are all shifted by one row: The client_id 32 gets the openings from the client 24, client 64 gets the openings from client 32 and so on. 
&lt;BR /&gt; 
&lt;BR /&gt;I tried to sort the data with a tSortRow before the tWriteJsonField but it stays the same. 
&lt;BR /&gt;I attached images from the job and the configuration of tWriteJSONField. 
&lt;BR /&gt; 
&lt;BR /&gt;Can anyone help me? 
&lt;BR /&gt;Thank you 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBTf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133533iD593FB4217CC6E50/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBTf.png" alt="0683p000009MBTf.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBTk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147399i9CC8C6F897CD6559/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBTk.png" alt="0683p000009MBTk.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230494#M21103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-05T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with tWriteJSONField: Group By shifted in result set?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230495#M21104</link>
      <description>Hi,&lt;BR /&gt;What's the actual result when you design your job as:&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tMysqlInput &amp;nbsp;=&amp;gt; tWriteJSONField =&amp;gt; tLogRow?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;The "group by" field on component tWriteJsonField should work well.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;What's the build version you are using?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 08 Sep 2016 09:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230495#M21104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with tWriteJSONField: Group By shifted in result set?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230496#M21105</link>
      <description>Hi, 
&lt;BR /&gt;it looks the same. I made a screenshot to show the Job: 
&lt;BR /&gt; 
&lt;BR /&gt;As you can see the "client_id" doesn't match the "client_id" in "openings". Only the last one is correct, but the client 62 is then duplicated. 
&lt;BR /&gt;I've used this component before in other Jobs and also never had this problem. 
&lt;BR /&gt; 
&lt;BR /&gt;Build-Version: Talend Open Studio ESB 6.1.1.20151214_1327 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBSs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136510i504F37024003E5F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBSs.png" alt="0683p000009MBSs.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 08 Sep 2016 15:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230496#M21105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-08T15:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with tWriteJSONField: Group By shifted in result set?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230497#M21106</link>
      <description>I am actually seeing the exact same behavior that is being described here.&lt;BR /&gt;I am on Talend Big Data build:&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face=".SF NS Text"&gt;20160615_1327_patch&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any solution to this as this essentially renders the tWriteJsonField component useless.</description>
      <pubDate>Fri, 18 Nov 2016 18:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230497#M21106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-18T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with tWriteJSONField: Group By shifted in result set?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230498#M21107</link>
      <description>BUMP!!
&lt;BR /&gt;Has anyone found a solution for this?
&lt;BR /&gt;I am having exactly the same issue!&amp;nbsp;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;pp84</description>
      <pubDate>Tue, 14 Mar 2017 15:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-tWriteJSONField-Group-By-shifted-in-result-set/m-p/2230498#M21107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-14T15:38:33Z</dc:date>
    </item>
  </channel>
</rss>

