<?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: Parsing and storing with commit and rollback components. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292979#M66002</link>
    <description>&lt;P&gt;Hello TRF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of using file output , i am using using javaflex. In invalid output, i am setting context variable and checking it on "IF" condition. Now condition is working fine. But i am unable to send main data output to the SqlOutput. After if condition of javaflex i am getting only one row rather than entire parsed data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsJd"&gt;M_error.PNG&lt;/A&gt;</description>
    <pubDate>Thu, 01 Mar 2018 11:38:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-01T11:38:39Z</dc:date>
    <item>
      <title>Parsing and storing with commit and rollback components.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292977#M66000</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using positional parser. It iterates through the file and produces valid and invalid inputs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If any data passes the validation the job starts storing into database. But i want to wait till entire file has processed. If every line passes validation then only start saving to database and commit else revert back the changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Shashi&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 12:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292977#M66000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing and storing with commit and rollback components.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292978#M66001</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As a simple solution, replace the tPostgresqlOutput component by a tHashOutput or tFileOutputDelimited.&lt;/P&gt;&lt;P&gt;On subjob OK connect to your tFileInputDelimited, add a dummy tJava connected to a tHashInput (referencing&amp;nbsp;the previous&amp;nbsp;&lt;SPAN&gt;tHashOutput) with an "If" connector with the following condition:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;(Integer)globalMap.get("tHashOutput_1_Nb_Line") != null &amp;amp;&amp;amp;
(Integer)globalMap.get("tHashOutput_1_Nb_Line") &amp;gt; 0&lt;/PRE&gt;&lt;P&gt;If you use a&amp;nbsp;&lt;SPAN&gt;tFileOutputDelimited instead of a&amp;nbsp;tHashOutput, replace the dummy tJava by a tFileRowCount.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At the end, depending on the result condition, get the input and go to the database (or not).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 12:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292978#M66001</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-27T12:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing and storing with commit and rollback components.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292979#M66002</link>
      <description>&lt;P&gt;Hello TRF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of using file output , i am using using javaflex. In invalid output, i am setting context variable and checking it on "IF" condition. Now condition is working fine. But i am unable to send main data output to the SqlOutput. After if condition of javaflex i am getting only one row rather than entire parsed data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsJd"&gt;M_error.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-and-storing-with-commit-and-rollback-components/m-p/2292979#M66002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T11:38:39Z</dc:date>
    </item>
  </channel>
</rss>

