Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue in using Exists clause.

Dear All,

I am new to QLICKVIEW.

PFB snapshot of code that i have written.

I am trying to test EXISTS functionality but getting error :

Cannot open file 'C:\Program Files\QlikView\Tutorial\MyWorks\Inter Record Functions\Citizens.csv

where not exists' The filename, directory name, or volume label syntax is incorrect.

Directory;
LOAD Employee,
     ID,
     Salary
FROM
Exists.csv
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);


load Name, Number from Citizens.csv
where not exists(Name);

Pls help me in resolving this error.

1 Solution

Accepted Solutions
Not applicable
Author

yes my bad:

try this remember to change ur own path

LOAD name,

     number

FROM

(txt, codepage is 1252, embedded labels, delimiter is ';', msq) where not Exists(name);

View solution in original post

6 Replies
MK_QSL
MVP
MVP

This error comes if you are using Relative Paths and the QVW and Your Data File are not on the same folder

Reload the file by removing Relative paths or If you want to use Relative Path save the QVW in the same folder where your DATA FILE exists

Also change as below..

where not exists(Employee,Name);

or

where exists(Employee,Name);

Not applicable
Author

Hi Manish,

Error i am getting is :

Cannot open file 'C:\Program Files\QlikView\Tutorial\MyWorks\Inter Record Functions\Citizens.csv where not exists' The filename, directory name, or volume label syntax is incorrect.

It is treating where not exists to be part of file name.

Also i have checked, all data files and qvw files are in same folder.

Not applicable
Author

does this work?

load Name, Number where not exists(Name); select * from C:\lalalla\Citizens.csv

Not applicable
Author

modified code as per your suggestion :

load Comment where exists(Employee,FirstName);

select * from C:\Program Files\QlikView\Tutorial\MyWorks\Inter Record Functions\Citizens.csv

error now is :

ODBC connection failed

select * from C:\Program Files\QlikView\Tutorial\MyWorks\Inter Record Functions\Citizens.csv


Not applicable
Author

yes my bad:

try this remember to change ur own path

LOAD name,

     number

FROM

(txt, codepage is 1252, embedded labels, delimiter is ';', msq) where not Exists(name);

Not applicable
Author

Hi Thomas,

Thanks for your solution.

It works now.

Thanks again !!