Four Stars

[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.
1 ACCEPTED SOLUTION

Accepted Solutions
Five Stars

Re: [resolved] tFileExists component not working as expected.

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

Re: [resolved] tFileExists component not working as expected.

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

Re: [resolved] tFileExists component not working as expected.

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.