问题
I'm just new in the informatica and I want to set a data loading that will handle error checking.
E.g I have char(1) data type in the Recepction Table now, in my source I have more than 1 char but informatica is loading the data and it is being truncated in the reception table.
I just want configure the loading that my session will fail if there is truncation happen from source to reception.
回答1:
By default, when a value is truncated, a warning is logged. If you want to treat truncation as an error, select the option Reject Truncated/Overflowed rows
in the target definition.
If rejecting the problematic rows is not enough, you can configure the session to fail by setting the non-fatal error threshold to 1
(option Stop on errors
).
If you need to monitor only selected columns, use the following expression for each of them:
out_OneCharColumn = IIF(LEN(in_OneCharColumn) > 1
, ABORT('Source value would be truncated')
, in_OneCharColumn)
More information: How to Use Error Handling Options and Techniques in Informatica PowerCenter
来源:https://stackoverflow.com/questions/29146234/how-to-set-error-on-truncation-in-informatica