failed-step Print this Topic Previous Page Up One Level Next page

Home >  Expression Functions > Step Result Functions >


Returns the step result. Using this function is meaningful when you are handling errors with protected blocks. The failed-step function must be part of the "On Error" handler, otherwise the step where you are using it will fail because there is no erroneous step.


As such, this function does not indicate the step where the error occurred. To find the result's attributes, pass this function as argument to functions such as stdout or stderr, for example:






failed-step() -> result



See the following examples:


Adding Error Handling to a Job
Validate an XML Document with Error Logging

© 2019 Altova GmbH