Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am setting up a very simple qlikview, what it does is load excel files, the script is not complicated and works correctly. It only fails if one of the files is open.
Can you think of the reason?
Thanks
Yolanda
Depending on the script, it could be one of two things:
1) The file is blocked for reading while it is open
2) You are reading e.g. all files in the folder, and when the file is open a temporary file is created which Qlik can't read
I would guess the second option is more likely, but either could be the problem.
For the first issue, there's nothing much you can do except try and get your sysadmins to make the file readable when open. For the second issue, you can tell it to only read specific files (ones not starting with ~, which designates a temporary file, for example), or you can use Set Errormode=0; to tell Qlik to ignore issues and move to the next file.
I'm not sure what that means... did you try the solutions I suggested? Did they not work?
If Qlik can't read the file that is currently open, no amount of code will change that. Qlik attempts to read a file and if that fails, it fails. All you can do is tell it to ignore that error and move to the next file.
If the file is temporarily open, you can put Qlik on a loop to keep trying to read it, but if the file has been left open and this prevents reading it, that won't help either. Note that Qlik typically has no issues loading from an open Excel file, so this is something local to your deployment and should be taken up with your sysadmins.