<?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: Master Calender Script Error.... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554348#M207120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick is right, your "minDate" variable (I don't know how you named it) is empty or null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post the LET statement where you assign a value to this variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 10:18:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-09T10:18:51Z</dc:date>
    <item>
      <title>Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554346#M207118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Today morning, while Reloading the script in my QlikView file, I got an error in Master Calender as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script Line Error:&lt;/P&gt;&lt;P&gt;InvoiceDateField:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(41122 + rowno() - 1) as InvoiceTempDate&lt;/P&gt;&lt;P&gt;Autogenerate&lt;/P&gt;&lt;P&gt;-41122 + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see that variable containing Today giving me wrong date....&lt;/P&gt;&lt;P&gt;varInvoiceToday = 05/07/2013 should be 09/07/13...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could be the reason behing script load fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please tell me what could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 09:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554346#M207118</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-07-09T09:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554347#M207119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually you create a calendar between a minimum and maximum date. I think you tried to do that, but the variable containing the minimum date is empty. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554347#M207119</guid>
      <dc:creator />
      <dc:date>2013-07-09T10:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554348#M207120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick is right, your "minDate" variable (I don't know how you named it) is empty or null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you post the LET statement where you assign a value to this variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554348#M207120</guid>
      <dc:creator />
      <dc:date>2013-07-09T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554349#M207121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have enclosed EXCEL and QVW file both.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 10:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554349#M207121</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-07-09T10:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554350#M207122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem was that the vMaxDate was not filled.&lt;/P&gt;&lt;P&gt;I changed it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALE_temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Invoice No], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Invoice Date], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Price (INV)], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inv Total], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [EX RATE], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost Price], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total Cost Price]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SalesInvoices.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Sales 2013]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALE:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Invoice Date] as InvoiceDate&lt;/P&gt;&lt;P&gt;resident SALE_temp where not isnull([Invoice Date]) order by [Invoice Date] asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table SALE_temp;&lt;/P&gt;&lt;P&gt;// ****************Creating the Invoice Calendar *************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vInvoiceMinDate = num(Peek('InvoiceDate', 0,'SALE'));&lt;/P&gt;&lt;P&gt;LET vInvoiceMaxDate = Num(Peek('InvoiceDate', -1,'SALE'));&lt;/P&gt;&lt;P&gt;LET vInvoiceToday =num(today());&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554350#M207122</guid>
      <dc:creator />
      <dc:date>2013-07-09T11:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554351#M207123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Patrick,&lt;/P&gt;&lt;P&gt;This script is working fine but i really want to understand below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALE:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Invoice Date] as InvoiceDate&lt;/P&gt;&lt;P&gt;resident SALE_temp where not isnull([Invoice Date]) order by [Invoice Date] asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this not isnull is needed for my excel file?&lt;/P&gt;&lt;P&gt;Is there any specific field in InvoiceDate which required above script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554351#M207123</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-07-09T11:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554352#M207124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Invoice Date was causing troubles because there was a space in it. Initialy I used the square brackets but that caused the variable to remain empty. Therefore I renamed the field to one that doesn't have a space. Afterwards you could also drop the field. &lt;/P&gt;&lt;P&gt;Without ordering the file the max date was not filled. After ordering the mindate remained null. So there is a Invoice Date empty or one is not interpreted as a Date. Maybe an empty record has been read. I did not have time to do a good research.&lt;/P&gt;&lt;P&gt;Tables read from an excel file cannot be sorted. Therefore I first read it as is and afterwards I order it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554352#M207124</guid>
      <dc:creator />
      <dc:date>2013-07-09T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Master Calender Script Error....</title>
      <link>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554353#M207125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help...!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 11:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Master-Calender-Script-Error/m-p/554353#M207125</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-07-09T11:56:36Z</dc:date>
    </item>
  </channel>
</rss>

