Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
PrashantSangle

Run qvw from batch

Hi,

I need your help in windows command to execute qvw files.

I have below scenario.

I have 4 qvw file say a.qvw,b.qvw,c.qvw and d.qvw. Here I need set dependency.

If one of the qvw failed to reload then execution of other qvw must stop.

I have also notice if we run single qvw through batch and if it failed to reload then qv.exe is not getting close.

I need your help to resolve above 2 issue.

To run qvw through batch I am using below command

C:\Program Files\QlikView\qv.exe /r D:\Document.qvw

I have refered below thread

QlikView Desktop client command line

Let me know if any questions

Thanks and Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
16 Replies
PrashantSangle
Author

Hi,

Thanks marcus_sommer‌.

Your replay also helpful for me, but I don't want to write any macro or modify existing qvw.

So I tried solution suggested by jontydkpi‌. and It is working fine but I need few more modification in suggested solution.

But it gives me pretty much much good start.

Thanks and Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle
Author

Hello Sir,

Your script working fine but If qvw failed to reload then qv application not getting close.

Is there any command which will forcefully closed qv and exit batch on if qvw failed to reload.

Kind Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
marcus_sommer

I'm not sure if you could call a quit- respectively kill-statement per macro-function within the script (quit shouldn't work because it needed an ActiveDocument which doesn't exists during the load) but from external vbs-batches (see attachment) triggered from an EXECUTE statement might work.

- Marcus

PrashantSangle
Author

Hi Sir,

Using Jonathan solution I found working solution.

step 1 : in QVW i have

     set ErrorMode=0; // to make sure qv will closed.

step 2 : used script provided by Jonathan

and It works for me.


In this 2 day I learn so many new things.Thank you all for your guidance.


Thanks and Regards,

Prashant

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Karim_Khan
Creator III
Creator III

Hi Prashant,

 

I am trying to execute the batch with same approach but its getting autclosed.

Is there some access related stuff you have taken while executing the batch?

 

Regards,

KK

KK
Karim_Khan
Creator III
Creator III

This command is running infinitely

KK
Karim_Khan
Creator III
Creator III

I got the solution after making small adjsutemnt in my script.

 

Thanks @PrashantSangle @ jontydkpi‌. for your support.

KK