I am having a similar issue - but only where the qvw is particularly large.
For example where teh .qvw is around 500K it goes past a breeze, where the .qvw is 20 or so megs it stops and just highlights the line in the macro and stops there.
I tried waitforidle and sleep before the saveas command, but to no use...
Any help appreciated
I tried this but now it stops on the 'WaitForIdle' - part of script beow
I have a batch file that calls this qvw -
"C:\Program Files\QlikView\qv.exe" /l /NoSecurity "C:\QlikViewTEST\SourceDocs\HR_SA_Reload.qvw"
which basically just loads the new layout xml and spits out the new qvw to roll to live.
The xml is created by another macro yes - and its an 'export document layout' not 'export sheet layout' i.e. I use ''ActiveDocument.ExportLayoutFile''- will I have the same issue?
I also tried to use an xml file i created manually - and I still get the same prob unfortunately.
I am intrigued by why it works for a smaller xml (If you want I can send you qvw set that works and the qvw set that doesn't - the macros are identical ) - is there any memory setting I might tweak? It looks to me that the problem is that while the layout xml is loading it goes onto the next line and crashes, whatever the line is.
Well, if it's the same with manually created XML files I'm afraid I'm running out of ideas. In fact I don't think it's a mere memory problem. Have you tried the same on another machine? Does it work when you manually import the manually exported XML? Anyway, perhaps another bug, I would contact support.