<?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 Loading fails with Section Access loaded from sql in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Loading-fails-with-Section-Access-loaded-from-sql/m-p/1841118#M31028</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem where application reloading fails when I populate the security table from sql.&lt;/P&gt;&lt;P&gt;Here is a simple example. My user is MYDIRECTORY\froutier. The following script succeeds when I manually reload the application:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO [PostgreSQL_10.0.0.10 (mydirectory_froutier)];
Section Access;
[Security]:
LOAD * inline [ACCESS, USERID, Conf
ADMIN, MYDIRECTORY\froutier, *
];
Section Application;
[Data]:
LOAD * inline [Id, Value, Conf
1, 550, 1
];&lt;/LI-CODE&gt;&lt;P&gt;But if I load the exact same Section Access data using SQL, it fails with :&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Access was denied after reload. Check that the user that reloads the script is included in the section access part of the script.&lt;/STRONG&gt;"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO [PostgreSQL_10.0.0.10 (mydirectory_froutier)];
Section Access;
[Security]:
LOAD ACCESS, USERID, Conf;
select 'ADMIN' as "ACCESS",
       'MYDIRECTORY\froutier' as "USERID",
       '*' as "Conf";
Section Application;
[Data]:
LOAD * inline [Id, Value, Conf
1, 550, 1
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I think the exact same data is used, how comes the result differs ?&lt;/P&gt;&lt;P&gt;Any hint is appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Franck&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 16:57:53 GMT</pubDate>
    <dc:creator>alci</dc:creator>
    <dc:date>2025-01-29T16:57:53Z</dc:date>
    <item>
      <title>Loading fails with Section Access loaded from sql</title>
      <link>https://community.qlik.com/t5/Management-Governance/Loading-fails-with-Section-Access-loaded-from-sql/m-p/1841118#M31028</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem where application reloading fails when I populate the security table from sql.&lt;/P&gt;&lt;P&gt;Here is a simple example. My user is MYDIRECTORY\froutier. The following script succeeds when I manually reload the application:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO [PostgreSQL_10.0.0.10 (mydirectory_froutier)];
Section Access;
[Security]:
LOAD * inline [ACCESS, USERID, Conf
ADMIN, MYDIRECTORY\froutier, *
];
Section Application;
[Data]:
LOAD * inline [Id, Value, Conf
1, 550, 1
];&lt;/LI-CODE&gt;&lt;P&gt;But if I load the exact same Section Access data using SQL, it fails with :&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Access was denied after reload. Check that the user that reloads the script is included in the section access part of the script.&lt;/STRONG&gt;"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO [PostgreSQL_10.0.0.10 (mydirectory_froutier)];
Section Access;
[Security]:
LOAD ACCESS, USERID, Conf;
select 'ADMIN' as "ACCESS",
       'MYDIRECTORY\froutier' as "USERID",
       '*' as "Conf";
Section Application;
[Data]:
LOAD * inline [Id, Value, Conf
1, 550, 1
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I think the exact same data is used, how comes the result differs ?&lt;/P&gt;&lt;P&gt;Any hint is appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Franck&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 16:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Loading-fails-with-Section-Access-loaded-from-sql/m-p/1841118#M31028</guid>
      <dc:creator>alci</dc:creator>
      <dc:date>2025-01-29T16:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loading fails with Section Access loaded from sql</title>
      <link>https://community.qlik.com/t5/Management-Governance/Loading-fails-with-Section-Access-loaded-from-sql/m-p/1841176#M31029</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Section access, all field must be in Upper case. Can you follow the guidelines in the below link. It may help you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/manage-security-with-section-access.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/manage-security-with-section-access.htm&lt;/A&gt;&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="MayilVahanan_0-1633306590273.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63222iD2FD4E88427996A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1633306590273.png" alt="MayilVahanan_0-1633306590273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 00:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Loading-fails-with-Section-Access-loaded-from-sql/m-p/1841176#M31029</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-10-04T00:17:35Z</dc:date>
    </item>
  </channel>
</rss>

