<?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 check incoming data from JSON before inserting into database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270203#M48193</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am extracting some chats from REST API, incoming data is in JSON. So far I have been able&amp;nbsp;extract data from API and put in DataBase.&amp;nbsp;what I want to do next is to&amp;nbsp;check is chats already inserted before&amp;nbsp;inserting into table.&amp;nbsp;Some more information chat table has millions of&amp;nbsp;records because it stores all the conversation, one row per message. So there are two table here&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;CHAT_DETAILS - this stores everything (millions of records)&lt;/P&gt; 
&lt;P&gt;CHAT_MASTER - This&amp;nbsp;Stores the unique chat_ID and some other information. (couple of hundred thousand records). This is the table where I want to check for incoming Chat_IDs before inserting.&lt;/P&gt; 
&lt;P&gt;If Chat_ID exists in&amp;nbsp;&lt;SPAN&gt;CHAT_&lt;/SPAN&gt;&lt;SPAN&gt;MASTER = STOP THE JOB&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If Chat_ID doesn't exist in&amp;nbsp;CHAT_MASTER =&amp;nbsp;continue inserting&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-left" image-alt="image.png" style="width: 642px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzGz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143714iE202A28D299B7F29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzGz.png" alt="0683p000009LzGz.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;&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; 
&lt;P&gt;&amp;nbsp;&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-left" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzSg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137394iFB209BA812C8E317/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzSg.png" alt="0683p000009LzSg.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;</description>
    <pubDate>Fri, 07 Sep 2018 18:36:45 GMT</pubDate>
    <dc:creator>Gourav_King_of_DataLand</dc:creator>
    <dc:date>2018-09-07T18:36:45Z</dc:date>
    <item>
      <title>check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270203#M48193</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am extracting some chats from REST API, incoming data is in JSON. So far I have been able&amp;nbsp;extract data from API and put in DataBase.&amp;nbsp;what I want to do next is to&amp;nbsp;check is chats already inserted before&amp;nbsp;inserting into table.&amp;nbsp;Some more information chat table has millions of&amp;nbsp;records because it stores all the conversation, one row per message. So there are two table here&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;CHAT_DETAILS - this stores everything (millions of records)&lt;/P&gt; 
&lt;P&gt;CHAT_MASTER - This&amp;nbsp;Stores the unique chat_ID and some other information. (couple of hundred thousand records). This is the table where I want to check for incoming Chat_IDs before inserting.&lt;/P&gt; 
&lt;P&gt;If Chat_ID exists in&amp;nbsp;&lt;SPAN&gt;CHAT_&lt;/SPAN&gt;&lt;SPAN&gt;MASTER = STOP THE JOB&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If Chat_ID doesn't exist in&amp;nbsp;CHAT_MASTER =&amp;nbsp;continue inserting&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-left" image-alt="image.png" style="width: 642px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzGz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143714iE202A28D299B7F29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzGz.png" alt="0683p000009LzGz.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;&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; 
&lt;P&gt;&amp;nbsp;&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-left" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzSg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137394iFB209BA812C8E317/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzSg.png" alt="0683p000009LzSg.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;</description>
      <pubDate>Fri, 07 Sep 2018 18:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270203#M48193</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-09-07T18:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270204#M48194</link>
      <description>&lt;P&gt;You can:&lt;/P&gt;&lt;P&gt;1) use tFlowToIterate and read data from database with this id - tDBInput and use tRunIf if component return or not data, like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT CASE WHEN EXISTS (SELECT * FROM table where Chat_ID = Chat_ID) THEN 1 ELSE 0 END as ID_Exists&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) as I understand it oracle (?) and because component do not support INSERT/IGNORE You can use tOracleRow component and with prepared query run something like&lt;/P&gt;&lt;PRE&gt;INSERT INTO table (a,b,c) VALUES (?,?,?) WHERE NOT EXISTS (SELECT * FROM table where Chat_ID = Chat_ID)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;in both case use variable instead of Chat_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;3) use triggers on table&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 16:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270204#M48194</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-09-08T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270205#M48195</link>
      <description>&lt;P&gt;you can also:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;put a tMap component between extractJSON an oracleOutput.&lt;/P&gt; 
&lt;P&gt;connect it with extractJSON and oracleOutput components&lt;/P&gt; 
&lt;P&gt;add a tOracleInput component (CHAT_MASTER) as lookup&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="job.PNG" style="width: 932px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzSv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134372iC4AF5C01A62749F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzSv.png" alt="0683p000009LzSv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tMap configuration looks like this:&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="tMap.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzH9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147668i8109BC348E452565/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzH9.png" alt="0683p000009LzH9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Important:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Lookup Mode"l has to be set to: Load on every row,&lt;/P&gt; 
&lt;P&gt;"Catch lookup inner join reject" must be set to true)&lt;/P&gt; 
&lt;P&gt;you need to add a global Map Key - name it KEY_CHAT_ID and connect it with the CHAT_ID from the main row (row 3)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tOracleInput configuration/query looks like that&amp;nbsp;&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="query.PNG" style="width: 573px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151483i618EAC107CAD799D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQh.png" alt="0683p000009LzQh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in the WHERE condition you can see the key you´ve defined before in the tMap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Add a tOracleCommit component after the oracleOutput. You have to commit after every inserted row&lt;/P&gt; 
&lt;P&gt;because in your JSON file the same CHAT_ID might be more than one time (maybe - I dont know your data).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Close the Oracle connection in the Post-Job, not in the oracleCommit component, deselect the check box&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="commit.PNG" style="width: 513px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzSc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157369iE200E2C34DD17B5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzSc.png" alt="0683p000009LzSc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Sep 2018 17:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270205#M48195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-08T17:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270206#M48196</link>
      <description>&lt;P&gt;Hi odisys,&lt;BR /&gt;Thanks a lot for taking out time to provide detailed example for solution, this works great. One of the most important step in all this for me is&lt;BR /&gt;" If Chat_ID exists in CHAT_MASTER = STOP THE JOB "&lt;BR /&gt;What it means is as soon as I hit any of the chat ID that is already existing in the chat_master table entire job should be stopped/killed. In the example you provided it is continuing the job by insert the ones that are not present and excluding the ones are already present. Can you please help to understand how can I get this condition to work " If Chat_ID exists in CHAT_MASTER = STOP THE JOB "&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270206#M48196</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-09-10T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270207#M48197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for&amp;nbsp;your advice and help. I am quite new to Talend and have never used any of those components and not sure what to do.&amp;nbsp;Option 1 you provided seems to be the most suitable since for me it's important that&amp;nbsp;I should be able to stop/kill job as soon as I hit the condition " If chat_id already exists stop the job". I will try to understand and learn about the components you mentioned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270207#M48197</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-09-10T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270208#M48198</link>
      <description>&lt;P&gt;hi gr44,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;just that i get it right.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;lets say you have 200 different chats (CHAT_IDs) in your JSON.&lt;/P&gt; 
&lt;P&gt;Lets also say the first 100 are not yet in the CHAT_MASTER table.&lt;/P&gt; 
&lt;P&gt;Number 101 is.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you want to&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;write the first 100 records into the database and exit the job when reaching the 101st?&amp;nbsp; &amp;nbsp;OR&lt;/LI&gt; 
 &lt;LI&gt;you do not want any of the records to be written into the database?&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;If it´s the first variant: what if just&amp;nbsp; record 101 is already in the database but 102 -200 are not (as 1 - 100 are not). If you exit the job at 101 then 102 - 200 will not be written. Probably your use-case makes sense but it´s a bit different to understand for me &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;best regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 16:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270208#M48198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-11T16:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270209#M48199</link>
      <description>&lt;P&gt;Hi Odisys,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to&amp;nbsp;&lt;SPAN&gt;write the first 100 records into the database and exit the job when reaching the 101st.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;&lt;FONT size="2"&gt;"If it´s the first variant: what if just&amp;nbsp; record 101 is already in the database but 102 -200 are not (as 1 - 100 are not). If you exit the job at 101 then 102 - 200 will not be written. Probably your use-case makes sense but it´s a bit different to understand for me"&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="3" color="#333333"&gt;You point is completely&amp;nbsp;valid and I was bit concerned about this, however the JSON&amp;nbsp;output is&amp;nbsp;always sorted by date. Let's say there are 500 records, I have already successful inserted 400 records. The first 100&amp;nbsp;record from the JSON output are the new ones that are not in my tables and 101 onward are already in my table.&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="3" color="#333333"&gt;So&amp;nbsp;in this scenario it wouldn't be an issue. &lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="3" color="#333333"&gt;However in a scenario where JSON output was randomly sorted then my approach wouldn't work&amp;nbsp;and what you mentioned&amp;nbsp;is correct and would become an issue.&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="3" color="#333333"&gt;Why I want to exit as soon as I hit any Chat_ID already exist and not continue&amp;nbsp;:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt; 
&lt;UL&gt; 
 &lt;LI&gt;&lt;FONT size="3" color="#333333"&gt;Reason mentioned above&lt;/FONT&gt;&lt;/LI&gt; 
 &lt;LI&gt;&lt;FONT size="3" color="#333333"&gt;There are alternative ways to get only required data based on Date and other&amp;nbsp;parameters but the REST API&amp;nbsp; I have have very limited&amp;nbsp;options and is kind of inefficiently designed to get data out. Only one URL gives me data in my desired format rest all others are different formats and missing data field. Hence this kind of work around.&lt;/FONT&gt;&lt;/LI&gt; 
&lt;/UL&gt; 
&lt;P&gt;&lt;FONT size="3" color="#333333"&gt;Hope that clarifies somewhat &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&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;</description>
      <pubDate>Thu, 13 Sep 2018 08:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270209#M48199</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-09-13T08:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270210#M48200</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LOQnAAO"&gt;@gr44&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Thanks for&amp;nbsp;your advice and help. I am quite new to Talend and have never used any of those components and not sure what to do.&amp;nbsp;Option 1 you provided seems to be the most suitable since for me it's important that&amp;nbsp;I should be able to stop/kill job as soon as I hit the condition " If chat_id already exists stop the job". I will try to understand and learn about the components you mentioned.&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;Hi!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;it is similar with example from&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmmAAG"&gt;@odisys&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;same idea - use CHAT_ID from request for query filtered data from database and than JOIN in tMap&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 09:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270210#M48200</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-09-13T09:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: check incoming data from JSON before inserting into database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270211#M48201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOQnAAO"&gt;@gr44&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;OK i got it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Possible solution - I dont have my private notebook here where i created the screenshot from posting before, so i have to explain it by words.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Add a tDie component to the job.&lt;/P&gt; 
&lt;P&gt;Connect a second output row from tMap to tDie - name it stop/exit or something else.&lt;/P&gt; 
&lt;P&gt;Inside the tMap change the join model on the left side to Left outer join.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On the right side - in output update&lt;/P&gt; 
&lt;P&gt;Click the Filter symbol - it should be the arrow pointing to the right, just hoover the mouse over the buttons&lt;/P&gt; 
&lt;P&gt;Enter -&amp;gt;&lt;/P&gt; 
&lt;P&gt;Relational.ISNULL(row4.CHAT_ID)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On the right side - in output stop (or how you named it)&lt;/P&gt; 
&lt;P&gt;Click the Filter symbol&lt;/P&gt; 
&lt;P&gt;Enter -&amp;gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;!&lt;/STRONG&gt;Relational.ISNULL(row4.CHAT_ID)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would also rename the output "update" to "insert" to have a better/clearer understanding what the jobparts is doing.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;best regards, there might be typos in my posting but i guess you get the idea&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>Thu, 13 Sep 2018 09:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-incoming-data-from-JSON-before-inserting-into-database/m-p/2270211#M48201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-13T09:18:36Z</dc:date>
    </item>
  </channel>
</rss>

