<?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 emiting jsonobject in OnNext in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249124#M149003</link>
    <description>&lt;P&gt;I am new to Talend, so may be wrong, but I did setup the metadata in repository and used it on read csv, and then on my custom component thsi is what i have for schema, whihc is basically propogated from read csv. Does this help&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schema.png" style="width: 986px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ly9m.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143712i04381BB3472C3919/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ly9m.png" alt="0683p000009Ly9m.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lt6l"&gt;schema.png&lt;/A&gt;</description>
    <pubDate>Fri, 22 Jun 2018 19:53:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-06-22T19:53:06Z</dc:date>
    <item>
      <title>Problem with emiting jsonobject in OnNext</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249122#M149001</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a component, that takes generic input and then does some processing and then&amp;nbsp;returns a generic object,&lt;/P&gt; 
&lt;P&gt;however it seems the values of all cells are&amp;nbsp; getting&amp;nbsp; dropped&lt;/P&gt; 
&lt;P&gt;Below is code snippet&amp;nbsp;This is just a simpler version of what I am trying to do, but just forwarding what I received, to show the issue&lt;/P&gt; 
&lt;PRE&gt;@ElementListener

&amp;nbsp;&amp;nbsp;&amp;nbsp; public void onNext(

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Input final JsonObject defaultInput,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Output("output_2") final OutputEmitter&amp;lt;JsonObject&amp;gt; output2Output) {

&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;&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;&amp;nbsp; output2Output.emit(defaultInput );

&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/PRE&gt; 
&lt;P&gt;I see that my output has same number of rows and columns, but all values get dropped.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend empty result.png" style="width: 467px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ly8P.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129277iA0314AB7A8E9B136/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ly8P.png" alt="0683p000009Ly8P.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;As you see in the attached image, there are 8 rows and bunch of semi-columns because semi colon is the "Field Seperator" for the tFileOutputMSDelimited, but values are empty&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 14:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249122#M149001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-02T14:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with emiting jsonobject in OnNext</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249123#M149002</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;It seems like the schema of your component is missing. have you configured the incoming schema in the component.&lt;BR /&gt;Can you provide more details (screenshots) of how your job configuration so that we can provide you more accurate support.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 17:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249123#M149002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T17:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with emiting jsonobject in OnNext</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249124#M149003</link>
      <description>&lt;P&gt;I am new to Talend, so may be wrong, but I did setup the metadata in repository and used it on read csv, and then on my custom component thsi is what i have for schema, whihc is basically propogated from read csv. Does this help&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schema.png" style="width: 986px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ly9m.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143712i04381BB3472C3919/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ly9m.png" alt="0683p000009Ly9m.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lt6l"&gt;schema.png&lt;/A&gt;</description>
      <pubDate>Fri, 22 Jun 2018 19:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249124#M149003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T19:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with emiting jsonobject in OnNext</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249125#M149004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOW1AAO"&gt;@bhu&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As Anas mentionned, the Studio requires you to have a "schema" up to date to then generate the job as efficiently as possible. The first step is to ensure each component have a properly set up schema. To keep it simple I recommand you to start from the beginning&amp;nbsp;of the job and move forward component by component to "propagate" the schema as needed if not already done (the designer is sometimes clever enough to show you a popup to do it on the fly).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To edit a schema you&amp;nbsp;can click on&amp;nbsp;a component and then you have access to the related schemas of the components (inputs and outputs).&lt;/P&gt; 
&lt;P&gt;For outputs and for Talend Component Kit components, you have a "Guess schema" button you can hit to &lt;STRONG&gt;execute&lt;/STRONG&gt; the job and auto populate the schema from the fetched data. It is very important to not do it on component writing data if you don't want them to actually write anything but it means it works&amp;nbsp;for almost all components except outputs which can just get their input schemas auto-propagated.&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="Guess Schema" style="width: 892px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyA1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138642i5A0FA70F2BB0DCB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyA1.png" alt="0683p000009LyA1.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Guess Schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Once you have filled the schema or if you&amp;nbsp;want to enter it manually and skip the "guess" logic, then you can hit the ellipsis button "..." and you will see the current schema on the right and the incoming one on the left. There are shortcuts to auto-synchronize them if desired (avoid to type a lot of columns in general) but what is important is it gives you a way to validate&amp;nbsp;what&amp;nbsp;attributes are available in the job generation.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schema Edition" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyA6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152552i4FE3B24007AD06A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyA6.png" alt="0683p000009LyA6.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Schema Edition&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Last important point: the studio "flattens" the data&amp;nbsp;and doesn't natively handle hierarchic data in its schema (compared&amp;nbsp;to JSON which is hierarchic) so it is recommanded to try to produce flat data otherwise the JSON will be flattened for nested objects in&amp;nbsp;"Talend Object" columns (you can see it as a Java Object if it helps).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 20:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249125#M149004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-22T20:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with emiting jsonobject in OnNext</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249126#M149005</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMHOAA4"&gt;@rmannibucau&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLVbAAO"&gt;@akhabali&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;My problem ended up been the metadata was messed up in the twritedelimited&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Your screen shot provided me the hint to see the log first and then it worked out fine&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-emiting-jsonobject-in-OnNext/m-p/2249126#M149005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T13:08:45Z</dc:date>
    </item>
  </channel>
</rss>

