Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello. I am new to Qlikview and this is my first time asking a question. We have a qlikview application that gets reloaded each morning around 4am. We had created a macro sub to export certain exhibits to an excel file. This macro works perfectly when we physically perform a reload using the OnPostReload Trigger and also when using a button to call this macro. However, when scheduling a task on a virtual machine to run daily overnight, this does not occur. We have tried to build it into the reload script, but have found many entries in the community about how only a function macro can be called, not a sub macro. Any thoughts?
Hello, macro has a security configuration by user, and exporting data to a system file needs the user to allow access to file system.
Maybe the user that executes the reload doesn't has that permision. Have you tried to log as the user that executes the task and try the execution with that user?... or change the user that executes the ask to one that has configuared module access.
If you have Qlik opened you can access the module security configuration pression CTRL+SHIFT+M, you need to allow access to the system.
Hope this helps.
We already have our machines set up in this manner 😞 back to the drawing board....
I am assuming you are using the QV.exe -r options as explained in the Help:
The issue you are going to have with an OnPostReload trigger in this case is a conflict between the trigger and the -r option of QV.exe call, as the -r wants to close the QV.exe process as soon as the Reload completes, this is by design, so OnPostReload triggers will not work consistently, if at all in this scenario. You would need to convert this to another trigger that will not conflict such as OnOpen or some other mechanism.
Regards,
Brett