<?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: Weird Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912483#M316651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could happen when the data source(s) delivers differently formatted three date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest using an exit script after loading TempCal and looking closely at the field formats.&lt;/P&gt;&lt;P&gt;RECEIPT_DATE must have a numeric representation to allow you to apply min() and max() successfully. &lt;/P&gt;&lt;P&gt;Have you checked the table viewer, what is the content of Temp table line? I assume it shows only NULL on Test server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 23:14:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-07-23T23:14:30Z</dc:date>
    <item>
      <title>Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912478#M316646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application in Prod server&amp;nbsp; which upon reload its getting successful, when the same has been moved to Test server its failing with an error message like field not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below script and their log&amp;nbsp; in different servers:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCal:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;RECEIPT_DATE&lt;/P&gt;&lt;P&gt;//date(RECEIPT_DATE) as RECEIPT_DATE&lt;/P&gt;&lt;P&gt;Resident SALES_TB;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;min(RECEIPT_DATE) AS minDate,&lt;/P&gt;&lt;P&gt;max(RECEIPT_DATE) AS maxDate&lt;/P&gt;&lt;P&gt;RESIDENT TempCal; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LET varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LET vToday = num(today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DROP TABLEs Temp, TempCal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Failure Log of Test Server&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM: 0461&amp;nbsp; Temp:&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM: 0462&amp;nbsp; NoConcatenate&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM: 0463&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM: 0464&amp;nbsp; min(RECEIPT_DATE) AS minDate,&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM: 0465&amp;nbsp; max(RECEIPT_DATE) AS maxDate&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM: 0466&amp;nbsp; RESIDENT TempCal&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:02 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 fields found: minDate, maxDate, 1 lines fetched&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0468&amp;nbsp; LET varMinDate = Num(Peek('minDate', 0, 'Temp'))&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0469&amp;nbsp; LET varMaxDate = Num(Peek('maxDate', 0, 'Temp'))&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0471&amp;nbsp; LET vToday = num(today())&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0473&amp;nbsp; DROP TABLEs Temp, TempCal&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0475&amp;nbsp; TempCalendar_1:&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0476&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0477&amp;nbsp;&amp;nbsp; + Iterno() - 1 AS Num, &lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0478&amp;nbsp; date( + Iterno() - 1) AS TempDate &lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM: 0479&amp;nbsp; AUTOGENERATE 1 WHILE +Iterno () -1 &amp;lt;= &lt;/P&gt;&lt;P&gt;7/23/2015 9:56:03 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: Field not found - &amp;lt;&amp;lt;=&amp;gt;&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:23 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; General Script Error&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:23 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution Failed&lt;/P&gt;&lt;P&gt;7/23/2015 9:56:23 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Success log of Prod server&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;7/23/2015 9:33:57 AM: 0461&amp;nbsp; Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0462&amp;nbsp; NoConcatenate&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0463&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0464&amp;nbsp; min(RECEIPT_DATE) AS minDate,&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0465&amp;nbsp; max(RECEIPT_DATE) AS maxDate&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0466&amp;nbsp; RESIDENT TempCal&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 fields found: minDate, maxDate, 1 lines fetched&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0468&amp;nbsp; LET varMinDate = Num(Peek('minDate', 0, 'Temp'))&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0469&amp;nbsp; LET varMaxDate = Num(Peek('maxDate', 0, 'Temp'))&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0471&amp;nbsp; LET vToday = num(today())&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0473&amp;nbsp; DROP TABLEs Temp, TempCal&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0475&amp;nbsp; TempCalendar_1:&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0476&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0477&amp;nbsp; 41276 + Iterno() - 1 AS Num, &lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0478&amp;nbsp; date(41276 + Iterno() - 1) AS TempDate &lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM: 0479&amp;nbsp; AUTOGENERATE 1 WHILE 41276+Iterno () -1 &amp;lt;= 42208&lt;/P&gt;&lt;P&gt;7/23/2015 9:33:57 AM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 fields found: Num, TempDate, 933 lines fetched&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;john&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 17:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912478#M316646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-23T17:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912479#M316647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe you can use MIN in script without groupby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912479#M316647</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-07-23T18:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912480#M316648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume these two Servers use different default date formats (probably set in OS). One can't be Interpreted by QV hence numeric functions in variable assignment fail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912480#M316648</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-23T18:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912481#M316649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the failing sentence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;7/23/2015 9:33:57 AM: 0471&amp;nbsp; LET vToday = num(today())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For some reason QlikView fails to assign any value to the variable vToday resulting in two syntax errors later in the script.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have no idea why though, try executing script on the test server step by step.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kind regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912481#M316649</guid>
      <dc:creator>consenit</dc:creator>
      <dc:date>2015-07-23T18:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912482#M316650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the same script for Ship date, Pick date and Receipt Date in the application in different tabs, its working fine for the Ship date, pick date but not for Receipt date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912482#M316650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-23T18:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912483#M316651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could happen when the data source(s) delivers differently formatted three date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest using an exit script after loading TempCal and looking closely at the field formats.&lt;/P&gt;&lt;P&gt;RECEIPT_DATE must have a numeric representation to allow you to apply min() and max() successfully. &lt;/P&gt;&lt;P&gt;Have you checked the table viewer, what is the content of Temp table line? I assume it shows only NULL on Test server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 23:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912483#M316651</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-07-23T23:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weird Error</title>
      <link>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912484#M316652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Swuehl, date format is different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 12:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weird-Error/m-p/912484#M316652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-24T12:32:18Z</dc:date>
    </item>
  </channel>
</rss>

