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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tFileExist error

I am passing a value to tFileExist that contains a file location such as
V:/!Q6UJ9A0043TK_0722081228_001.pdf

When my job hits the tFileExist component it throws the following error:
Syntax Error on token "(", Expression expected after this token

The variable used in tFileExist is
((String)globalMap.get("map.filename"))

The variable is created by tFlowtoIterate.
I should also add that I am not using tFileList because there are over 100,000 files in this drive and it would take forever for this job to run through all those files when i only need about 200 files copied. I have a query setup in mysql to narrow the attachments down to the 200 I need.
Looking closer I noticed in the code view the following (note the empty if statement below):
 *  start
*/

currentComponent="tFileExist_1";


ok_Hash.put("tFileExist_1", true);
end_Hash.put("tFileExist_1", System.currentTimeMillis());
if () {

if(execStat){
runStat.updateStatOnConnection("If1", 0, "true");
}

tFileCopy_1Process(globalMap);
}

else{
if(execStat){
runStat.updateStatOnConnection("If1", 0, "false");
}
}

/**
* stop
*/

Anyone know why I am getting this error?
Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi
You did't set the condition of runIf link yet!