Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error loading from the scheduler, and loading from the script goes fine

Hello! Help to solve the problem: when loading data in the desktop version, the boot is performed without problems, but when executing the load from the scheduler it drops into an error, when examining the log file I drew attention to the following lines:

Error: Error in expression:

Week takes 1 parameter

General Script Error

Execution Failed

Execution finished.

I use the parameter when defining the "week" and I really need it.

calendar:

LOAD        

         [TempDate] as tmp_date,

         Day([TempDate]) as [DAY],

         Week([TempDate],0,1) as [WEEK_NO],

         WeekName([TempDate]) as [WEEK_YEAR],

         WeekDay([TempDate]) as [DAY_OF_WEEK],

         Month([TempDate]) as [MONTH],

         MonthName([TempDate]) as [MONTH_YEAR],

         Dual('КВ'&Text(Div(Month([TempDate]),4)+1),Div(Month([TempDate]),4)+1)    as [QARTER],

         QuarterName([TempDate]) as [QARTER_YEAR],

         Year([TempDate]) as [YEAR]

Help, please, how to get out of this situation and why when executing the script from the application there are no errors, but when executing from the scheduler an error occurs?

1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Hi,

Try to use

Week(weekstart([TempPeriod]))  as Week_No

or

    Week(CalDate) as Week_No,

View solution in original post

2 Replies
devarasu07
Master II
Master II

Hi,

Try to use

Week(weekstart([TempPeriod]))  as Week_No

or

    Week(CalDate) as Week_No,

Not applicable
Author

Hello! Thanks for the help! the decision with this line helped: Week(weekstart([TempPeriod]))  as Week_No