User Tools

Site Tools


transformations:halt

This is an old revision of the document!


Halt on condition

This transformation aborts project execution if specified condition is not fulfilled. Error message can be customized to provide more insight into the cause of interruption.

The purpose of this transformation is to monitor data quality and prevent project from producing incorrect results or exporting incorrect data.

Example

Let's assume we expect amounts to be only numbers.

Before transformation:

Province Amount Total Tax
ON 1000 125
BC #N/A 187.5
QC 2000 270

Defining condition as follows

 isnumber([Amount])

will make the transformation stop project execution, because one of the values in column Amount is not number.

Note that the condition should return either TRUE or FALSE for all rows. If for some reason it returns error then the transformation will also fail.

See also:

transformations/halt.1443752251.txt.gz · Last modified: 2015/10/01 22:17 by dmitry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki