Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
alci
Contributor II
Contributor II

Loading fails with Section Access loaded from sql

Hi,

I have a problem where application reloading fails when I populate the security table from sql.

Here is a simple example. My user is MYDIRECTORY\froutier. The following script succeeds when I manually reload the application:

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
];

But if I load the exact same Section Access data using SQL, it fails with :

"Access was denied after reload. Check that the user that reloads the script is included in the section access part of the script."

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
];

 I think the exact same data is used, how comes the result differs ?

Any hint is appreciated 🙂

Franck

Labels (2)
1 Reply
MayilVahanan

HI 

In Section access, all field must be in Upper case. Can you follow the guidelines in the below link. It may help you.

https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/man...

 

MayilVahanan_0-1633306590273.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.