<?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: operation_indicator('D', 'U', 'I') is producing null values in target in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094893#M6746</link>
    <description>&lt;P&gt;Hi Arun thanks for the response&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AR_H_OPERATION will produce ('INSERT','UPDATE' AND 'DELETE') but i need output as ('I','U' and 'D')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 12:42:00 GMT</pubDate>
    <dc:creator>TTH1</dc:creator>
    <dc:date>2023-07-18T12:42:00Z</dc:date>
    <item>
      <title>operation_indicator('D', 'U', 'I') is producing null values in target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094813#M6743</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;While loading full load in to target I have added&amp;nbsp;operation_indicator('D', 'U', 'I') as audit column, it produced only null&amp;nbsp; it suppose to be " I "if it is full load.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please assist&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 10:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094813#M6743</guid>
      <dc:creator>TTH1</dc:creator>
      <dc:date>2023-07-18T10:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: operation_indicator('D', 'U', 'I') is producing null values in target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094833#M6745</link>
      <description>&lt;DIV class="flex-1 overflow-hidden"&gt;
&lt;DIV class="react-scroll-to-bottom--css-bvbhx-79elbk h-full dark:bg-gray-800"&gt;
&lt;DIV class="react-scroll-to-bottom--css-bvbhx-1n7m0yu"&gt;
&lt;DIV class="flex flex-col text-sm dark:bg-gray-800"&gt;
&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654]"&gt;
&lt;DIV class="flex p-4 gap-4 text-base md:gap-6 md:max-w-2xl lg:max-w-[38rem] xl:max-w-3xl md:py-6 lg:px-0 m-auto"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]"&gt;
&lt;DIV class="flex flex-grow flex-col gap-3"&gt;
&lt;DIV class="min-h-[20px] flex items-start overflow-x-auto whitespace-pre-wrap break-words flex-col gap-4"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/232828"&gt;@TTH1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Qlik community!&lt;/P&gt;
&lt;P&gt;Could you please provide assistance regarding the target endpoint? I attempted to replicate to a PostgreSQL endpoint by adding a column called "operation" and assigning the value from "AR_H_OPERATION".&lt;/P&gt;
&lt;P&gt;Once the full load was completed, I observed that the column "operation" contained the value "INSERT".&lt;/P&gt;
&lt;P&gt;This transformation is also mentioned in the user guide provided below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_headColumns.htm#anchor-7" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2023/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_headColumns.htm#anchor-7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For better assistance, please provide details about the transformations you performed on your task.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Arun&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex justify-between lg:block"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&lt;BUTTON class="flex ml-auto gap-2 rounded-md p-1 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200 disabled:dark:hover:text-gray-400"&gt;&lt;/BUTTON&gt;
&lt;DIV class="flex gap-1"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="h-32 md:h-48 flex-shrink-0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BUTTON class="cursor-pointer absolute right-6 bottom-[124px] md:bottom-[120px] z-10 rounded-full border border-gray-200 bg-gray-50 text-gray-600 dark:border-white/10 dark:bg-white/10 dark:text-gray-200"&gt;&lt;/BUTTON&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="absolute bottom-0 left-0 w-full border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient pt-2 md:pl-2 md:w-[calc(100%-.5rem)]"&gt;&lt;FORM class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl"&gt;
&lt;DIV class="relative flex h-full flex-1 items-stretch md:flex-col" role="presentation"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="h-full flex ml-1 md:w-full md:m-auto md:mb-2 gap-0 md:gap-2 justify-center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/FORM&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jul 2023 11:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094833#M6745</guid>
      <dc:creator>Arun_Arasu</dc:creator>
      <dc:date>2023-07-18T11:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: operation_indicator('D', 'U', 'I') is producing null values in target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094893#M6746</link>
      <description>&lt;P&gt;Hi Arun thanks for the response&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AR_H_OPERATION will produce ('INSERT','UPDATE' AND 'DELETE') but i need output as ('I','U' and 'D')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 12:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094893#M6746</guid>
      <dc:creator>TTH1</dc:creator>
      <dc:date>2023-07-18T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: operation_indicator('D', 'U', 'I') is producing null values in target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094901#M6747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/232828"&gt;@TTH1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In that case , I would recommend you to consider the below transformation.&lt;/P&gt;
&lt;P&gt;CASE $AR_H_OPERATION &lt;BR /&gt;WHEN 'INSERT' THEN 'I'&lt;BR /&gt;WHEN 'DELETE' THEN 'D'&lt;BR /&gt;WHEN 'UPDATE' THEN 'U'&lt;BR /&gt;ELSE NULL&lt;BR /&gt;END&lt;/P&gt;
&lt;P&gt;Please test it and let us know if that helps with your requirement&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 13:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2094901#M6747</guid>
      <dc:creator>Arun_Arasu</dc:creator>
      <dc:date>2023-07-18T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: operation_indicator('D', 'U', 'I') is producing null values in target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2095005#M6749</link>
      <description>&lt;P&gt;Why not simple use the simple transformation expression:&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;substr($AR_H_OPERATION,1,1)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;That will produce &lt;STRONG&gt;I, D, U&lt;/STRONG&gt; for &lt;STRONG&gt;I&lt;/STRONG&gt;NSERT, &lt;STRONG&gt;D&lt;/STRONG&gt;ELETE, &lt;STRONG&gt;U&lt;/STRONG&gt;PDATE&lt;/P&gt;
&lt;P&gt;You do &lt;STRONG&gt;NOT&lt;/STRONG&gt; want to use '&lt;SPAN&gt;&lt;STRONG&gt;operation_indicator&lt;/STRONG&gt;' as this is strictly created for CDC processing and WILL change the CDC semantics changing delete to update. It does NOT have a document result for full-load but i suppose you could transform the null you observed to something else.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note, many other customer like to show data provided by full-load as distinct from subsequent Inserts. Older topics in this forum show how a conditional expression using &lt;STRONG&gt;$AR_H_TRANSACTION_ID&lt;/STRONG&gt; can be used to distinguish the two INSERT values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hein&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 17:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/operation-indicator-D-U-I-is-producing-null-values-in-target/m-p/2095005#M6749</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-07-18T17:01:44Z</dc:date>
    </item>
  </channel>
</rss>

