<?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: Script fails when run by sa_scheduler in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580650#M1353</link>
    <description>My best guess is that the connection you're using isn't globally available for your "sa_scheduler" user. That's why it would work if you're running it manually, but not when scheduled. I'd start there with your connection permissions.</description>
    <pubDate>Wed, 15 May 2019 18:57:11 GMT</pubDate>
    <dc:creator>bjendrick</dc:creator>
    <dc:date>2019-05-15T18:57:11Z</dc:date>
    <item>
      <title>Script fails when run by sa_scheduler</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580227#M1352</link>
      <description>&lt;P&gt;Hello I'm using QDF in my script&lt;/P&gt;&lt;P&gt;my script starts as follows:&lt;BR /&gt;SET vG.BasePath=; //Clear cache&lt;BR /&gt;SET vG.SharedBasePath=; //Clear cache&lt;BR /&gt;SET vG.RootContainer='QDF_ROOT';&lt;BR /&gt;SET vG.HomeContainer='6.PSA';&lt;BR /&gt;$(Must_Include=lib://$(vG.RootContainer)/$(vG.HomeContainer)/InitLink.qvs);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new task to run the script under the QVF but it fails at must_include line:&lt;BR /&gt;5-15 06:53:54 Error: $(MUST_INCLUDE failed: lib://QDF_ROOT/6.PSA/InitLink.qvs&lt;BR /&gt;2019-05-15 06:53:54 $(MUST_INCLUDE failed: lib://QDF_ROOT/6.PSA/InitLink.qvs&lt;BR /&gt;2019-05-15 06:53:54 Execution Failed&lt;BR /&gt;2019-05-15 06:53:54 Execution finished.&lt;BR /&gt;&lt;BR /&gt;but script runs successfully when I reload the script manually&lt;BR /&gt;kindly advise&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6838"&gt;@Magnus_Berg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580227#M1352</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-07-22T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails when run by sa_scheduler</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580650#M1353</link>
      <description>My best guess is that the connection you're using isn't globally available for your "sa_scheduler" user. That's why it would work if you're running it manually, but not when scheduled. I'd start there with your connection permissions.</description>
      <pubDate>Wed, 15 May 2019 18:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580650#M1353</guid>
      <dc:creator>bjendrick</dc:creator>
      <dc:date>2019-05-15T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails when run by sa_scheduler</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580655#M1354</link>
      <description>&lt;P&gt;Which connection you mean?&lt;/P&gt;&lt;P&gt;The script is failing at the point where I'm referencing the&amp;nbsp;&lt;SPAN&gt;InitLink.qvs&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 19:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580655#M1354</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2019-05-15T19:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails when run by sa_scheduler</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580657#M1355</link>
      <description>It's most likely an issue with the QDF_ROOT library connection. It can't find the "InitLink.qvs" file when run by the scheduler, which points to the library connection isn't available to all users.</description>
      <pubDate>Wed, 15 May 2019 19:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1580657#M1355</guid>
      <dc:creator>bjendrick</dc:creator>
      <dc:date>2019-05-15T19:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script fails when run by sa_scheduler</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1583130#M1356</link>
      <description>&lt;P&gt;Hi, as already mentioned:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;first the service account running scheduler service in Windows need to have access to the disk you are reading from&lt;/LI&gt;
&lt;LI&gt;Second the scheduler account need access to the data file connections (libs) used in your script as the scheduling is running under this account.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps, regards&lt;/P&gt;
&lt;P&gt;Magnus&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 07:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Script-fails-when-run-by-sa-scheduler/m-p/1583130#M1356</guid>
      <dc:creator>Magnus_Berg</dc:creator>
      <dc:date>2019-05-22T07:41:52Z</dc:date>
    </item>
  </channel>
</rss>

