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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
vivekjayapalan
Contributor
Contributor

[resolved] tFileExists component not working as expected.

tFileExists showing subjob ok even the file doesn't exist.
 have job where i generate a excel file, upon file creation i am doing the following
MainJob -->subjob ok --> tFileExists --> Subjob Ok -->tSendemail --> subjob ok --> tFileCopy
When the main job doesn't generate any file the tFileExists still shows as ok and goes on with email and file copy. And every time file copy fails due to no file present in the folder. I am also using context for file path and file name for creating, file exists check and file copy.
Is this a bug or i am doing something wrong.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

You need to use an IF connector, with the condition
(Boolean)globalMap.get("tFileExist_1_EXISTS"))

View solution in original post

2 Replies
Anonymous
Not applicable

You need to use an IF connector, with the condition
(Boolean)globalMap.get("tFileExist_1_EXISTS"))
vivekjayapalan
Contributor
Contributor
Author

Thank you very much, that worked, i used  ((Boolean)globalMap.get("tFileExist_1_EXISTS"))   in the if condition, and when it is true the email and filecopy will trigger, when false do nothing.