Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Velvet_Crowe
Contributor III
Contributor III

Syntax error on reload with cmd.exe

Hallo,

I work with QlikView 11.20 SR17 for a year now. Today I installed version 12.50 IR. Everything works fine except one thing.  To reload a document in a AutoHotKey script I use the command "c:\Program Files\QlikView\QV.exe" "<Path to my file>" /r. When I reload the document with the desktop client everything works fine. But a reload with command line fails.

Unexpected token: '(', expected one of: ...

LET vLogTime = Timestamp(Today() + GetMacroTime>>>>>>(<<<<<<), 'DD.MM.YYYY hh:mm:ss.fff')

Or see attachment.

The syntax error occures at GetMacroTime() which is a VB function to return the system time with milliseconds. If you need more information please ask!

Kind regards

Labels (3)
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Hello,

I had some similar issues and odd behavior with macros so I disabled BNF.

Please read the following as it might help you:

https://support.qlik.com/articles/000042307#:~:text=Disabling%20BNF%20reload%20mode%20for%20individu...

View solution in original post

2 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Hello,

I had some similar issues and odd behavior with macros so I disabled BNF.

Please read the following as it might help you:

https://support.qlik.com/articles/000042307#:~:text=Disabling%20BNF%20reload%20mode%20for%20individu...

Velvet_Crowe
Contributor III
Contributor III
Author

Yes i saw the post but this solution does not work any longer. Quote: "PLEASE NOTE: THE FOLLOWING SETTINGS WILL NOT WORK IN 12.30 (November 2018) OR HIGHER, SINCE THE ENGINE IS NOW BNF-ONLY. SCRIPTS WILL HAVE TO BE MODIFIED TO MATCH THE BACKUS-NAUR FORMALISM.".

 I already found similar questions to mine like Problems calling functions from load script QV 12 . But EnableBnfReload=0 in Settings.ini nor ///$bnf off have an effect any longer.

As workaround I removed the vb function call from the load script. It's strange that GUI works without any problems but on command line QlikView throws an error.

If there is not other solution than downgrade to a version below 12.30 until next week I will mark your answer as solution.