quinta-feira, 16 de setembro de 2010

Error: There was an error with input column "coluna" (88547) on input "OLE DB Destination Input" (50307). The column status returned was: "The value violated the integrity constraints for the column.".

Sintoma: Pacote do SSIS com um OLE DB Destination, ao ser executado exibe a mensagem Error: There was an error with input column "coluna" (88547) on input "OLE DB Destination Input" (50307). The column status returned was: "The value violated the integrity constraints for the column.".

 

Causa: O erro me confundiu inicialmente pois não havia nenhuma constraint ou integridade referencial na tabela (as mensagens de erro do SSIS costuma ser deceptivas), e a mensagem faz referência a uma “integrity constraint”. Analisando a tabela que estava recebendo os dados, verifiquei que uma das colunas da tabela que estava recebendo os dados estava configurada como NOT NULL e o pipeline apresentava valores nulos para a coluna.

 

Resolução: A coluna foi alterada para aceitar valores nulos.

 

Mais informações: http://doogalbellend.blogspot.com/2009/01/value-violated-integrity-constraints.html

 

Até a próxima!

Nenhum comentário:

Postar um comentário

Leave your comment here!