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: 
surajap123
Creator III
Creator III

variable returning error instead of null

!Hi Experts,

I have a variable that stores the working directory path. when I put the variable in a text object, I get the

Error: Garbage after expression "\Files"

The variable is created in UI and below are its details-

Variable--> vQVDPath

value-->     \Files\

The data is properly fetched in the load script.

load..

from $(vQVDPath)\test.qvd

Thanks

3 Replies
MK_QSL
MVP
MVP

load..

from $(vQVDPath)test.qvd

maximiliano_vel
Partner - Creator III
Partner - Creator III

Try

Variable--> vQVDPath

value-->    '\Files\'

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

SET vQVDPath = '.\Files\';      // relative path .\

// SET vQVDPath = '\\Files\'     UNC path to a share named Files

LOAD * FROM '$(vQVDPath)'test.qvd;


talk is cheap, supply exceeds demand