<?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: Parameterize 'Target table schema' setting in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1933092#M2745</link>
    <description>&lt;P&gt;Please try to describe better what you are trying to accomplish. As Michael indicates, the attached screentshot does not seem to be connected to the problem on hand. fwiw - I find screeenshots terrible in general, vastly inferior to just some text copy &amp;amp; paste.&lt;/P&gt;
&lt;P&gt;Is this perhaps a question in the process of moving multiple tasks from a lower (DEV) environment to the next (QA or PROD) and needed different on the targets? Or cloning tasks with with different schemas in the same DB?&lt;/P&gt;
&lt;P&gt;Anyway the default target schema&amp;nbsp; has a unique name in the exported task JSON and can be changed by any&amp;nbsp; editing tool (powershell, perl, python, sed, awk,....) without extensive parsing. Just look for&amp;nbsp;default_schema nd probably also control_schema and replace the quoted string after the colon on that line. See sample JSON snippet. Your choice whether to do this task by task or whether you can do an export 'all' and replace the those lines for all tasks in the export.&amp;nbsp; Of course this is how it works today, and Qlik has the right to change the syntax in the future in which case you need to change the script but that's very unlikely.&lt;/P&gt;
&lt;P&gt;Export, edit, Import! - With a bit more programming you can do it all 'in the air' using the the Enterprise Manager API's and those JSON's never need to touch the directories, just string streams in memory.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	"task_settings":	{
		"source_settings":	{
		},
		"target_settings":	{
			"default_schema":	"HEIN",
			"control_schema":	"HEIN",
			"queue_settings":	{
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 13:42:45 GMT</pubDate>
    <dc:creator>Heinvandenheuvel</dc:creator>
    <dc:date>2022-05-19T13:42:45Z</dc:date>
    <item>
      <title>Parameterize 'Target table schema' setting</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1932078#M2716</link>
      <description>&lt;P&gt;I wanted to programmatically change the 'Target table schema'. Is this possible in Qlik Replicate? Please let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 23:55:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1932078#M2716</guid>
      <dc:creator>IS_qlik</dc:creator>
      <dc:date>2022-05-17T23:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterize 'Target table schema' setting</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1932082#M2717</link>
      <description>&lt;P&gt;Hi IS_qlik,&lt;/P&gt;
&lt;P&gt;I am not sure how the screen shot relates to this question.&lt;/P&gt;
&lt;P&gt;I think that there may be a way from a script to make restAPI calls to do this. It would certainly need to be tested out.&amp;nbsp;This is just a very preliminary thought on an approach that may work.&lt;BR /&gt;&lt;BR /&gt;1) Maybe using PowerShell or some other scripting language do the following steps.&lt;BR /&gt;2) Stop the task&lt;BR /&gt;3) Export the task json&lt;BR /&gt;4) Parse the json and change the schema name&lt;BR /&gt;5) Import the json&lt;BR /&gt;6) Resume / run the task&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 00:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1932082#M2717</guid>
      <dc:creator>Michael_Litz</dc:creator>
      <dc:date>2022-05-18T00:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterize 'Target table schema' setting</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1933092#M2745</link>
      <description>&lt;P&gt;Please try to describe better what you are trying to accomplish. As Michael indicates, the attached screentshot does not seem to be connected to the problem on hand. fwiw - I find screeenshots terrible in general, vastly inferior to just some text copy &amp;amp; paste.&lt;/P&gt;
&lt;P&gt;Is this perhaps a question in the process of moving multiple tasks from a lower (DEV) environment to the next (QA or PROD) and needed different on the targets? Or cloning tasks with with different schemas in the same DB?&lt;/P&gt;
&lt;P&gt;Anyway the default target schema&amp;nbsp; has a unique name in the exported task JSON and can be changed by any&amp;nbsp; editing tool (powershell, perl, python, sed, awk,....) without extensive parsing. Just look for&amp;nbsp;default_schema nd probably also control_schema and replace the quoted string after the colon on that line. See sample JSON snippet. Your choice whether to do this task by task or whether you can do an export 'all' and replace the those lines for all tasks in the export.&amp;nbsp; Of course this is how it works today, and Qlik has the right to change the syntax in the future in which case you need to change the script but that's very unlikely.&lt;/P&gt;
&lt;P&gt;Export, edit, Import! - With a bit more programming you can do it all 'in the air' using the the Enterprise Manager API's and those JSON's never need to touch the directories, just string streams in memory.&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	"task_settings":	{
		"source_settings":	{
		},
		"target_settings":	{
			"default_schema":	"HEIN",
			"control_schema":	"HEIN",
			"queue_settings":	{
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 13:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1933092#M2745</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-05-19T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterize 'Target table schema' setting</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1937989#M2876</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry for not specifying my question.&amp;nbsp; For example, if I want to move multiple tables to Google Cloud Storage target and I want to&amp;nbsp;&lt;SPAN&gt;'Target table schema' setting to have certain parameterized name such as '#SQLSERVERNAME#' or '{SERVER_NAME}' so that the folders created in GCP show up as {#SQLSERVERNAME#}.{TARGET_TABLE_NAME}. Is this possible in Qlik Replicate UI or through any automated python script?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 20:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1937989#M2876</guid>
      <dc:creator>IS_qlik</dc:creator>
      <dc:date>2022-05-31T20:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterize 'Target table schema' setting</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1937993#M2877</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/180715"&gt;@IS_qlik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We can create Global transformation as below In Qlik Replicate UI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SwathiPulagam_0-1654030637405.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80740i57EEC4484549183D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SwathiPulagam_0-1654030637405.png" alt="SwathiPulagam_0-1654030637405.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Swathi&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 20:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Parameterize-Target-table-schema-setting/m-p/1937993#M2877</guid>
      <dc:creator>SwathiPulagam</dc:creator>
      <dc:date>2022-05-31T20:57:56Z</dc:date>
    </item>
  </channel>
</rss>

