Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

error when reloading

I am getting a script line error when reloading my qvd file. the error message is in the image attached

40 Replies
simenkg
Specialist
Specialist

That was my intention. anything happening after the Exit Script; statement will not happen.

Now right-click the MinMax-table and click preview and show me the results

Not applicable
Author

Unable to preview minmax.png

simenkg
Specialist
Specialist

That means it's empty, which is a result.

This means that the problem is in the creation of the MinMax table. I need to know the format of the ServiceDate to continue.

Not applicable
Author

is this what you need?

servdata.png

simenkg
Specialist
Specialist

Yes, Thanks.


Try to replace the tab with the text in this document.

The only change is from

[MinMax]:

Load

  Min(ServiceDate) as MinDate

  ,Max(ServiceDate) as MaxDate

Resident

  [CensusFact];

to

[MinMax]:

Load

  Min(Date(ServiceDate,'MM/DD/YYYY')) as MinDate

  ,Max(Date(ServiceDate,'MM/DD/YYYY')) as MaxDate

Resident

  [CensusFact];

I hope this works.

Remember to remove the Exit Script; line if you only pasted the changes

Not applicable
Author

still getting 3 script line errors

Script line error:

[TempCalendar]:

Load

  Date(''+RowNo() - 1) as TempDate

  AutoGenerate

  (''-''+1)

--------------------------------------------------

Table not found

[MasterCalendar_Census]:

Load

  TempDate                               as ServiceDate

  ,WeekStart(TempDate) as WeekStart

  ,Month(TempDate)                        as Month

  ,Year(TempDate)                         as Year

  ,Day(TempDate)                          as Day

  ,'Q' & Ceil(Month(TempDate) / 3)        as Quarter

  ,Date(MonthStart(TempDate),'MMM YYYY')  as MonthYear

Resident

    [TempCalendar]

Order By

    TempDate Asc

--------------------------------------------------

Table not found

DROP TABLES statement

simenkg
Specialist
Specialist

I made a mistake in the previous post:

[MinMax]:

Load

  Min(Date#(ServiceDate,'MM/DD/YYYY')) as MinDate

  ,Max(Date#(ServiceDate,'MM/DD/YYYY')) as MaxDate

Resident

  [CensusFact];

Try it.

Not applicable
Author

Same errors as above.

simenkg
Specialist
Specialist

Hmm. I'm afraid this requires some deeper analysis than I am able to do over the discussion thread.


As a workaround you can try to replace the lines

Let vMinDate = Num(Peek('MinDate',0,'MinMax'));

Let vMaxDate = Num(Peek('MaxDate',0,'MinMax'));

With
Let vMinDate = Num(YearStart(MakeDate(2012)));

Let vMaxDate = Num(YearEnd(Today()));

Not applicable
Author

Still didn't work, I Thank you so much for all your help