Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
tschullo
Creator III
Creator III

STORE Script Command using a variable for path


Ok people, what am I doing wrong here?

 

LET vQVD_dir='..\QVD\debug\';
DIM_BUSINESS_LINE:
SQL

SELECT * FROM DIM_BUSINESS_LINE;
STORE DIM_BUSINESS_LINE INTO $(vQVD_dir)DIM_BUSINESS_LINE.QVD (QVD);
DROP TABLE DIM_BUSINESS_LINE;

Script blows up at STORE command.

My extractor is in the folder QV\EXTRACTORS

MY QVD folder is at QV\QVD

and I am trying to use a debug subdir QV\QVD\debug

What am I doing wrong? I've tried LET, SET,  no quotes, with quotes. 

Thanks,

Frustrated in NY

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Does the debug folder already exist?

View solution in original post

7 Replies
swuehl
MVP
MVP

Does the debug folder already exist?

tschullo
Creator III
Creator III
Author

Yes, it does

sunny_talwar

Script seems right to me. Is it giving you any specific error?

VishalWaghole
Specialist II
Specialist II

Please post which error you are getting at STORE.

swuehl
MVP
MVP

If you step into the script using the debugger, how does the expanded STORE command looks like?

Can you make it work using the hardcoded path?

tschullo
Creator III
Creator III
Author

Sorry folks, my bad.

I was running script on server, created debug folder locally, thought I was in local copy.

swuehl
MVP
MVP

And just to double check: The user that runs the script has proper access rights to the folder and potentially already existing QVD and the potentially already existing QVD is not locked by another process?