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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

script error

hello Guys,

I got this error :

here is my script : Erreur de ligne de script

let vDWDate = date(today()-5,'YYYY-MM-DD');

let vToday = date(today(),'YYYY-MM-DD');

for iDaysBack = 0 to (vToday - vDWDate)

let vNextDay = Date(vToday - iDaysBack, 'YYYY-MM-DD');

test:

load *

;

sql query

next

NoConcatenate

MontantRecouvrementBillCycle:

load *,

AutoNumber(MakeDate( Year(date_id), Month(date_id), Day(date_id)), '%Date ID') as [%Date ID]

resident test;

drop table test;

let vDWDate1 = date(today()-5,'YYYY-MM-DD');

let vToday1 = date(today(),'YYYY-MM-DD');

for iDaysBack1 = 0 to (vToday1 - vDWDate1)

let vNextDay1 = Date(vToday1 - iDaysBack1, 'YYYY-MM-DD');

test1:

load *

;

sql query

next

NoConcatenate

requete2:

load *,

AutoNumber(MakeDate( Year(date_id), Month(date_id), Day(date_id)), '%Date ID') as [%Date ID]

resident test1;

drop table test1;

exit script ;

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Can you do this for me a while

SET ErrorMode = 0;

//SET ErrorMode = 0;

>>>>>>>>>>>> Script Here <<<<<<<<<<<<<

Trace 'Error Here' & Chr(10) & '$(ErrorMode)';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

17 Replies
Anil_Babu_Samineni

Script line Error, Can you please show error in image? Which line and please high light the line

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
master_student
Creator III
Creator III
Author

Capture.PNG

prma7799
Master III
Master III

Please remove this "sql queryand try  or comment that word .


Or

write proper statement in here


test:

load *

;

master_student
Creator III
Creator III
Author

by sql query i mean : select * from xxx ....

prma7799
Master III
Master III

Please try to debug script one by one then you will get exact issue ...

jonathandienst
Partner - Champion III
Partner - Champion III

The sql statement has no semicolon to terminate it:

for iDaysBack = 0 to (vToday - vDWDate)

  let vNextDay = Date(vToday - iDaysBack, 'YYYY-MM-DD');

  test:

  load *

  ;

  sql query

 

next

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
master_student
Creator III
Creator III
Author

the pb is with the next statment whene i comment it the sql query works but brings data of today only...

master_student
Creator III
Creator III
Author

I didn't get your message what i am supposed to do?

Thanks

master_student
Creator III
Creator III
Author

Any help please ??

Thanks