<?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: Question on Update Matching Logic with Transformed Values in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519969#M14464</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/333308"&gt;@EE_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the clarification.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P data-start="1495" data-end="1634"&gt;&lt;EM&gt;When applying the update on the source, does Qlik use the&amp;nbsp;&lt;STRONG data-start="868" data-end="893"&gt;original source value&lt;/STRONG&gt;&amp;nbsp;(&lt;CODE data-start="895" data-end="901"&gt;"A "&lt;/CODE&gt;) or the&amp;nbsp;&lt;STRONG data-start="910" data-end="931"&gt;transformed value&lt;/STRONG&gt;&amp;nbsp;(&lt;CODE data-start="933" data-end="938"&gt;"A"&lt;/CODE&gt;) in the&amp;nbsp;&lt;CODE data-start="947" data-end="954"&gt;WHERE&lt;/CODE&gt;&amp;nbsp;clause to identify the target row?&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P data-start="115" data-end="298"&gt;Whether the source column is included in the &lt;STRONG&gt;WHERE&lt;/STRONG&gt; clause depends on the presence of a &lt;STRONG data-start="204" data-end="219"&gt;Primary Key&lt;/STRONG&gt;, &lt;STRONG data-start="221" data-end="237"&gt;Unique Index&lt;/STRONG&gt;, or &lt;STRONG data-start="242" data-end="274"&gt;RRN (Relative Record Number)&lt;/STRONG&gt; on the &lt;STRONG data-start="282" data-end="292"&gt;target&lt;/STRONG&gt; side.&lt;/P&gt;
&lt;P data-start="300" data-end="408" data-is-last-node="" data-is-only-node=""&gt;If you can provide more details about your scenario, I’ll be happy to confirm the expected behavior for you.&lt;/P&gt;
&lt;P data-start="300" data-end="408" data-is-last-node="" data-is-only-node=""&gt;Regards,&lt;/P&gt;
&lt;P data-start="300" data-end="408" data-is-last-node="" data-is-only-node=""&gt;John.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 14:29:39 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2025-06-03T14:29:39Z</dc:date>
    <item>
      <title>Question on Update Matching Logic with Transformed Values</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519452#M14445</link>
      <description>&lt;P data-start="171" data-end="194"&gt;Dear Qlik Support Team,&lt;/P&gt;
&lt;P data-start="196" data-end="326"&gt;We would like to clarify a question regarding update behavior when transformations (such as &lt;CODE data-start="288" data-end="294"&gt;TRIM&lt;/CODE&gt;) are applied in Qlik Replicate.&lt;/P&gt;
&lt;P data-start="328" data-end="658"&gt;Scenario:&lt;BR data-start="337" data-end="340" /&gt;If a value in column A1 of table A in the source journal is updated (e.g., from &lt;CODE data-start="420" data-end="426"&gt;"A "&lt;/CODE&gt; to &lt;CODE data-start="430" data-end="435"&gt;"B"&lt;/CODE&gt;), and Qlik Replicate applies a transformation (e.g., &lt;CODE data-start="489" data-end="495"&gt;TRIM&lt;/CODE&gt;) before writing to the target Oracle database, what value does Qlik use in its update condition — the original source value &lt;CODE data-start="620" data-end="626"&gt;"A "&lt;/CODE&gt; or the transformed value &lt;CODE data-start="652" data-end="657"&gt;"A"&lt;/CODE&gt;?&lt;/P&gt;
&lt;P data-start="660" data-end="788"&gt;Currently, we have confirmed that the target Oracle table may have been manually updated. We also noticed the following message:&lt;/P&gt;
&lt;BLOCKQUOTE data-start="790" data-end="935"&gt;
&lt;P data-start="792" data-end="935"&gt;&lt;EM data-start="792" data-end="935"&gt;"Source changes that would have no impact were not applied to the target database. Refer to the 'attrep_apply_exceptions' table for details."&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P data-start="937" data-end="1096"&gt;When reviewing the &lt;CODE data-start="956" data-end="981"&gt;attrep_apply_exceptions&lt;/CODE&gt; table, we see that the &lt;CODE data-start="1005" data-end="1013"&gt;UPDATE&lt;/CODE&gt; statements include &lt;CODE data-start="1033" data-end="1040"&gt;WHERE&lt;/CODE&gt; clauses based on the original source data (from AS400).&lt;/P&gt;
&lt;P data-start="1098" data-end="1135"&gt;Given this, we would like to confirm:&lt;/P&gt;
&lt;UL data-start="1136" data-end="1493"&gt;
&lt;LI data-start="1136" data-end="1358"&gt;
&lt;P data-start="1138" data-end="1358"&gt;If the target Oracle table already contains a trimmed version of the data (e.g., &lt;CODE data-start="1219" data-end="1224"&gt;"A"&lt;/CODE&gt;), and the source update is based on &lt;CODE data-start="1261" data-end="1267"&gt;"A "&lt;/CODE&gt; (with a trailing space), will Qlik still be able to match the record and apply the update?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="1359" data-end="1493"&gt;
&lt;P data-start="1361" data-end="1493"&gt;Or would this cause a mismatch due to the transformation, thus preventing the &lt;CODE data-start="1439" data-end="1446"&gt;WHERE&lt;/CODE&gt; condition from finding the correct target row?&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-start="1495" data-end="1634"&gt;We appreciate your help in clarifying this behavior so we can better understand how Qlik handles updates when transformations are involved.&lt;/P&gt;
&lt;P data-start="1495" data-end="1634"&gt;&lt;SPAN&gt;Looking forward to your guidance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 09:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519452#M14445</guid>
      <dc:creator>EE_</dc:creator>
      <dc:date>2025-05-29T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Update Matching Logic with Transformed Values</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519453#M14446</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/333308"&gt;@EE_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You opened a similar article 3 weeks ago:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Spaces-from-Source-DB2-iSeries-Not-Transferred-When-Converting/m-p/2517915#M14344" target="_blank" rel="noopener"&gt;Spaces from Source DB2 iSeries Not Transferred&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please check and feel free to let me know if you need any additional assistance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 10:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519453#M14446</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-05-29T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Update Matching Logic with Transformed Values</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519868#M14463</link>
      <description>&lt;P data-start="71" data-end="191"&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response. However, we would like to clarify our original question, as it may have been misunderstood.&lt;/P&gt;
&lt;P data-start="193" data-end="269"&gt;Our intention is &lt;STRONG data-start="210" data-end="217"&gt;not&lt;/STRONG&gt; to ask how to retain trailing spaces in the target.&lt;/P&gt;
&lt;P data-start="271" data-end="503"&gt;Instead, we would like to confirm &lt;STRONG data-start="305" data-end="362"&gt;what values Qlik Replicate uses in the &lt;CODE data-start="346" data-end="353"&gt;WHERE&lt;/CODE&gt; clause&lt;/STRONG&gt; when performing an &lt;CODE data-start="382" data-end="390"&gt;UPDATE&lt;/CODE&gt; operation on the source, &lt;STRONG data-start="416" data-end="502"&gt;in scenarios where a transformation (such as &lt;CODE data-start="463" data-end="469"&gt;TRIM&lt;/CODE&gt;) is applied on Qlik&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P data-start="505" data-end="531"&gt;To reiterate the scenario:&lt;/P&gt;
&lt;UL data-start="533" data-end="788"&gt;
&lt;LI data-start="533" data-end="607"&gt;
&lt;P data-start="535" data-end="607"&gt;The source (AS400) issues an &lt;CODE data-start="564" data-end="572"&gt;UPDATE&lt;/CODE&gt; on column A1 from &lt;CODE data-start="591" data-end="597"&gt;"A "&lt;/CODE&gt; to &lt;CODE data-start="601" data-end="606"&gt;"B"&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="608" data-end="684"&gt;
&lt;P data-start="610" data-end="684"&gt;A transformation (e.g., &lt;CODE data-start="634" data-end="640"&gt;TRIM&lt;/CODE&gt;) is applied to column A1 in Qlik Replicate.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-start="685" data-end="788"&gt;
&lt;P data-start="687" data-end="788"&gt;The target (Oracle) may already contain &lt;CODE data-start="727" data-end="732"&gt;"A"&lt;/CODE&gt; due to previous transformation logic.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-start="790" data-end="806"&gt;Our question is:&lt;/P&gt;
&lt;BLOCKQUOTE data-start="808" data-end="989"&gt;
&lt;P data-start="810" data-end="989"&gt;When applying the update on the source, does Qlik use the &lt;STRONG data-start="868" data-end="893"&gt;original source value&lt;/STRONG&gt; (&lt;CODE data-start="895" data-end="901"&gt;"A "&lt;/CODE&gt;) or the &lt;STRONG data-start="910" data-end="931"&gt;transformed value&lt;/STRONG&gt; (&lt;CODE data-start="933" data-end="938"&gt;"A"&lt;/CODE&gt;) in the &lt;CODE data-start="947" data-end="954"&gt;WHERE&lt;/CODE&gt; clause to identify the target row?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P data-start="991" data-end="1123"&gt;This detail is critical for us to understand whether updates might fail to match the correct target row due to transformation logic.&lt;/P&gt;
&lt;P data-start="1125" data-end="1189"&gt;We appreciate your support in clarifying this specific behavior.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 05:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519868#M14463</guid>
      <dc:creator>EE_</dc:creator>
      <dc:date>2025-06-03T05:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Update Matching Logic with Transformed Values</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519969#M14464</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/333308"&gt;@EE_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the clarification.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P data-start="1495" data-end="1634"&gt;&lt;EM&gt;When applying the update on the source, does Qlik use the&amp;nbsp;&lt;STRONG data-start="868" data-end="893"&gt;original source value&lt;/STRONG&gt;&amp;nbsp;(&lt;CODE data-start="895" data-end="901"&gt;"A "&lt;/CODE&gt;) or the&amp;nbsp;&lt;STRONG data-start="910" data-end="931"&gt;transformed value&lt;/STRONG&gt;&amp;nbsp;(&lt;CODE data-start="933" data-end="938"&gt;"A"&lt;/CODE&gt;) in the&amp;nbsp;&lt;CODE data-start="947" data-end="954"&gt;WHERE&lt;/CODE&gt;&amp;nbsp;clause to identify the target row?&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P data-start="115" data-end="298"&gt;Whether the source column is included in the &lt;STRONG&gt;WHERE&lt;/STRONG&gt; clause depends on the presence of a &lt;STRONG data-start="204" data-end="219"&gt;Primary Key&lt;/STRONG&gt;, &lt;STRONG data-start="221" data-end="237"&gt;Unique Index&lt;/STRONG&gt;, or &lt;STRONG data-start="242" data-end="274"&gt;RRN (Relative Record Number)&lt;/STRONG&gt; on the &lt;STRONG data-start="282" data-end="292"&gt;target&lt;/STRONG&gt; side.&lt;/P&gt;
&lt;P data-start="300" data-end="408" data-is-last-node="" data-is-only-node=""&gt;If you can provide more details about your scenario, I’ll be happy to confirm the expected behavior for you.&lt;/P&gt;
&lt;P data-start="300" data-end="408" data-is-last-node="" data-is-only-node=""&gt;Regards,&lt;/P&gt;
&lt;P data-start="300" data-end="408" data-is-last-node="" data-is-only-node=""&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 14:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2519969#M14464</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-06-03T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Update Matching Logic with Transformed Values</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2520821#M14494</link>
      <description>&lt;P data-start="303" data-end="529"&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="303" data-end="529"&gt;In my scenario, the target does not have a Primary Key, Unique Index, or Relative Record Number (RRN). In this case, I would like to confirm whether Qlik compares all column values to identify the row that needs to be updated.&lt;/P&gt;
&lt;P data-start="531" data-end="760" data-is-last-node="" data-is-only-node=""&gt;Additionally, if a transform is applied to column A (e.g., using &lt;CODE data-start="596" data-end="602"&gt;trim&lt;/CODE&gt; to remove spaces), does Qlik use the original source value (before the transform) or the transformed value in the &lt;CODE data-start="717" data-end="724"&gt;WHERE&lt;/CODE&gt; clause during the update operation?&lt;/P&gt;
&lt;P data-start="531" data-end="760" data-is-last-node="" data-is-only-node=""&gt;&lt;SPAN&gt;We appreciate your support in clarifying this specific behavior.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="AddMessageTags lia-message-tags lia-component-message-view-widget-tags"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jun 2025 07:30:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2520821#M14494</guid>
      <dc:creator>EE_</dc:creator>
      <dc:date>2025-06-11T07:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Update Matching Logic with Transformed Values</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2521190#M14521</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/333308"&gt;@EE_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We are referring to the following scenario:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1. AS400 source data type: &lt;STRONG&gt;VARCHAR&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; 2. Oracle target&amp;nbsp; data type: &lt;STRONG&gt;CHAR&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; 3. The results are the same regardless of the internal parameter &lt;STRONG&gt;keepCharTrailingSpaces&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; 4. &lt;STRONG&gt;Trim()&lt;/STRONG&gt; transformation is applied to the column&lt;BR /&gt;&amp;nbsp; 5. During the CDC phase, the column values used in the &lt;STRONG&gt;WHERE clause do not include trailing spaces&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you need to test other scenarios, you can enable the &lt;STRONG&gt;TARGET_APPLY&lt;/STRONG&gt; parameter to &lt;STRONG&gt;Verbose&lt;/STRONG&gt; and check the task log to review the generated SQL statements.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jun 2025 14:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Question-on-Update-Matching-Logic-with-Transformed-Values/m-p/2521190#M14521</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-06-14T14:45:43Z</dc:date>
    </item>
  </channel>
</rss>

