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: 
rgros
Contributor
Contributor

tFileExist not working?

hi,

I am doing my first Talend course and I am in the process of trying to understand the functionality of the components. I the course, a tFileExist component is used to activate a subjob if a given file exists. Seems straightforward to me, but I can not get it working myself.

 

It seems that no matter what, the tFileExist component always fires the onSubJobOK action as well as the OnComponentOK action.

 

To check this, I have created a new job with a simplified version of the course lesson, only containing a tFileExist compent and two tMsgBox components. I linked the tMsgBox components using OnSubjobOK and OnSubjobError, with different messages. In the tFileExist compoment I specified a non existing file. But the OK message is always displayed, if the specified file exists or not.

My goal is trying to understand this component, trying to understand why it is not working right now, and the proper way to do a file test.

 

I am using Talend studio 6.5.1 on a linux machine right now. If I need to clarify, please let me know.

Thanks in advance,

 

Ruud

Labels (3)
10 Replies
rgros
Contributor
Contributor
Author

OK, if you don't mind, I mark my own reply as solution, because it is most detailed.
The essence of the tFileExist component is that it sets the global variable which can then be testen. Right. I missed that detail.
Still I think it is wise to update the reference manual (see link) on that point....
Ruud