<?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: SQL ApplyMap for Rejected Code display missing value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776880#M666437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would put subfield(kode_reject,' ',1) as CheckField into the load-statement to look what it returned. Maybe you need a trim() for kode_reject or the space ' ' isn't a space else a special-char like tab or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 11:48:00 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-11-19T11:48:00Z</dc:date>
    <item>
      <title>SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776879#M666436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a SQL script below working fine :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pick(Match(kode_reject, 5, 39), 'reject human error', 'reject machine error') AS DESC_REJECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Due to too many error code , i decide to change to mapping ( believe this line cause problem ) :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ApplyMap('SegmentMap', subfield(kode_reject,' ',1), 'Other') AS DESC_REJECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have the Reject code Table which i can only place after SQL load the raw data into QV ( This also another issue i don't know how to solve ), if i place before loading SQL data to QV , i will get error. &lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SegmentMap:&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Original, New&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;5,Human error&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;39,Machine error&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A2,Business Partner&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;when i reload script , it does not show any error code , but the DESC_REJECT field all value display null or missing value "-"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;any advise where go wrong on below line :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.1428575515747px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ApplyMap('SegmentMap', subfield(kode_reject,' ',1), 'Other') AS DESC_REJECT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 09:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776879#M666436</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-11-19T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776880#M666437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would put subfield(kode_reject,' ',1) as CheckField into the load-statement to look what it returned. Maybe you need a trim() for kode_reject or the space ' ' isn't a space else a special-char like tab or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 11:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776880#M666437</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-19T11:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776881#M666438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank for your hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never modify the below code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap('SegmentMap', subfield(trim(kode_reject),' ',1), 'Other') AS DESC_REJECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just move below code to before i load SQL data to QV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SegmentMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Original, New&lt;/P&gt;&lt;P&gt;5,Human error&lt;/P&gt;&lt;P&gt;39,Machine error&lt;/P&gt;&lt;P&gt;A2,Business Partner&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while reload the code , I get the below error code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;CONCATENATE (tmp)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; min(date_time) AS MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; max(date_time) AS MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT record_produksi_plc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my applyMap is working fine. except i get the above error.may i know how to avoid this error ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i comment below line of script , error will disappear :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (tmp)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; min(date_time) AS MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; max(date_time) AS MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT record_produksi_plc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think above script is good for check for min and max date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 12:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776881#M666438</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-11-19T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776882#M666439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should look if you really have these tables "tmp" and "record_produksi_plc". QV is case-sensitiv by field/table-names and it will auto-concatenate tables with the same data-structure so the last created table with this structure didn't exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776882#M666439</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-19T13:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776883#M666440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your advise again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error code happen only when i move the applyMap table to before QV read SQL data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it is due to when applyMap create the table , it cause QV unable to create SQL table. and it cause the error msg appear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why i said this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i remove the applyMap script , error will disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to tell QV not to display error msg ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776883#M666440</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-11-19T13:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re: SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776884#M666441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it's good that qv showed an error msg then otherwise data aren't valid but you could use errormode-variables to react on certain errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your error msg is caused either the applymap will be applied on a sql select (it belonged to qv and not to the sql-db) or the load-order is wrong. QV executed the statements through all tab-sheets from top to down and from left to right and a mapping-table must be loaded before an applymap is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776884#M666441</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-19T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL ApplyMap for Rejected Code display missing value</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776885#M666442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes , strongly agree with you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-ApplyMap-for-Rejected-Code-display-missing-value/m-p/776885#M666442</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2014-11-19T13:35:42Z</dc:date>
    </item>
  </channel>
</rss>

