Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Peter_Cammaert
Partner
Partner

Section Access Reload from QVD fails

Hi,

I'm trying to reload a Section Access table from a QVD that's generated by another QV app. This other app contains nothing more than the following script:

SA_Accounts:
LOAD * INLINE [
ACCESS, USERID, PASSWORD, DEPT
ADMIN, Admin, Admin,
USER, Peter, Peter, ZSW
USER, Ilse, Ilse, WSZ
];
STORE SA_Accounts INTO SA_Accounts.qvd (qvd);

SA_Depts:
LOAD * INLINE [
DEPT, TEXT
ZSW, Department Z
WSZ, Department W
];
STORE SA_Depts INTO SA_Depts.qvd (qvd);



The Reload script in the main app looks like this:

Section Access;
LOAD [ACCESS],
[USERID],
[PASSWORD],
DEPT
FROM SA_Accounts.qvd (qvd);

Section Application;
Star is *;
Directory;
LOAD DEPT,
TEXT
FROM SA_Depts.qvd (qvd);



Executing this script will generate a General Script Error (?). Apparently the script crashes on the Section Access LOAD statement.
See failing QVW and both QVDs in attachment.

What am I doing wrong here? BTW I'm running QVD9SR4.

Kr, Peter

8 Replies
terjeknappen
Partner
Partner

Hi Peter

Did you have any luck finding an answer?

I have a nearly identical script and the exact same problem.

regards

Terje Knappen

Miguel_Angel_Baeyens

Hello Peter and Terje,

First, you must load all fields from external sources when in section access in uppercase:

Section Access;LOAD UPPER(ACCESS) AS ACCESS, UPPER(USERID) AS USERID, UPPER(PASSWORD) AS PASSWORD, UPPER(DEPT) AS DEPTFROM SA_Accounts.qvd (qvd);


Besides, try to load the section access table in an unoptimized form, changing the following line:

FROM SA_Accounts.qvd (qvd) WHERE 1=1;


See if that helps.

terjeknappen
Partner
Partner

Thanks Miguel!

Unoptimized form solved my problem!

/Terje

Not applicable

Thanks Miguel, it solved my problem too..

-Kiran

Not applicable

Thanks Miguel, it solved my problem too..

-Kiran

andrea_monico
Contributor III
Contributor III

Thanks Miguel!
Andrea

Not applicable

Hi Miguel!

My case it's a little more serious. My app crashes when I enable the reduction data. I'm not loading the section access from a QVD, I wrote the section access in the qvw:

Section Access;

Star is *;

LOAD * INLINE [

    ACCESS,   PASSWORD, NTNAME,                                 USERID,  COD_GRUPO

    ADMIN,    ADMIN,                  *,                                          ADMIN,      *

    USER,     *,                  ALTENBURG\QLIKVIEW.ADMIN,           *,         1

    USER,     *,                  ALTENBURG\DIETMAR.PISKE,             *,         1      

    USER,     *,                  ALTENBURG\EDUARDO.CUCO,            *,         2

    USER,     *,                  ALTENBURG\FABIO.SIMON,                 *,         1   

    USER,     *,                  ALTENBURG\CRIS,                               *,         2   

    USER,     *,                  ALTENBURG\JACQUELINE.GONCALVES, *,         2       

    USER,     *,                  ALTENBURG\JACIARA.WERKA,             *,         2           

    USER,     *,                  ALTENBURG\JOSE.JUNIOR,                   *,         5

    USER,     *,                  ALTENBURG\FERNANDO.DALRI,             *,         4   

    USER,     *,                   ALTENBURG\GLAUCIO.GIL,                    *,         2

    USER,     *,                  ALTENBURG\EDGARD.MACHADO,          *,         4   

    USER,     *,                  ALTENBURG\ROBERT.BERTHIER,           *,         5       

];

Section Application;

What should I do? May you help me?

Not applicable

Hi Eduardo , If you are using NTNAME you dont need a Password and UserID because the NTNAME will authenticate the user. Please try Like Below:

Section Access:

STAR is * ;

LOAD * INLINE [

ACCESS , NTNAME , COD_GRUPO

] ;

Please make sure check the "Initial Data reduction by Section Access" option on Document Properties --> Opening Tab