how to set Error on truncation in informatica

拟墨画扇 提交于 2019-12-25 07:47:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!