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

Qlikview script line error

hi All,

i am coding in Qlikview 11 and i have written and i received  a "Script line error" just after a CALL like this

    

     CALL my_proc('param_1','param_2')

i have no idea why, someone have some suggestion?

thanks a lot.

15 Replies
Not applicable
Author

i have document log but i don't understand why happen this error, i tryed also to follow everithing with debug mode and check all the variable.

Not applicable
Author

i found the problem.

i wrote two subroutine with the same name and only if i tried to call it gave me an error.

i hope that my experience can help other with stupid error like mine.

thanks to everyone.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Noted.

BTW did the last definition still correspond the CALL interface (number of parameters the same). I would assume that the second definition overwrites the first one...

Not applicable
Author

Yes, the second definition doesn't have parameters and is for that the error.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I'll answer my own question: Probably not.

The following code executes perfectly:

SUB my_proc(vParm1)

  SET vFlag = ProcDef1;

END SUB

SUB my_proc(vParm1001)

  SET vFlag = ProcDef2;

END SUB

CALL My_Proc('val1');

And variable vFlag will contain 'ProcDef2', meaning that the last definition is being executed. It's not just the fact that you defined your SUB twice that causes this error.

Not applicable
Author

thank you for explanation