We go for constraint based loading in informatica when we have a primary key and foreign key constraint in while loading two or more tables in a single flow.
Our work flow usually gets failed saying "Constraint violated parent key not found". In here we can go for constraint based loading.
First we need to set up PK & FK relation ship between tables. For this we need to go to target designer and we can manually link columns from one table to another or we can reipmort both the tables together there by automatically creating PK & FK links between them.
Then we have to go to session properties and enable constraint based loading present under config_object tab.
We have to set treat target set rows as "Insert only" in session level properties and target load type as "Normal" under mapping tab.
Save the work flow.
Hope this article helps in understanding Constraint based loading.
Our work flow usually gets failed saying "Constraint violated parent key not found". In here we can go for constraint based loading.
First we need to set up PK & FK relation ship between tables. For this we need to go to target designer and we can manually link columns from one table to another or we can reipmort both the tables together there by automatically creating PK & FK links between them.
Then we have to go to session properties and enable constraint based loading present under config_object tab.
We have to set treat target set rows as "Insert only" in session level properties and target load type as "Normal" under mapping tab.
Save the work flow.
Hope this article helps in understanding Constraint based loading.
Comments
Post a Comment