I have created a subroutine with my section access code. I call the subroutine when I need it and it works fine in the qliksense editor. Now, I want to save this subroutine in an external .qvs-file and include it in my script. This way I can re-use the same subroutine in other apps. I do this:
//Include Section Access file $(Include=MySectionAccesCode.qvs); $(Must_Include=lib://QDFSharedSUB\MySectionAccesCode.qvs);
Unfortunately I get an error when doing this and I cant even debug this. The error message is "Data has not been loaded. Please correct the error and try loading again." No clues at all from this error message what could be wrong. When I try to debug this it just runs through without any problems. Seems to skip the variables or something.
I tried with .txt files as well.