Are you triggering it in a Server environment or are you running a batch file that uses the /r parameter in the command line? Make sure in the first case that "unsafe macros execution" are allowed in the QEMC, System, Setup, QlikView Servers, Security.