Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Manually raising an error in a job

  1. #1
    Join Date
    Aug 2013
    Posts
    24

    Default Manually raising an error in a job

    OK, the issue is like this.

    I have a series of jobs which at the end running a transformation.
    Job1 -> calls Job2 -> calls transformation.

    The transformation is failing because of a db connection issue. In Job2 i have both paths (Success and failure) defined.
    The Fail path is being taken, so no problem there.

    The issue is that the Job2 ends as success, because it finishes ok.
    I cannot remove the fail path and let the error raise to Job1, because of my structure.

    So, my question is, is there any way (step or class or js ) that allows me to set the current job status to fail?

    Thanks guys.

    Daniel
    Last edited by dbaubeta; 10-10-2013 at 10:05 AM.

  2. #2
    Join Date
    Dec 2010
    Posts
    193

    Default

    How about passing the error or load fail to a variable and then checking that variable using simple evaluation and by passing your run ?
    Sathish
    Back to Pentaho


    'Be the best Pearl in the ocean of wisdom'

  3. #3
    Join Date
    Apr 2008
    Posts
    4,690

    Default

    Quote Originally Posted by dbaubeta View Post
    So, my question is, is there any way (step or class or js ) that allows me to set the current job status to fail?

    Thanks guys.

    Daniel
    Like Abort Job?
    **THIS IS A SIGNATURE - IT GETS POSTED ON (ALMOST) EVERY POST**
    I'm no expert.
    Take my comments at your own risk.

    PDI user since PDI 3.1
    PDI on Windows 7 & Linux

    Please keep in mind (and this may not apply to this thread):
    No forum member is going to do your work for you. We will help you sort out how to do a specific part of the work, as best we can, in the timelines that our work will allow us.
    Signature Updated: 2014-06-30

  4. #4
    Join Date
    Aug 2013
    Posts
    24

    Default

    Exactly like that. Thanks gutlez.

    A newbie.


    Quote Originally Posted by gutlez View Post
    Like Abort Job?

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.