<?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 Get column mapping from Qlik Replicate in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2029856#M4779</link>
    <description>&lt;P&gt;I would like to get a mapping of columns in a replication task. Columns that are taken from the source and columns that are passed to the target.&lt;/P&gt;
&lt;P&gt;I tried to get metadata from Enterprise Manager and from Replicate. I used the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/enterprise-manager/November2022/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEM_Intro.htm" target="_self"&gt;documentation&lt;/A&gt; but it doesn't give the right information. Information about the origin of the columns is not contained in any of the API methods.&lt;/P&gt;
&lt;P&gt;I found the &lt;STRONG&gt;dynamic_metadata.sqlite&lt;/STRONG&gt; file in the replication task directory. It has a &lt;STRONG&gt;table_definitions&lt;/STRONG&gt; table. The data column is encoded. It contains the column names and other information. But any attempts to decode it failed.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2023-01-25_145818.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98832i80F5E8474C4C3CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-25_145818.png" alt="2023-01-25_145818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have information on how to get column mapping or decode column data, I will be very grateful to you.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 13:05:47 GMT</pubDate>
    <dc:creator>diex</dc:creator>
    <dc:date>2023-01-25T13:05:47Z</dc:date>
    <item>
      <title>Get column mapping from Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2029856#M4779</link>
      <description>&lt;P&gt;I would like to get a mapping of columns in a replication task. Columns that are taken from the source and columns that are passed to the target.&lt;/P&gt;
&lt;P&gt;I tried to get metadata from Enterprise Manager and from Replicate. I used the&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/enterprise-manager/November2022/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEM_Intro.htm" target="_self"&gt;documentation&lt;/A&gt; but it doesn't give the right information. Information about the origin of the columns is not contained in any of the API methods.&lt;/P&gt;
&lt;P&gt;I found the &lt;STRONG&gt;dynamic_metadata.sqlite&lt;/STRONG&gt; file in the replication task directory. It has a &lt;STRONG&gt;table_definitions&lt;/STRONG&gt; table. The data column is encoded. It contains the column names and other information. But any attempts to decode it failed.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2023-01-25_145818.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98832i80F5E8474C4C3CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-25_145818.png" alt="2023-01-25_145818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have information on how to get column mapping or decode column data, I will be very grateful to you.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 13:05:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2029856#M4779</guid>
      <dc:creator>diex</dc:creator>
      <dc:date>2023-01-25T13:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get column mapping from Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2030489#M4799</link>
      <description>&lt;P&gt;&amp;nbsp;Good question and good start finding &lt;STRONG&gt;dynamic_metadata.sqlite&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;If only there was a tool to format the info right?! Well, there is inside good old REPCTL. Or at least there used to be one ?!&amp;nbsp; I've used it a lot in the past but just now it failed using version &lt;STRONG&gt;2022.5.0.499&lt;/STRONG&gt; and for now I do not know why. I tried as 'administrator' and changing directories and tried old untouched tasks and new ones. No joy, just&amp;nbsp;table_descs.json, not the actual tables. Hmmmm....&lt;/P&gt;
&lt;P&gt;You try!&lt;/P&gt;
&lt;P&gt;First list all commands: repctl -d &amp;lt;your_repl_data_dir&amp;gt;&amp;nbsp; help option=1&lt;/P&gt;
&lt;P&gt;Now scan options and&amp;nbsp; dumpmetadata and as for help on that:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;gt;repctl -d &amp;lt;your_repl_data_dir&amp;gt;  dumpmetadata ?
command dumpmetadata:
request arguments:

sqlite_file:required string
out_dir:optional string
create_sub_dir:optional BOOL

response arguments:
out_dir:optional string
[dumpmetadata command] Succeeded&lt;/LI-CODE&gt;
&lt;P&gt;Now try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;gt;repctl -d \Data dumpmetadata sqlite_file=\Data\tasks\Oracle_to_SqlServer\dynamic_metadata.sqlite
command dumpmetadata response:
{
        "out_dir":      "\\Data\\tasks\\Oracle_to_SqlServer\\20230126114034257652"
}
[dumpmetadata command] Succeeded&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And check the JSON result under the table_defs subdirectory (if all is well for you!)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 16:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2030489#M4799</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-01-26T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get column mapping from Qlik Replicate</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2030541#M4801</link>
      <description>&lt;P&gt;It is very useful!&lt;BR /&gt;Thank you very much for your advice.&lt;BR /&gt;I managed to get the column mapping. I am using 2022.5.0.395 version of Replicate.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2023-01-26_205944.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98958i1AC77A3E5F0C7FD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-01-26_205944.png" alt="2023-01-26_205944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 19:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Get-column-mapping-from-Qlik-Replicate/m-p/2030541#M4801</guid>
      <dc:creator>diex</dc:creator>
      <dc:date>2023-01-26T19:02:46Z</dc:date>
    </item>
  </channel>
</rss>

