Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

File Existense Transformation

$
0
0
Hi ,

Today I am looking for a solution for file existense to be tested in transformation and execute the condition accordingly.

File_Exist_Transformation.JPG

scenario
I am running this job attached screenshot above and linked transformation in "File existence check" transform for checking file existense.

IF Exist then run the true condition and generate some basic output else (False Condition)drop a mail with the error message file not found through mail Error(Mentioned above).

Below is a transform connected to File existense check.

File_Exist_testing.JPG

Issue

When I am running transform, I am getting result always true becasue of the transformation linked in "file existense check " is always returing a default value true in it.
Condition return true and since file did not found in the fetching directory, I get error message failure in a log file due to transform 2 which is looking for the file.

Requirment

Steps how to check particular file existence in any directory throught feature file exist.
and how to execute above job to get result.


All the jobs are attached in a mail.
Please use below attached transform and job for getting clear picture.

Viewing all articles
Browse latest Browse all 16689