Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: if file size too big email notification, else email file

  1. #1
    Join Date
    Apr 2011
    Posts
    159

    Default if file size too big email notification, else email file

    Greetings. I have a job that calls a transformation and creates a file and emails it. works great. occasionally, though, that result set can be large (+20MB) in which case I do not want to try and email it!

    As is stands now it just does (Start --> Transformation --> Mail)

    I see the 'Get File Names' step (in the transformation) can check 'size' but i still want the file created (just not emailed, it will be saved to the server still) so I (think) I want/need the if/then condition in the job (just before the mail step).

    I thought about using 'Compare Folders' and having (a) a 20MB file in folder A and (b) the transformation one building in B but it doesn't appear that's an 'if greater than 20MB' but just a 'if not the exact same' - so that will not work.

    Does anyone know how to check for a file size and then 'if greater than X then else' it?

    Thanks you!

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    There's a job entry named "Evaluate files metrics" that does what you're looking for.
    So long, and thanks for all the fish.

  3. #3
    Join Date
    Apr 2011
    Posts
    159

    Default

    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.