Not having the script is kind of mission impossible to say where the problem is. But according to the error shown it seems that there is a line containing "end if" that either is not closing a previous opening IF or it appears when it shouldn't do (for example, within a LOAD statement).
Hope that helps.
I had similar problem.
I found that, in case of statement If …. End If, QV checks the syntax after Exit script;
But it shows error only in one case - when using Dollar-Sign Expansion.
Check following code:
if $(NoVariable) = 1 then
Then You get:
if NoVariable= 1 then
No error message.
Check also what happens when you put these if … endif before Exit Script;
Hope it helps
(I use QV11 sr6)
ENDIF_error01.qvw 138.8 K
I had a similar issue, and I fixed this as you say, by removing the dollars $ in the condition after the IF.
It seems that the $ are not nécessary.
I can confirm that Qlikview check the whole script in spite of the EXIT SCRIPT instruction.
Your fix has permited to me to stop loosing my time in this crazy bug.
Thanks you very much!
I had the same Problem. I fixed the Problem:
Behind !! the "Exit script" sheet I had some "bad coding" which was red underlined.
After Setting the "bad coding" in // Comment Lines the script run's without Errors.
It seems that QlikView checks the complete script coding - also after the Exit script;