<?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 Error in calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437356#M34574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, can someone please give me an advice?&lt;/P&gt;&lt;P&gt;In data load I have this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following error occurred:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background: rgba(255, 38, 38, 0.2);"&gt;Autogenerate: generate count is negative&lt;/P&gt;&lt;P class="headline edc_error" style="padding: 0 10px; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px; background: rgba(255, 38, 38, 0.2);"&gt;The error occurred here:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background: rgba(255, 38, 38, 0.2);"&gt;TempCal: Load DATE(+RowNo()-1)as TempDate AutoGenerate -+1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, that reason this error is in this order, that I made for making right date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor(Filebasename()))as Edate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileBaseName()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I take data from autogenerated files, that have name example: ZLX02S_20171201_055500.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea how it repair?&lt;/P&gt;&lt;P&gt;I have inside files a field, that have date, but its not right date for me and to get right results I cant use it. But when I use it like my base date, my calendar work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2017 10:53:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-06T10:53:31Z</dc:date>
    <item>
      <title>Error in calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437356#M34574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, can someone please give me an advice?&lt;/P&gt;&lt;P&gt;In data load I have this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following error occurred:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background: rgba(255, 38, 38, 0.2);"&gt;Autogenerate: generate count is negative&lt;/P&gt;&lt;P class="headline edc_error" style="padding: 0 10px; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px; background: rgba(255, 38, 38, 0.2);"&gt;The error occurred here:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background: rgba(255, 38, 38, 0.2);"&gt;TempCal: Load DATE(+RowNo()-1)as TempDate AutoGenerate -+1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know, that reason this error is in this order, that I made for making right date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Floor(Filebasename()))as Edate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileBaseName()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I take data from autogenerated files, that have name example: ZLX02S_20171201_055500.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea how it repair?&lt;/P&gt;&lt;P&gt;I have inside files a field, that have date, but its not right date for me and to get right results I cant use it. But when I use it like my base date, my calendar work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 10:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437356#M34574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T10:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437357#M34575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you are using variables which have not been assigned, or have a null value. This is probably because your file name contains a date and your Date() function is not taking the file name structure into account, so Edate is always null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your load should be (based on the filename you mentioned in your post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Date#(Substring(Filebasename(), '_', 2), 'yyyyMMdd') as Edate,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you post the complete script that you are using to generate the calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437357#M34575</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-12-06T11:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437358#M34576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for response. But it dont work, your script is wrong. In code word "Substring" system take as field. Did you mean Substringcount? But after use Substringcount I have in red&amp;nbsp;&amp;nbsp; "," and everything after "," is in red like error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;Here is my wholle calendar:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Min(Edate) as MinDate,&lt;/P&gt;&lt;P&gt;Max(Edate) as MaxDate&lt;/P&gt;&lt;P&gt;Resident [Data];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = Num(Peek('MinDate',0,'MinMax'));&lt;/P&gt;&lt;P&gt;Let vMaxDate = Num(Peek('MaxDate',0,'MinMax'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCal:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;DATE($(vMinDate)+RowNo()-1)as TempDate&lt;/P&gt;&lt;P&gt;AutoGenerate&lt;/P&gt;&lt;P&gt;$(vMaxDate)-$(vMinDate)+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Master Calendar":&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TempDate as Edate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TempDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(TempDate) as Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day (TempDate) as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp; Ceil(Month(TempDate)/3) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date (MonthStart (TempDate),'YYYY-MM') as "Year-Month",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Date (WeekStart (TempDate)) as "Year-Week"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Resident TempCal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order by TempDate ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TempCal;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 12:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437358#M34576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T12:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437359#M34577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was easy to repair, when I rocognized, what is wrong. I only corrected Filebasename and changed it for Filetime. Nothing more and now it is working. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 14:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Error-in-calendar/m-p/1437359#M34577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T14:24:03Z</dc:date>
    </item>
  </channel>
</rss>

