<?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: Execute Child Job from Parent Job (Job order issue) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265091#M44737</link>
    <description>As per the error your table is not created for the which you're trying to do next operation.</description>
    <pubDate>Tue, 24 Mar 2020 16:21:01 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-03-24T16:21:01Z</dc:date>
    <item>
      <title>Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265086#M44732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have two jobs that 1) copy tables to output database and 2) inject PK constraint to output database.&lt;/P&gt; 
&lt;P&gt;I want to run the whole parent job (copy DB) and then run child job (inject PK constraint to DB)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With the current job design,&amp;nbsp;the child jobs (PK constraint injection) runs immediately after the first table is created in the parent job.&lt;/P&gt; 
&lt;P&gt;Without all the corresponding tables created in advance, the job freezes.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS. Initially I wanted to triggered tRunJob component with OnSubJobOk, but there's only OnComponentOk.&lt;/P&gt; 
&lt;P&gt;PS2. When executed separately, both job works fine. Also it works fine when I first tested it with a DB with two tables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to fixed this? Jobs file attached&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Parent Job&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runjob1.png" style="width: 848px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9rQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128945iD248324FB8D289CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9rQ.png" alt="0683p000009M9rQ.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;Child Job&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runjob2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Rf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128762i465369105CC45DC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Rf.png" alt="0683p000009M9Rf.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Error Log&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#000080"&gt;Starting job Migration_DB_Parent_Job at 19:05 24/03/2020.&lt;/FONT&gt;
[statistics] connecting to socket on port 3864
[statistics] connected
&lt;U&gt;&lt;STRONG&gt;Table Name = DOM_AIR_MIN_PRICELIST&lt;/STRONG&gt;&lt;/U&gt;
dbo.DOM_AIR_MIN_PRICELIST|Table|Primary key|PK_DOM_AIR_MIN_PRICELIST|start_point_cd, end_point_cd, airline_cd, tour_kind, yyyymm
dbo.DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS|Table|Primary key|PK_DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS|yyyymm, mem_id, tour_id
dbo.DOM_AIR_SEARCH_ONEWAY_TICKETS|Table|Primary key|PK_DOM_AIR_SEARCH_ONEWAY_TICKETS|mem_id, tour_id
dbo.DOM_AIR_SEARCH_ROUNDTRIP_TICKETS|Table|Primary key|PK_DOM_AIR_SEARCH_ROUNDTRIP_TICKETS|mem_id, tour_id
dbo.DOM_AIRLINE|Table|Primary key|PK_DOM_AIRLINE|airline_cd
dbo.premium_bid_for_dair|Table|Primary key|PK_premium_bid_for_dair|id
dbo.premium_entry_mem|Table|Primary key|PK_premium_entry_mem|mem_id, product_type
dbo.tbl_site_mem|Table|Primary key|PK_tbl_site_mem|site_id, mem_id
dbo.tbl_site_mem_agent|Table|Primary key|PK_tbl_site_mem_agent|site_id, mem_id
dbo.DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS|ALTER TABLE dbo.DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS ADD CONSTRAINT PK_DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS PRIMARY KEY (yyyymm, mem_id, tour_id);
&lt;U&gt;&lt;STRONG&gt;Table Name = dbo.DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS&lt;/STRONG&gt;&lt;/U&gt; 
 AND the Query is = ALTER TABLE dbo.DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS ADD CONSTRAINT PK_DOM_AIR_MONTHLY_SEARCH_ONEWAY_TICKETS PRIMARY KEY (yyyymm, mem_id, tour_id);


&lt;FONT color="#000080"&gt;Job Migration_DB_Parent_Job ended at 19:06 24/03/2020. [Exit code  = 1]&lt;/FONT&gt;
&lt;FONT color="#800000"&gt;Table 'dbo.dom_air_monthly_search_oneway_tickets' doesn't existTable 'dbo.tbl_site_mem' doesn't existTable 'dbo.dom_tour_for_da_roundtrip_search' doesn't existTable 'dbo.dom_air_monthly_search_roundtrip_tickets' doesn't existTable 'dbo.dom_air_search_oneway_tickets' doesn't existTable 'dbo.premium_bid_for_dair' doesn't existTable 'dbo.tbl_site_mem_agent' doesn't existTable 'dbo.dom_air_pl_monthly' doesn't existTable 'dbo.dom_airline0' doesn't exist
[ERROR]: local_test.primary_key_0_1.Primary_Key - tDBRow_1 - Table 'dbo.dom_air_monthly_search_oneway_tickets' doesn't exist&lt;/FONT&gt;
dbo.tbl_site_mem|ALTER TABLE dbo.tbl_site_mem ADD CONSTRAINT PK_tbl_site_mem PRIMARY KEY (site_id, mem_id);
Table Name = dbo.tbl_site_mem 
 AND the Query is = ALTER TABLE dbo.tbl_site_mem ADD CONSTRAINT PK_tbl_site_mem PRIMARY KEY (site_id, mem_id);

&lt;FONT color="#800000"&gt;[ERROR]: local_test.primary_key_0_1.Primary_Key - tDBRow_1 - Table 'dbo.tbl_site_mem' doesn't exist&lt;/FONT&gt;
dbo.DOM_TOUR_FOR_DA_ROUNDTRIP_SEARCH|ALTER TABLE dbo.DOM_TOUR_FOR_DA_ROUNDTRIP_SEARCH ADD CONSTRAINT PK_DOM_TOUR_FOR_DA_ROUNDTRIP_SEARCH PRIMARY KEY (mem_id, tour_id, money_start_date, money_end_date);
Table Name = dbo.DOM_TOUR_FOR_DA_ROUNDTRIP_SEARCH 
 AND the Query is = ALTER TABLE dbo.DOM_TOUR_FOR_DA_ROUNDTRIP_SEARCH ADD CONSTRAINT PK_DOM_TOUR_FOR_DA_ROUNDTRIP_SEARCH PRIMARY KEY (mem_id, tour_id, money_start_date, money_end_date);

&lt;FONT color="#800000"&gt;[ERROR]: local_test.primary_key_0_1.Primary_Key - tDBRow_1 - Table 'dbo.dom_tour_for_da_roundtrip_search' doesn't exist&lt;/FONT&gt;
dbo.DOM_AIR_MONTHLY_SEARCH_ROUNDTRIP_TICKETS|ALTER TABLE dbo.DOM_AIR_MONTHLY_SEARCH_ROUNDTRIP_TICKETS ADD CONSTRAINT PK_WORK_DOM_AIR_MONTHLY_SEARCH_ROUNDTRIP_TICKETS PRIMARY KEY (yyyymm, mem_id, tour_id);
Table Name = dbo.DOM_AIR_MONTHLY_SEARCH_ROUNDTRIP_TICKETS 
 AND the Query is = ALTER TABLE dbo.DOM_AIR_MONTHLY_SEARCH_ROUNDTRIP_TICKETS ADD CONSTRAINT PK_WORK_DOM_AIR_MONTHLY_SEARCH_ROUNDTRIP_TICKETS PRIMARY KEY (yyyymm, mem_id, tour_id);
&lt;BR /&gt;......&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However when I change target db to the one with two tables, it worked,, though there are error message.&lt;/P&gt; 
&lt;P&gt;Here's the log&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[statistics] connected
Table Name = tbl_inq
traveltour.tbl_inq|Table|Primary key|PK_tbl_inq|mem_id, inq_id
traveltour.tbl_mem|Table|Primary key|PK_tbl_mem|mem_id
traveltour.tbl_mem|ALTER TABLE traveltour.tbl_mem ADD CONSTRAINT PK_tbl_mem PRIMARY KEY (mem_id);
Table Name = traveltour.tbl_mem 
 AND the Query is = ALTER TABLE traveltour.tbl_mem ADD CONSTRAINT PK_tbl_mem PRIMARY KEY (mem_id);

&lt;FONT color="#800000"&gt;Table 'traveltour.tbl_mem' doesn't existMultiple primary key defined
[ERROR]: local_test.primary_key_0_1.Primary_Key - tDBRow_1 - Table 'traveltour.tbl_mem' doesn't exist&lt;/FONT&gt;
traveltour.tbl_inq|ALTER TABLE traveltour.tbl_inq ADD CONSTRAINT PK_tbl_inq PRIMARY KEY (mem_id, inq_id);
Table Name = traveltour.tbl_inq 
 AND the Query is = ALTER TABLE traveltour.tbl_inq ADD CONSTRAINT PK_tbl_inq PRIMARY KEY (mem_id, inq_id);

Table Name = tbl_mem
traveltour.tbl_inq|Table|Primary key|PK_tbl_inq|mem_id, inq_id
traveltour.tbl_mem|Table|Primary key|PK_tbl_mem|mem_id
traveltour.tbl_mem|ALTER TABLE traveltour.tbl_mem ADD CONSTRAINT PK_tbl_mem PRIMARY KEY (mem_id);
Table Name = traveltour.tbl_mem 
 AND the Query is = ALTER TABLE traveltour.tbl_mem ADD CONSTRAINT PK_tbl_mem PRIMARY KEY (mem_id);

traveltour.tbl_inq|ALTER TABLE traveltour.tbl_inq ADD CONSTRAINT PK_tbl_inq PRIMARY KEY (mem_id, inq_id);
Table Name = traveltour.tbl_inq 
 AND the Query is = ALTER TABLE traveltour.tbl_inq ADD CONSTRAINT PK_tbl_inq PRIMARY KEY (mem_id, inq_id);

&lt;FONT color="#800000"&gt;[ERROR]: local_test.primary_key_0_1.Primary_Key - tDBRow_1 - Multiple primary key defined&lt;/FONT&gt;
[statistics] disconnected&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265086#M44732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265087#M44733</link>
      <description>If you want to run the subjob using subjob OK then take on subjob OK from tdbinput.</description>
      <pubDate>Tue, 24 Mar 2020 10:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265087#M44733</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-24T10:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265088#M44734</link>
      <description>@ manodwhb&lt;BR /&gt;&lt;BR /&gt;But the thing is that I wanted get child job running after parent job is done (tables copied from tDBInput to tDBOutput). so I thought of using a trigger on tDBOutput,,,&lt;BR /&gt;since the child job will need tables in parent's job tDBOutput..&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265088#M44734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265089#M44735</link>
      <description>You can use the trigger of on subjob OK from tdbinputand connect to your child job.</description>
      <pubDate>Tue, 24 Mar 2020 13:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265089#M44735</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-24T13:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265090#M44736</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did as suggested but still the same result ....&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runjob3.png" style="width: 852px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9ra.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145299iC513FF422D76BA33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9ra.png" alt="0683p000009M9ra.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 13:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265090#M44736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265091#M44737</link>
      <description>As per the error your table is not created for the which you're trying to do next operation.</description>
      <pubDate>Tue, 24 Mar 2020 16:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265091#M44737</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-24T16:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265092#M44738</link>
      <description>&lt;P&gt;OnSubjobOk is only available on the first component of the sub job (the blue rectangle).&lt;/P&gt;
&lt;P&gt;OnComponentOk is available on every component and means you trigger at the end of the flow especially at the end for the particular component.&lt;/P&gt;
&lt;P&gt;Now it depends when you want to start your child job. Once per record or at the end of the flow. In this case why not trígger the child job just before you trigger your commit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 16:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265092#M44738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-24T16:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265093#M44739</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;
&lt;BR /&gt;What I mean is that I use subjob OK from tdbinput as suggested and it didn't work.
&lt;BR /&gt;Is there way to finish runing the whole parent job before passing the operation to child job?</description>
      <pubDate>Wed, 25 Mar 2020 01:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265093#M44739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T01:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265094#M44740</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKk8AAG"&gt;@lli&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the explanation, I was a bit confuse about subjobOK and componentOK....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried trigger child job from tDBCommit component but still the same result....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When the operation starts, the parent job create one table and then the child job started its operation (injecting PK constraint the to tables).&lt;/P&gt; 
&lt;P&gt;For simplicity, I wanted the parent job to finish running its operation before starting the child job.&lt;/P&gt; 
&lt;P&gt;Do you know how I could fix this?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I attached the jobs file for reference&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runjob4.png" style="width: 843px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Sq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139403iE68D5B9F59EAB846/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Sq.png" alt="0683p000009M9Sq.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/0683p000009LyCC"&gt;Migration_DB.zip&lt;/A&gt;</description>
      <pubDate>Wed, 25 Mar 2020 01:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265094#M44740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T01:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265095#M44741</link>
      <description>Are you passing the same table to child job to create primary keys?</description>
      <pubDate>Wed, 25 Mar 2020 02:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265095#M44741</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-25T02:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265096#M44742</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;
&lt;BR /&gt;Yes, that's why I need parent job to finish its operation before starting the child job.</description>
      <pubDate>Wed, 25 Mar 2020 02:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265096#M44742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T02:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265097#M44743</link>
      <description>How are you passing the table name to child job which is created and loaded in parent job.</description>
      <pubDate>Wed, 25 Mar 2020 02:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265097#M44743</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-25T02:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265098#M44744</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't need table names in child job so I didn't pass the table name to child job as you can see in the child job's tDBInput component below,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;**In the child job, tDBConnection_1 is the target db(MSSQL) for loading PK constraint and tDBConnection_2(MySQL) is the output database for injecting PK constraint.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Child Job&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runjob2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Rf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128762i465369105CC45DC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Rf.png" alt="0683p000009M9Rf.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;The parent job copy tables from target database (MSSQL) to the output database(MySQL).&lt;/P&gt; 
&lt;P&gt;Then the child job read the target database(MSSQL)'s constraint and inject it into the output database(MySQL).&lt;/P&gt; 
&lt;P&gt;So basically I need the parent job to finish copying the tables(MSSQL-&amp;gt;MySQL) before starting the child job.&lt;/P&gt; 
&lt;P&gt;(As the child job couldn't operate with a blank database).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That's how it work when operating the parent and child job separately,, would appreciate if you could guide me how I can make it work when starting the operation from parent job.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 02:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265098#M44744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T02:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265099#M44745</link>
      <description>As per my understanding,you need to pass the table to child job ,which is created as part of parent job. Then you take constrains based on that and it will create constrains.that's how you should create your flow.otherwise if your doing you will see table or view does not exits. Understand this that as part of parent job you created table a and loaded data.but in child job you are creating constrains for table b then it will throw the same kind of error. So your job design should be create table a and create constrains for the same table you will not get this error.</description>
      <pubDate>Wed, 25 Mar 2020 03:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265099#M44745</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-25T03:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265100#M44746</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here I tried to pass the tables from parent job to child job, then run parent job,&lt;/P&gt; 
&lt;P&gt;but still the result is the same&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Parent job's result&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context00.png" style="width: 692px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9W4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147693iF11718B8FB2515B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9W4.png" alt="0683p000009M9W4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Parent's job context param&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context01.png" style="width: 639px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9V7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130937i7FC49220DE110ECF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9V7.png" alt="0683p000009M9V7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Child's job context&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context02.png" style="width: 800px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Xk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145898iCFE8FF5ED0FAEFD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Xk.png" alt="0683p000009M9Xk.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;Calling using the context in tDBRow Component (since DBInput doesn't need the parent's job output)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context03.png" style="width: 817px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9SH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131733i24D58D1B9A092E3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9SH.png" alt="0683p000009M9SH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If this is not the right way, please let me know...&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 04:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265100#M44746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T04:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265101#M44747</link>
      <description>You need to use the context variable of Table name in tdbinput component and for the same table you need to create constrains.</description>
      <pubDate>Wed, 25 Mar 2020 05:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265101#M44747</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-25T05:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265102#M44748</link>
      <description>&lt;P&gt;&lt;A&gt;@manodwhb&lt;/A&gt;&lt;/P&gt; 
  &lt;P&gt;Here I use context variable on&amp;nbsp;&lt;SPAN&gt;Table name in tDBInput component and also in the output tDBRow component.&lt;/SPAN&gt;&lt;/P&gt; 
  &lt;P&gt;&lt;SPAN&gt;But still the result is the same. . .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;&lt;SPAN&gt;Are there any ways to fixed this?&lt;/SPAN&gt;&lt;/P&gt; 
  &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
  &lt;P&gt;&lt;SPAN&gt;Run Log&lt;/SPAN&gt;&lt;/P&gt; 
  &lt;DIV&gt; 
   &lt;A&gt;Spoiler&lt;/A&gt; (Highlight to read) 
   &lt;DIV&gt; 
    &lt;DIV&gt;  &amp;lt;/ &amp;lt;
    &lt;/DIV&gt;
   &lt;/DIV&gt;
  &lt;/DIV&gt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md8z"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Md8z"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 25 Mar 2020 05:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265102#M44748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T05:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265103#M44749</link>
      <description>somehow you are missing something  in child job.</description>
      <pubDate>Wed, 25 Mar 2020 05:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265103#M44749</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-03-25T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Child Job from Parent Job (Job order issue)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265104#M44750</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;I tried trigger tSubJobOk from tRunJob to tDBInput and it partially work.&lt;/P&gt; 
&lt;P&gt;But somehow, the last table's didn't have PK constraint injected. (in the output database, there's a table and its data, but no PK constraint)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I check the log, it seems like the tables are created and its PK are loaded, but PK constraint are not inserted into the table.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Run Log&lt;/P&gt; 
&lt;PRE&gt;dbo.tbl_site_mem|ALTER TABLE dbo.tbl_site_mem ADD CONSTRAINT PK_tbl_site_mem PRIMARY KEY (site_id, mem_id);
Table Name = dbo.tbl_site_mem 
 AND the Query is = ALTER TABLE dbo.tbl_site_mem ADD CONSTRAINT PK_tbl_site_mem PRIMARY KEY (site_id, mem_id);&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the other job, I have experience a similar problem where the last table's data is not inserted to the output database.&lt;/P&gt; 
&lt;P&gt;At that time, I changed tDBOutput repository from using existing&amp;nbsp;tDBConnection to manual setting and it worked.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;So I tried to do the same for tDBRow's, but it didn't work, still the last table didn't have its PK constraint inserted.&lt;/P&gt; 
&lt;P&gt;And also below I also tried connecting tDBConnection with tDBCommit using OnComponentOK, but still no difference.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;do you have any ideas?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbcommit.png" style="width: 830px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9TZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147563i001564BC08862E7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9TZ.png" alt="0683p000009M9TZ.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>Wed, 25 Mar 2020 07:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-Child-Job-from-Parent-Job-Job-order-issue/m-p/2265104#M44750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-25T07:33:45Z</dc:date>
    </item>
  </channel>
</rss>

