Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
When the same data, when loaded from excel sheet or loaded inline, works, but when the data is selected and loaded from SQL table, it throws the below error -
Access was denied after reload. Check that the user that reloads the script is included in the section access part of the script.
Working code-
Section Access;
Authorization:
LOAD
"ACCESS",
"USERID",
BUSINESSUNITID
FROM [lib://AttachedFiles/Qlik.xlsx]
(ooxml, embedded labels, table is Sheet1);
Code that fails -
Section Access;
Authorization:
LOAD "ACCESS",
"USERID",
BUSINESSUNITID;
SELECT ACCESS,
USERID,
BUSINESSUNITID
FROM Dashboard.QlikSectionAccess;
The data shown below, which is the result of the SQL View Dashboard.QlikSectionAccess is inserted from excel and it loads, while loading from SQL table fails.
Section access data -
ACCESS | USERID | BUSINESSUNITID |
ADMIN | INTERNAL\SA_SCHEDULER | * |
ADMIN | SAML\u1111 | * |
USER | SAML\u1222 | 2704 |
USER | SAML\u1222 | 2705 |
USER | SAML\u1444 | 2706 |
USER | SAML\u1444 | 2707 |
The solution to this issue was to use the Upper() on the USERID.
LOAD UPPER(ACCESS) as ACCESS,
UPPER(USERID) as USERID,
BUSINESSUNITID;
May be missing below statement
Section Access;
Authorization:
LOAD "ACCESS",
"USERID",
BUSINESSUNITID;
SQL SELECT ACCESS,
USERID,
BUSINESSUNITID
FROM Dashboard.QlikSectionAccess;
Section Application;
watch sample video in below link for loading SA data from DB.
https://community.qlik.com/t5/New-to-Qlik-Sense/Section-access-with-DataBase/td-p/1067573
The solution to this issue was to use the Upper() on the USERID.
LOAD UPPER(ACCESS) as ACCESS,
UPPER(USERID) as USERID,
BUSINESSUNITID;