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

QMC Supporting Task not executed properly

We've created a QMC Task in System->Supporting Tasks->QDS@**->External Program

and have given path of the .bat file, which contains following command

 

"C:\Program Files\QlikView\Qv.exe" /l "E:\path_to_my_qlikview_document.qvw"

exit

 

my_qlikview_document has a macro written inside, which is triggered post-reload in document settings

Running .bat file manually executes the commands written inside successfully.

Running the created Supporting Task doesn't do the same.

Can anybody help figuring out the reasons behind this behaviour?

PFB

qmc_supporting_task.PNG

supporting_task_created.PNG

 

Thanks

Labels (1)
10 Replies
m_woolf
Master II
Master II

Try using /R instead of /I

Take a look at this post by Tim Benoit

anuj_sharma
Partner - Contributor III
Partner - Contributor III
Author

@m_woolf

I've tried using the /r switch in the batch file but this doesn't seem to have made  any difference.

Also, I do need the application to not be auto-saved and closed by the /r switch after reload because I need to run a macro triggered post-reload, hence the /l switch.

Also, the macro doesn't work after using the/r switch in the batch file

m_woolf
Master II
Master II

Does your macro save and close the qvw after it completes?

anuj_sharma
Partner - Contributor III
Partner - Contributor III
Author

Yes, macro contains below two lines

ActiveDocument.Save
ActiveDocument.GetApplication.Quit

qliksus
Specialist II
Specialist II

Can you run the batch file manually using the serviceID which run the QDS ? . Looks like the prompt which the QVW asks when you use a macro should be oked or suppressed .
anuj_sharma
Partner - Contributor III
Partner - Contributor III
Author

Can you please provide steps to test this?

I had tested the batch file just by double-clicking.

qliksus
Specialist II
Specialist II

Try following the below steps

1) Right click on the batch file and select "Run As different user"
2) Enter the serviceID which runs the QDS and check if there is any pop-up from the macro .
3) If you get the pop-up select the correct option and click ok to run it .
4) After this is done run from QMC and see if it works
anuj_sharma
Partner - Contributor III
Partner - Contributor III
Author

How do I find the serviceID which runs the QDS?

anuj_sharma
Partner - Contributor III
Partner - Contributor III
Author

Any idea how 'serviceID which runs the QDS' can be known?