<?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: Last Table's Data is not migrated (tDBOutput) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248844#M33570</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm pretty sure the job is being called. It is just that the inputs(table name) the child job needs are not being passed here.&lt;/P&gt; 
&lt;P&gt;You will not be able to access tableList's global variable in the child job and hence they must be passed as context variables.&lt;/P&gt; 
&lt;P&gt;Create a context variable in the child job first say 'tableName' and then pass the value for this in the tRunJob of the parent job under 'context param'. When you try to add entries, the context variables in the child automically comes up in the drop down and assign value for it using the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And then update the tDbInput component in the child job to use the context variable rather than the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With this design, for very iteration, a different table name is passed to the child.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know if it doesnt work&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 10:54:05 GMT</pubDate>
    <dc:creator>nivedhitha</dc:creator>
    <dc:date>2020-03-16T10:54:05Z</dc:date>
    <item>
      <title>Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248841#M33567</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Using the following job and settings, I was able to dynamically migrate a whole database from MSSQL to MySQL. However,&amp;nbsp;&lt;/SPAN&gt;I noticed that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;last table&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;'s&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;data&lt;/U&gt;&amp;nbsp;is blank&amp;nbsp;&lt;/STRONG&gt;(only the table structure and column is migrated).&lt;/P&gt; 
&lt;P&gt;**The table and its schema is migrated, but no data inside the table. // I'm using a dynamic schema.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Job Design and DBInput&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dbinput" style="width: 493px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9i4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136778i2683F56892125BDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9i4.png" alt="0683p000009M9i4.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dbinput&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;DBOutput&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DBOutput" style="width: 516px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9iE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152787i6B2A9C56A3230C81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9iE.png" alt="0683p000009M9iE.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DBOutput&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When I tried to logged each component, I found that the last table's data is loaded and pass on from tDBInput to tMap and also from tMap to tDBOutput, as the last table's data showed up in the log.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, when I check the actual output database, &lt;STRONG&gt;only the last table&lt;/STRONG&gt; contains no data at all.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output DB's 1st Table - Have data&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbl2.png" style="width: 505px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9WY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131452iE5A32D5DA5BECBC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9WY.png" alt="0683p000009M9WY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2nd (last) table - No Data&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tbl1.png" style="width: 510px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Yo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135880iF924EDA745362405/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Yo.png" alt="0683p000009M9Yo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248841#M33567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248842#M33568</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have 2 suggestions for you&lt;/P&gt; 
&lt;P&gt;1. Can you try connecting to tDbInput_1 from tJava_1 on 'Iterate' link and run the job again?&lt;/P&gt; 
&lt;P&gt;Now that tDbInput is connected on 'On Component Ok', it is triggered only after all the iteration are done. But you want tne tDbInput subjob to also be iterated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If this solution doesnt work then try the 2nd option&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. Create a subjob and move the tDbInput subjob to the child job and call this on 'Iterate' link.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know if neither of these work&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 20:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248842#M33568</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-13T20:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248843#M33569</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your answer.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;1. Can you try connecting to tDbInput_1 from tJava_1 on 'Iterate' link and run the job again?&lt;/PRE&gt; 
&lt;P&gt;I tried that but the following error comes up from tDBInput_1.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;"A&amp;nbsp;component that is not a subprocess&amp;nbsp;start&amp;nbsp;cant have&amp;nbsp;link on&amp;nbsp;component&amp;nbsp;link."&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;so I tried the 2nd suggestion.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2. Create a subjob and move the tDbInput subjob to the child job and call this on 'Iterate' link.&lt;/PRE&gt; 
&lt;P&gt;Here's is the job design for the parent and child job.&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="Parent-job" style="width: 548px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9j2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150139iA3CD52C88D2C591C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9j2.png" alt="0683p000009M9j2.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Parent-job&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;test04_1(Child-job)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Child-job" style="width: 580px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9j7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131975iCB817236ED47C4EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9j7.png" alt="0683p000009M9j7.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Child-job&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;It seems that the child job is not called with the current job design.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you help point up what I can improve?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 07:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248843#M33569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T07:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248844#M33570</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm pretty sure the job is being called. It is just that the inputs(table name) the child job needs are not being passed here.&lt;/P&gt; 
&lt;P&gt;You will not be able to access tableList's global variable in the child job and hence they must be passed as context variables.&lt;/P&gt; 
&lt;P&gt;Create a context variable in the child job first say 'tableName' and then pass the value for this in the tRunJob of the parent job under 'context param'. When you try to add entries, the context variables in the child automically comes up in the drop down and assign value for it using the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And then update the tDbInput component in the child job to use the context variable rather than the global variable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With this design, for very iteration, a different table name is passed to the child.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me know if it doesnt work&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248844#M33570</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-16T10:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248845#M33571</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for getting back to me.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I see what you mean, but I'm not confident about context variables, so please let me confirm my understanding here.&lt;/P&gt; 
&lt;P&gt;I tried to fixed my job design as in the screenshot below and I have an error message as well.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1)&amp;nbsp;&lt;EM&gt;Create a context variable in the child job first say 'tableName'&amp;nbsp;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Child's Job&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="child&amp;amp;#39;s Job context" style="width: 606px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9jM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132175i001B6119F7692306/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9jM.png" alt="0683p000009M9jM.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;child's Job context&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I bet it's this one, but I'm not sure how I should set the value.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Is this the right way?? (the actual one, I left the value blank)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;or should I set this one too?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="context" style="width: 584px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9jR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148439i74CEC96BD639FC55/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9jR.png" alt="0683p000009M9jR.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;context&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp;&lt;EM&gt;then pass the value for this in 'tRunJob' of the parent job under 'context param'.&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;3)&amp;nbsp;When you try to add entries, the context variables in the child automatically comes up in the drop down and assign value for it using the global variable.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Parent's Job&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Parent Job&amp;amp;#39;s Context Params" style="width: 581px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9dt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148935i76BD11C18798CB6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9dt.png" alt="0683p000009M9dt.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Parent Job's Context Params&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here I select 'tableName' from the dropdown list and use global variable as the value.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;&amp;nbsp;Update the tDbInput component in the child job to use the context variable rather than the global variable.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;lt;child's Job&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tDBInput's Table Name:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;((String)globalMap.get("tDBTableList_1_CURRENT_TABLE"))&amp;nbsp; change to&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;context.tableName&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;basically, change global variable to context variable.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I tried running the job with current setting and here's the error message.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
	org.talend.job cannot be resolved to a type
	org.talend.designer cannot be resolved to a type
	org.talend.designer.components.util.mssql.MSSqlUtilFactory cannot be resolved to a type
	org.talend.logging cannot be resolved to a type
	org.talend.job.audit.JobEventAuditLoggerFactory cannot be resolved to a type
	at local_test.test04_1_0_1.test04_1.&amp;lt;init&amp;gt;(test04_1.java:162)
	at local_test.test04_0_1.test04.tDBTableList_1Process(test04.java:1032)
	at local_test.test04_0_1.test04.runJobInTOS(test04.java:1751)
	at local_test.test04_0_1.test04.main(test04.java:1538)&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 15:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248845#M33571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248846#M33572</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are passing the value right. The value for the context variable in the child job should be empty as it get its value dynamically from the parent job.&lt;/P&gt;
&lt;P&gt;Also can you make a connection between tDbConnection_2 and tDbInput_1 in the child job? As there is no preJob component , the connection and the input components will be executed at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where are you getting the target table name from? If that is also from the table in parent job, then it has to be passed to the child job too&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 15:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248846#M33572</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-16T15:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248847#M33573</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your prompt response.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;"Also can you make a connection between tDbConnection_2 and tDbInput_1 in the child job? As there is no preJob component , the connection and the input components will be executed at the same time."&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;gt; For the connection you mentioned here, is 'OnSubJobOk' good for this?&lt;/P&gt; 
&lt;P&gt;or should I add a preJob component? I had it in the parent job already, so I'm not sure if I should use it again here.&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="Child Job" style="width: 550px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9jW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137366iBBA8A0AF4AE06013/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9jW.png" alt="0683p000009M9jW.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Child Job&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;"Where are you getting the target table name from? If that is also from the table in parent job, then it has to be passed to the child job too "&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;gt; You mean in the child job right? If yes, I use a context variable you mentioned in the earlier thread as a table name. If there's any changes needed please let me know.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;By the way, I set up a connection component (input&amp;amp;output) in both parent and child job, is it needed for both job? or having in it either job would work fine too?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 16:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248847#M33573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248848#M33574</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your first question, Yeah 'On Subjob Ok' should be fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt; You mean in the child job right? If yes, I use a context variable you mentioned in the earlier thread as a table name. If there's any changes needed please let me know.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;Yeah i see you using in the tDbInput component. So it is the source table. Is the table name in the tDbOutput component dynamic too? If so you will need another context variable similar to the source table and pass value for it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;gt; By the way, I set up a connection component (input&amp;amp;output) in both parent and child job, is it needed for both job? or having in it either job would work fine too?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;It doesnt matter if you create them in both the parent and the child. But there is an option to reuse the connection created in parent job in the child job.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the current design works, leave it like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have problems getting it to work, please export your job and attach it here or DM it to me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 17:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248848#M33574</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-16T17:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248849#M33575</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for getting to back to me.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;Yeah i see you using in the tDbInput component. So it is the source table. Is the table name in the tDbOutput component dynamic too? If so you will need another context variable similar to the source table and pass value for it as well.&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;gt; Yes, the table name in tDBOutput is 'context.tableName'. Can I use the same one with tDBInput??&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With the current job design, the same error still occurred.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;&lt;FONT color="#800000"&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
	org.talend.job cannot be resolved to a type
	org.talend.designer cannot be resolved to a type
	org.talend.designer.components.util.mssql.MSSqlUtilFactory cannot be resolved to a type
	org.talend.logging cannot be resolved to a type
	org.talend.job.audit.JobContextBuilder cannot be resolved to a type
	JobAuditLogger cannot be resolved to a type
	org.talend.job.audit.JobEventAuditLoggerFactory cannot be resolved to a type
	at local_test.test04_1_0_1.child_job.&amp;lt;init&amp;gt;(child_job.java:162)
	at local_test.test04_0_1.parent_job.tDBTableList_1Process(parent_job.java:1032)
	at local_test.test04_0_1.parent_job.runJobInTOS(parent_job.java:1751)
	at local_test.test04_0_1.parent_job.main(parent_job.java:1538)&lt;/FONT&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PS. DbConnection2 is actually for output, and DbConnection1 is for input. Isn't it better to connect&amp;nbsp;DbConnection1&amp;nbsp; with DBInput1? and vice versa?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I feel like there's something needed to be fixed in the child job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 17:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248849#M33575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T17:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248850#M33576</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;, if the input and output tables are the same the its fine to have one context and use it both in DbInput and DbOutput.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Its okay if one is an input connection and the other is output. You can leave the design unchanged as both the connection has to be made in order for the job to execute. That is why the connections are made before the actual processing takes place.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To see what the error could be, can you run just the child job directly? It says compilation error so it will show you the component with error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also it would be better if you can attach an exported copy of the job with all your credentials removed&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248850#M33576</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-16T18:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248851#M33577</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the error for childjob&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exception in component tDBInput_1 (test04_1)
com.microsoft.sqlserver.jdbc.SQLServerException: An object or column name is missing or empty. &lt;BR /&gt;For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. &lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
 &lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;BR /&gt;Aliases defined as "" or [] are not allowed. Change the alias to a valid name.
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:778)
	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:677)
	at local_test.test04_1_0_1.test04_1.tDBInput_1Process(test04_1.java:1523)
	at local_test.test04_1_0_1.test04_1.tDBConnection_2Process(test04_1.java:807)
	at local_test.test04_1_0_1.test04_1.tDBConnection_1Process(test04_1.java:586)
	at local_test.test04_1_0_1.test04_1.runJobInTOS(test04_1.java:2935)
	at local_test.test04_1_0_1.test04_1.main(test04_1.java:2730)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I have exported the project, please see if you can open it.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvVx"&gt;test04_1.zip&lt;/A&gt;</description>
      <pubDate>Tue, 17 Mar 2020 00:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248851#M33577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-17T00:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248852#M33578</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LQspAAG"&gt;@crotmn&lt;/A&gt;&amp;nbsp;, I tried importing your project but I'm not able to. Can you please export just this one job and not the project ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 03:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248852#M33578</guid>
      <dc:creator>nivedhitha</dc:creator>
      <dc:date>2020-03-20T03:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last Table's Data is not migrated (tDBOutput)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248853#M33579</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000003YkRbAAK"&gt;@nivedhitha&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for getting back.&lt;/P&gt; 
&lt;P&gt;Here I only export the parent and child jobs.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;***Update&lt;/P&gt; 
&lt;P&gt;I tried running the job again and found that there's no error anymore.&lt;/P&gt; 
&lt;P&gt;However, I realize that only the table and schema is imported to the output database but not the data.&lt;/P&gt; 
&lt;P&gt;Though the data shows up in the run job log. (I logged DBOutput in the childjob)&lt;/P&gt; 
&lt;P&gt;Please let me know how it goes.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks alot!!&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly44"&gt;test_parentjob.zip&lt;/A&gt;</description>
      <pubDate>Mon, 23 Mar 2020 01:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Last-Table-s-Data-is-not-migrated-tDBOutput/m-p/2248853#M33579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T01:45:43Z</dc:date>
    </item>
  </channel>
</rss>

