<?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: [resolved] how to control commit or rollback in line level in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217985#M13374</link>
    <description>the sceenshot</description>
    <pubDate>Fri, 15 Apr 2011 09:00:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-15T09:00:23Z</dc:date>
    <item>
      <title>[resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217982#M13371</link>
      <description>Hi, &lt;BR /&gt;I want to do something normal like insert two outputs of a tMap into two differents tables, but I want to control commit or rollback for every line of the file(if there is no reject for both the two tables, I commit, if not, rollback ), not at the end of all lines. &lt;BR /&gt;Is this possible? If yes, I should based on which condition to know if there is no rejects for both two tables?&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Sat, 16 Nov 2024 12:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217982#M13371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217983#M13372</link>
      <description>sure. use an iterate link to process one row at a time.&lt;BR /&gt;so,&lt;BR /&gt;tFileInputDelimited--row--&amp;gt;tFlowToIterate---iterate---&amp;gt;tFixedFlowInput---row-&amp;gt;tMap&lt;BR /&gt;in the tFixedFlowInput, retireve the column values that the tFlowToIterate stores from the globalMap. so if you have a column "some_data" in the row1 input to the tFlowToIterate, it will be in the global map with the key "row1.some_data". The tFixedFlowInput will (by default) output one row per iteration, and feed it to the rest of your job.</description>
      <pubDate>Fri, 15 Apr 2011 01:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217983#M13372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T01:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217984#M13373</link>
      <description>Thanks a lot for your help.&lt;BR /&gt;But I still have a question, if I do something like this (see shotscreen), what should be the if conditions?&lt;BR /&gt;I tried the conditions:&lt;BR /&gt;for commit:&lt;BR /&gt;(Integer)globalMap.get("tMSSqlOutput_1_NB_LINE_REJECTED")&amp;lt;=0 &amp;amp;&amp;amp; &lt;BR /&gt;(Integer)globalMap.get("tMSSqlOutput_2_NB_LINE_REJECTED")&amp;lt;=0&lt;BR /&gt;for rollback&lt;BR /&gt;(Integer)globalMap.get("tMSSqlOutput_1_NB_LINE_REJECTED")&amp;gt;0 ||&lt;BR /&gt;(Integer)globalMap.get("tMSSqlOutput_2_NB_LINE_REJECTED")&amp;gt;0&lt;BR /&gt;But it does not work.</description>
      <pubDate>Fri, 15 Apr 2011 08:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217984#M13373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217985#M13374</link>
      <description>the sceenshot</description>
      <pubDate>Fri, 15 Apr 2011 09:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217985#M13374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T09:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217986#M13375</link>
      <description>Hi
&lt;BR /&gt;As John said, iterate each row and pass each row to child job, the job design should be:
&lt;BR /&gt;parent job:
&lt;BR /&gt;tFileInputDelimited--main--tFlowToIterate--tRunJob_1
&lt;BR /&gt;child job:
&lt;BR /&gt;tMssqlConnection
&lt;BR /&gt; |
&lt;BR /&gt;onsubjobok
&lt;BR /&gt; |
&lt;BR /&gt;tFixedFlowInput--main--tMap---main--tMssqloutput_1
&lt;BR /&gt; ---main--tMssqlOutput_2
&lt;BR /&gt; ---onsubjobok---tMssqlcommit
&lt;BR /&gt; ---onsubjoberror--tMssqlRollback.
&lt;BR /&gt;On tRunJob_1: call the child job and pass each row to child job, uncheck the box 'die on error'
&lt;BR /&gt;on tMssqloutput_1 and tMssqloutput_2: check the box 'die on error'
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Apr 2011 09:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217986#M13375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217987#M13376</link>
      <description>Thanks so much. 
&lt;BR /&gt;I have a last question, in the parent job in tFlowToIterate I store a value into the globalMap, and in the child job I can't retrive it in the tFixedFlowInput. I suppose that's because the parent job and child job don't share the same globalMap. So how can I get the value in the child job? I checked "transmit whole context" in tRunJob.</description>
      <pubDate>Fri, 15 Apr 2011 10:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217987#M13376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217988#M13377</link>
      <description>Hi 
&lt;BR /&gt;The globalMap is only available in the job itself, to pass a row to child job, you have to use context variables. I show an demo job in topic: 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/t5/Design-and-Development/Passing-context-parameters-in-a-tRunJob/td-p/66305" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Passing-context-parameters-in-a-tRunJob/td-p/66305&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Apr 2011 10:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217988#M13377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217989#M13378</link>
      <description>Yes it works.&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Fri, 15 Apr 2011 13:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217989#M13378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] how to control commit or rollback in line level</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217990#M13379</link>
      <description>Hi
&lt;BR /&gt;Thanks for you feedback, I am glad to see that you get it works now!
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Apr 2011 16:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-how-to-control-commit-or-rollback-in-line-level/m-p/2217990#M13379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-15T16:36:32Z</dc:date>
    </item>
  </channel>
</rss>

