Discussion Board for collaboration on QlikView Scripting.
I am trying to use the $(Must_Include) system variable to load in some common variables from a text file. When reloading I am getting a script error - Unknown statement ÿþ/
The bizarre thing is the contents of the text file was copied from a working script and after the script error I have copied the contents of the text file back into the script without error...
Can anyone shed any light or suggest a fix?
Other than the generated format variables the script only contains this:
The file is stored in the same folder as the document.
The Constants.txt contains the following text:
LET YEAR$(i) = year(now())-$(i);
Go to Solution.
I found the problem. Corruption in the text file.
Pasting the script into a new text file and overwriting the original fixed it??!! I copied the original text file over to my test...
I would check if the this file -> Constants.txt actually exists at the location. Because if you just copied the script and the file was not transferred you will end up having an error.
Yeah it definitely exists. I created the qvw and txt file as a test document having come across this error in another document, so I stripped it down to the basics to try and figure it out.