<?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: Setting up a generic job to load snowflake table based on Context Param values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336849#M105251</link>
    <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp; ! I would want to load both Employee and department in a single load. XML file will contain both Employee and Department information. Running subjobs based on context variable would allow only one dataset, either Employee or Department, to be loaded to Snowflake table. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried testing with the below design, but the load seem to take 13-15 minutes to complete for a 2MB XML file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i design this better?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000EZOXeAAP.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152642iA54033613B5DCBCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000EZOXeAAP.jpg" alt="0695b00000EZOXeAAP.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 13:43:13 GMT</pubDate>
    <dc:creator>vvazza10</dc:creator>
    <dc:date>2021-04-20T13:43:13Z</dc:date>
    <item>
      <title>Setting up a generic job to load snowflake table based on Context Param values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336846#M105248</link>
      <description>&lt;P&gt;Hi ! Wanted to check if there is any way to create a generic job that does the following -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Parent job that contains 2 tRunJob components - One to load Employee table and one to load Department table&lt;/LI&gt;&lt;LI&gt;tRunJob component for Employee having Context Params Employee as target table and Emp as flow param and &lt;P&gt;tRunJob component for Department having Context Params Department as target table and Dept as flow param&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Based on the context param value, corresponding flow in tXMLMap should execute and load to target snowflake table. For example, if Emp is the flow param value, Emp flow in tXMLMap should execute and Employee table in snowflake table should get executed.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise how to approach a scenario like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Parent job:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DvjgDAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156858iB6E63219B949AFDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DvjgDAAR.png" alt="0695b00000DvjgDAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Context Param values that gets passed to child job for Employee:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DvjgmAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132950i62074CD67B75BAE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DvjgmAAB.png" alt="0695b00000DvjgmAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Child job:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Dvjr6AAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128033i7534767949FAF189/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Dvjr6AAB.png" alt="0695b00000Dvjr6AAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000DvjuyAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139713iB3C8728705E99362/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000DvjuyAAB.png" alt="0695b00000DvjuyAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336846#M105248</guid>
      <dc:creator>vvazza10</dc:creator>
      <dc:date>2024-11-16T00:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a generic job to load snowflake table based on Context Param values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336847#M105249</link>
      <description>&lt;P&gt;Hi ! Could someone please help? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 12:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336847#M105249</guid>
      <dc:creator>vvazza10</dc:creator>
      <dc:date>2021-04-17T12:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a generic job to load snowflake table based on Context Param values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336848#M105250</link>
      <description>&lt;P&gt;Hi  &lt;/P&gt;&lt;P&gt;Because the employee and department table have different structure and tXMLMap don't support different output flow based on variable, so you can't create a generic job flow for different target object. As a workaround, create different subjobs, and use runIf connector to trigger the subjob based on the context variable. For example:&lt;/P&gt;&lt;P&gt;tJava--runIf1--tFileInputXML--tXMLMap--tSnowFlakeOutput(for employee)&lt;/P&gt;&lt;P&gt;       --runIf2---tFileInputXML--tXMLMap--tSnowFlakeOutput(for department )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJava:&lt;/P&gt;&lt;P&gt;if(context.tableName.equals("employee")){&lt;/P&gt;&lt;P&gt;globalMap.put("runEmployeeFlow",true);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(context.tableName.equals("department")){&lt;/P&gt;&lt;P&gt;globalMap.put("runDepartmentFlow",true);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the condition of runIf1 as:&lt;/P&gt;&lt;P&gt;(Boolean)globalMap.get("runEmployeeFlow")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the condition of runIf2 as:&lt;/P&gt;&lt;P&gt;(Boolean)globalMap.get("runDepartmentFlow")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 05:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336848#M105250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-19T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up a generic job to load snowflake table based on Context Param values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336849#M105251</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp; ! I would want to load both Employee and department in a single load. XML file will contain both Employee and Department information. Running subjobs based on context variable would allow only one dataset, either Employee or Department, to be loaded to Snowflake table. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried testing with the below design, but the load seem to take 13-15 minutes to complete for a 2MB XML file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i design this better?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000EZOXeAAP.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152642iA54033613B5DCBCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000EZOXeAAP.jpg" alt="0695b00000EZOXeAAP.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 13:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Setting-up-a-generic-job-to-load-snowflake-table-based-on/m-p/2336849#M105251</guid>
      <dc:creator>vvazza10</dc:creator>
      <dc:date>2021-04-20T13:43:13Z</dc:date>
    </item>
  </channel>
</rss>

