<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Macro stopped working in QMC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010253#M1221729</link>
    <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;Thanks for the valuable inputs!&lt;/P&gt;
&lt;P&gt;I'm running the task scheduler when logged in with the same admin user of the task, but the issue persists.&lt;/P&gt;
&lt;P&gt;I have created new files on local drive, but it didn't help.&lt;/P&gt;
&lt;P&gt;BTW, on my laptop, everything works fine. I have office 365.&lt;/P&gt;
&lt;P&gt;On the servers-&amp;nbsp; the Office is installed.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 10:01:07 GMT</pubDate>
    <dc:creator>dana</dc:creator>
    <dc:date>2022-11-29T10:01:07Z</dc:date>
    <item>
      <title>Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008441#M1221628</link>
      <description>&lt;P&gt;Hi People,&lt;/P&gt;
&lt;P&gt;I have a model with EXECUTE of a BAT that runs a VBS file.&lt;/P&gt;
&lt;P&gt;It worked fine in the QMC.&lt;/P&gt;
&lt;P&gt;Now it stopped working in the QMC, but still can be executed manually.&lt;/P&gt;
&lt;P&gt;The problem seems to be with the following VBS command:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#993366"&gt;myXL.WorkBooks.OpenText "F:\QlikView\EXCEL\MyFile.csv", , , xlDelimited, , , , , True&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;Any idea what could cause the issue?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 21:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008441#M1221628</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-23T21:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008658#M1221635</link>
      <description>&lt;P&gt;Executed manually means on the server-machine and with the user which runs the QlikView services? If not, check this out - and if there are any statements included which hide the execution or suppress any errors or messages comment them or change their true/false entry.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008658#M1221635</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-24T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008675#M1221637</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;The manual model load is with the same user as the QMC.&lt;/P&gt;
&lt;P&gt;But the issue is not really relevant to QV...&lt;/P&gt;
&lt;P&gt;The batch and the VBS run manually as expected.&lt;/P&gt;
&lt;P&gt;When running with Windows Task Scheduler, the issue occurs.&lt;/P&gt;
&lt;P&gt;Bellowis the VBS.&lt;/P&gt;
&lt;P&gt;I added an alert before the problematic code, but it is not displayed.&lt;/P&gt;
&lt;P&gt;' ============== UTF8 TO UNICODE ================&lt;/P&gt;
&lt;P&gt;Const adTypeBinary = 1&lt;BR /&gt;Const adTypeText = 2&lt;BR /&gt;Const adSaveCreateNotExist = 1&lt;BR /&gt;Const adSaveCreateOverWrite = 2&lt;BR /&gt;Const adWriteLine = 1&lt;BR /&gt;Const adReadLine = -2&lt;BR /&gt;Const adLF = 10&lt;BR /&gt;Const adCR = 13&lt;BR /&gt;Const adCRLF = -1&lt;BR /&gt;Set streamUTF8 = CreateObject("ADODB.Stream")&lt;BR /&gt;Set streamUNICODE = CreateObject("ADODB.Stream")&lt;BR /&gt;&lt;BR /&gt;streamUTF8.Open&lt;BR /&gt;streamUTF8.Type = adTypeText&lt;BR /&gt;streamUTF8.LineSeparator = adCRLF&lt;BR /&gt;streamUTF8.Charset = "UTF-8"&lt;BR /&gt;streamUTF8.LoadFromFile "F:\QlikView\EXCEL\MyFile.csv"&lt;BR /&gt;&lt;BR /&gt;streamUNICODE.Open&lt;BR /&gt;streamUNICODE.Type = adTypeText&lt;BR /&gt;streamUNICODE.LineSeparator = adCRLF&lt;BR /&gt;&lt;BR /&gt;Do Until streamUTF8.EOS&lt;BR /&gt;streamUNICODE.WriteText streamUTF8.ReadText(adReadLine), adWriteLine&lt;BR /&gt;Loop&lt;/P&gt;
&lt;P&gt;streamUNICODE.SaveToFile "F:\QlikView\EXCEL\MyFile-U.CSV", adSaveCreateOverWrite&lt;BR /&gt;streamUNICODE.Close&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;' ============== CSV TO XLS ================&lt;/P&gt;
&lt;P&gt;Dim myXL&lt;BR /&gt;Const xlDelimited = 1&lt;BR /&gt;Const xlWorkbookNormal = -4143&lt;/P&gt;
&lt;P&gt;Set myXL=CreateObject("Excel.Application")&lt;BR /&gt;myXL.Visible=True&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;myXL.DisplayAlerts=True&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;myXL.WorkBooks.OpenText "F:\QlikView\EXCEL\MyFile-U.CSV", , , xlDelimited, , , , , True&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;myXL.DisplayAlerts=False&lt;BR /&gt;myXL.ActiveWorkbook.SaveAs "F:\QlikView\EXCEL\MyFile.xls", xlWorkbookNormal&amp;nbsp;&lt;BR /&gt;myXL.DisplayAlerts=True&lt;/P&gt;
&lt;P&gt;myXL.ActiveWorkbook.Close False&lt;BR /&gt;myXL.Quit&lt;/P&gt;
&lt;P&gt;Set myXL = Nothing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008675#M1221637</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-24T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008729#M1221640</link>
      <description>&lt;P&gt;What happens if you manually start Excel and further then opening then the csv? There may any popup requiring any user-interaction ...&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 10:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008729#M1221640</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-24T10:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008748#M1221642</link>
      <description>&lt;P&gt;Nope...&lt;/P&gt;
&lt;P&gt;Since the server was updated with some security&amp;nbsp; component, this might caused a permission issue..&lt;/P&gt;
&lt;P&gt;Still trying to figure what needs to be done...&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008748#M1221642</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-24T11:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008784#M1221643</link>
      <description>&lt;P&gt;There were recently changes how office macros will be handled and also how the OS handled files from the internet or other insure sources.&lt;/P&gt;
&lt;P&gt;For the first hint you could try to look within the Excel security settings. Disabling everything is of course not a good idea but the tool should give a message if anything violated the rules and is therefore restricted. To check against the second hint you could just remove the csv and replacing it with a new one - an empty one directly created on the machine.&lt;/P&gt;
&lt;P&gt;But if I understand you right then worked the direct execution of bat + vbs but not if they are called from the windows task planner. In this case it becomes more difficult ...&lt;/P&gt;
&lt;P&gt;Are you sure that the error happens exactly on the red line? If not try to find the point where it breaks. A rather simple way is to add some msgbox-statements returning just 1,2,3 ... or more helpful the values of some of the essential variables and/or loop-counter and if the breaking point is found also the err.number + err.description ... Quite helpful may also to add some sleep-statements to give the OS time to execute the I/O before the next statement wants to grab them again ...&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008784#M1221643</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-24T11:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008790#M1221644</link>
      <description>&lt;P&gt;Thank a lot, Marcus!&lt;/P&gt;
&lt;P&gt;I Will proceed to check what you've recommended.&lt;/P&gt;
&lt;P&gt;We also plan to contact Microsoft support to consult with them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 12:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2008790#M1221644</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-24T12:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010166#M1221726</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;The batch files worked properly when ran manually, but not by services.&lt;/P&gt;
&lt;P&gt;the problematic line is:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;myXL.WorkBooks.OpenText "F:\QlikView\EXCEL\MyFile-U.CSV", , , xlDelimited, , , , , True&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As you suggested, I&amp;nbsp; deleted and created&amp;nbsp; the source CSV&amp;nbsp; &amp;nbsp;from Qlik:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;streamUTF8.LoadFromFile "F:\QlikView\EXCEL\MyFile.csv"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This resolved the issue in the development server!&lt;/P&gt;
&lt;P&gt;In the production server, where a security component was installed, it still didn't resolve the issue.&lt;/P&gt;
&lt;P&gt;Bottom line:&lt;/P&gt;
&lt;P&gt;As suggested in this post, the best way is to use NPrinting for the job...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Excel-CSV-Automation-of-a-Report-in-QlikSense/td-p/1244187" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Excel-CSV-Automation-of-a-Report-in-QlikSense/td-p/1244187&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your kind help.!&lt;/P&gt;
&lt;P&gt;Would update this post when I resolve the issue on the production server.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 07:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010166#M1221726</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-29T07:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010203#M1221728</link>
      <description>&lt;P&gt;For just a few simple tasks NPrinting might be a bit overweight but if there are multiple and more or less often changing tasks NPrinting could save time and money because without such tool you are reinvent the wheel - especially in regard to get stable solutions which are simple to administer and documented.&lt;/P&gt;
&lt;P&gt;Just some more hints to possible causes. Running a qmc-task or a windows-task means usually that no user is logged on the machine. This could mean that the task is completely or partly executed with a windows default user which may not always having the proper licences, configurations and/or access rights for the various task-parts. Further not all related tools/services may have all features available within such service-run without a user and a UI. Therefore, you may a bit play with it, for example by running this task if you were logged on the server and could monitor the execution - each disabling of messages, visibility, refresh the window and so on should be avoided. Maybe there occur any hint to the underlying cause ...&lt;/P&gt;
&lt;P&gt;Before you may try some changes within the Office-settings - especially to enable the file-access for network-paths because I assume that your F: is a network-share. Otherwise you may try your task with all (new created) files on a local server-folder.&lt;/P&gt;
&lt;P&gt;Here a starting-point for investigations to the security-setting-stuff:&lt;/P&gt;
&lt;P&gt;&lt;A id="LPlnkOWALinkPreview" href="https://learn.microsoft.com/de-de/DeployOffice/security/internet-macros-blocked" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" data-safelink="true" data-linkindex="0" data-ogsc=""&gt;https://learn.microsoft.com/de-de/DeployOffice/security/internet-macros-blocked&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 08:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010203#M1221728</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-29T08:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010253#M1221729</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;Thanks for the valuable inputs!&lt;/P&gt;
&lt;P&gt;I'm running the task scheduler when logged in with the same admin user of the task, but the issue persists.&lt;/P&gt;
&lt;P&gt;I have created new files on local drive, but it didn't help.&lt;/P&gt;
&lt;P&gt;BTW, on my laptop, everything works fine. I have office 365.&lt;/P&gt;
&lt;P&gt;On the servers-&amp;nbsp; the Office is installed.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010253#M1221729</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-29T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010287#M1221734</link>
      <description>&lt;P&gt;Could you watch the execution? Some included msgbox could be helpful to monitor it step by step.&lt;/P&gt;
&lt;P&gt;Another trial could go to ignore the error with:&lt;/P&gt;
&lt;P&gt;on error resume next&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then&lt;/P&gt;
&lt;P&gt;msgbox err.number &amp;amp; chr(10) &amp;amp; err.description&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010287#M1221734</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-29T10:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010305#M1221735</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;When run manually - it displays the message&amp;nbsp; box with&amp;nbsp; 0 as error code.&lt;/P&gt;
&lt;P&gt;When run from the Task Scheduler - the task keeps running.&lt;/P&gt;
&lt;P&gt;It doesn't show the message box.&lt;/P&gt;
&lt;P&gt;As before, I&amp;nbsp; had to end it manually.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 10:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010305#M1221735</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-29T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010369#M1221736</link>
      <description>&lt;P&gt;Ok. No error is returned. If a path is wrong or no proper access-rights exists or similar stuff happens an error would be returned. But if any security-setting prevents the access I'm not sure if there would be always such error ...&lt;/P&gt;
&lt;P&gt;Things which you may further trying is to include some sleep-statements and ensuring that there is no file-lock from the csv-creating process before the opening-statement is performed. An alternatively to the direct open of the file might be to add a file-dialog to browse to the target - maybe it could give more insights ...&lt;/P&gt;
&lt;P&gt;Beside the above such no error could occur if any popup is shown and waiting for any user inter-action. Therefore, my suggestion to watch the execution if possible step by step. If it's not possible you may try a very ugly thing by emulating the keyboard and pressing esc or maybe (the numerical index of) "ok." ...&lt;/P&gt;
&lt;P&gt;Further helpful would be to compare the environments - how does the Office installation and configuration differentiate&amp;nbsp;each other.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 12:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010369#M1221736</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-29T12:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010577#M1221742</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;I have tried some of the above:&lt;/P&gt;
&lt;P&gt;deleting files in the BAT, and then running - but it didn't resolve the issue.&lt;/P&gt;
&lt;P&gt;I couldn't find a way to emulate an input..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that the Task Scheduler runs fine when defined with the first option, but not with the second,&lt;/P&gt;
&lt;P&gt;even when I'm logged in as a QVADMIN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TASK SCHEDULER.png" style="width: 478px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94912iD44059135CF5C079/image-dimensions/478x148?v=v2" width="478" height="148" role="button" title="TASK SCHEDULER.png" alt="TASK SCHEDULER.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In both cases, the user is System:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TASK SCHEDULER 1.png" style="width: 552px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/94913i3414FE2C64CC72A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="TASK SCHEDULER 1.png" alt="TASK SCHEDULER 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found out that the&amp;nbsp; "local administrator password solution" (LAPS) was installed. Seems like it caused the issue..but I still have to figure out how..&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010577#M1221742</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-29T18:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010808#M1221755</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This seems to be ok. unless we use it with the second option if a user is logged or not - in respect with our services-user and with the highest privilegs. That within the task-details the task runs with the user system is IMO also ok. because each process must have an user even if none is directly logged. The important setting is in which context of access rights the task is executed and this your set services-user.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In regard to "local administrator password solution" (LAPS) I don't know if we have installed it too and if it's related to the matter. But I do remember that we had within a previous environment various task - not only QlikView related ones - which didn't always run properly and we used often an extra start-task which executed the final task with a RUNAS statement. Within the newer environment this didn't work anymore and we found other ways for the remaining tasks (most tasks were outdated).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside this what happens if you finish the task after the csv-creation and doing then the opening + saving part within a following task and/or manually? Further attempts could go to not opening this csv else creating a new workbook with an empty worksheet and saving it - if this didn't work it hints for causes which are not related to the csv-file. But if it worked you may use this as starting point for a workaround by not writing your content within a csv else writing it directly in Excel.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 09:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2010808#M1221755</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-30T09:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2011084#M1221765</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;I have updated the vbs to read a new Excel file,  and used WorkBooks.Open unstead of myXL.WorkBooks.OpenText.&lt;/P&gt;
&lt;P&gt;The behavior is the same: works manually, but not automatically..&lt;/P&gt;
&lt;P&gt;I found an article with a similar issue:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/74052821/task-scheduler-failed-to-run-the-excel-vba-macro" target="_blank"&gt;https://stackoverflow.com/questions/74052821/task-scheduler-failed-to-run-the-excel-vba-macro&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The IT people are still trying to figure out the permissions..&lt;/P&gt;
&lt;P&gt;So I guess I'll wait and see if they can resolve the issue on their side.&lt;/P&gt;
&lt;P&gt;Thanks so much for your guidance!&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2011084#M1221765</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-11-30T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro stopped working in QMC</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2013790#M1221849</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;I finally found the solution in this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://superuser.com/questions/579900/why-cant-excel-open-a-file-when-run-from-task-scheduler" target="_blank"&gt;https://superuser.com/questions/579900/why-cant-excel-open-a-file-when-run-from-task-scheduler&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;Create these two folders:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;32Bit:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE class="default s-code-block"&gt;&lt;CODE class="hljs language-lua"&gt;C:\Windows\System32\&lt;SPAN class="hljs-built_in"&gt;config&lt;/SPAN&gt;\systemprofile\Desktop  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;64Bit:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE class="default s-code-block"&gt;&lt;CODE class="hljs language-lua"&gt;C:\Windows\SysWOW64\&lt;SPAN class="hljs-built_in"&gt;config&lt;/SPAN&gt;\systemprofile\Desktop
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT color="#FF6600"&gt;Excel needs these folders if it's not run interactively. Create both folders even if you are on a 64-bit OS.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;It resolved the issue in the QMC as well..&lt;/P&gt;
&lt;P&gt;It's still a mystery why it worked so far without the folders..&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 13:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-stopped-working-in-QMC/m-p/2013790#M1221849</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2022-12-07T13:58:55Z</dc:date>
    </item>
  </channel>
</rss>

