Solucionado (ver solução)
Solucionado
(ver solução)
18
respostas

Erro no destino

Erro que apareceu:

Error at Caga Fato 001 [Insert Destination [98]]: The number of input columns for Insert Destination.Entradas[Entrada de Destino OLE DB] cannot be zero.

Error at Caga Fato 001 [SSIS.Pipeline]: "Insert Destination" failed validation and returned validation status "VS_ISBROKEN".

Error at Caga Fato 001 [SSIS.Pipeline]: One or more component failed validation.

Error at Caga Fato 001: There were errors during task validation.

18 respostas

Oi Vinicius,

Poderia compartilhar um print de como está o fluxo de dados do Carga Fato por favor?

Vinicius,

Olha nessa atividade a partir do passo 18, refaça por gentileza. O erro diz que o número de colunas de entrada no inserir destino não pode ser zero, pode ser que tenha pulado algum passo durante a aula.

Mas antes, clique duas vezes sobre "Inserir Destino" e verifique se estão dessa forma, por favor.

Imgur

Imgur

Fico no seu aguardo :)

Está da mesma forma que você me mandou (ao meu ver), dei os prints e coloquei no link.

https://drive.google.com/drive/folders/1O99LbGOvA9lgQ3yO8ayDoPhdZbcy9EFh?usp=sharing

Vinicius,

Sim, realmente, está igual. Então, refaça a atividade que falei acima a partir do passo 18 e me informe se deu certo.

Feito! Aparece os mesmos erros (seguem no link).

Vinicius,

Poderia por gentileza abrir o SQL Management e me mandar um print da Fato001?

Gabriela, Boa tarde.

A foto da tela está disponível em: https://drive.google.com/drive/folders/1O99LbGOvA9lgQ3yO8ayDoPhdZbcy9EFh?usp=sharing

Oi Vinicius, tudo bom?

O Banco foi restaurado igual o professor solicitou em aula? E dentro da Dimensão de Alteração Lenta, o destino selecionado foi o FONTES_DB?

Me envia um print de todas as tarefas feita no fluxo para eu analisar, por favor?

Gabriela,

No curso ele mostra que o destino dentro da Dimensão de alteração lenta, é o Conexão com o DW, não?

Prints no link.

Vinicius,

Sim sim, isso mesmo. Eu errei ali em cima, desculpe-me.

Acredito que as ordem dos parâmetros influencia ao carregar a carga, pois é feita a condição usando os operadores maior e menor na consulta.

Coloque os seus parâmetros conforme a imagem abaixo, e me informa se deu certo?

Imgur

Fico no seu aguardo :)

Fiz, realmente eu tinha errado em um parâmetro, mas ainda apresenta o erro. Segue o erro (a tela ta no link):

SSIS package "C:\Users\55849\Desktop\Arquivos - Aula 2\Projetos\DatawareHouseSucos\CargaDataWarehouse\CargaFatos.dtsx" starting. Information: 0x4004300A at Caga Fato 001, SSIS.Pipeline: Validation phase is beginning. Information: 0x4004300A at Caga Fato 001, SSIS.Pipeline: Validation phase is beginning. Warning: 0x80047076 at Caga Fato 001, SSIS.Pipeline: The output column "DATA_FATO" (14) on output "Saída de Origem OLE DB" (13) and component "Carga Fato001" (2) is not subsequently used in the Data Flow task. Removing this unused output column can increase Data Flow task performance. Information: 0x40043006 at Caga Fato 001, SSIS.Pipeline: Prepare for Execute phase is beginning. Information: 0x40043007 at Caga Fato 001, SSIS.Pipeline: Pre-Execute phase is beginning. Information: 0x4004300C at Caga Fato 001, SSIS.Pipeline: Execute phase is beginning. Error: 0xC0202009 at Caga Fato 001, Insert Destination [178]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E2F. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E2F Description: "A instrução foi finalizada.". An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E2F Description: "A instrução INSERT conflitou com a restrição do FOREIGN KEY "FK_Fato_001_Dim_Tempo". O conflito ocorreu no banco de dados "DW_SUCOS", tabela "dbo.Dim_Tempo", column 'Cod_Dia'.". Error: 0xC0209029 at Caga Fato 001, Insert Destination [178]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Insert Destination.Entradas[Entrada de Destino OLE DB]" failed because error code 0xC020907B occurred, and the error row disposition on "Insert Destination.Entradas[Entrada de Destino OLE DB]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure. Error: 0xC0047022 at Caga Fato 001, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Insert Destination" (178) failed with error code 0xC0209029 while processing input "Entrada de Destino OLE DB" (191). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure. Information: 0x40043008 at Caga Fato 001, SSIS.Pipeline: Post Execute phase is beginning. Information: 0x4004300B at Caga Fato 001, SSIS.Pipeline: "Insert Destination" wrote 0 rows. Information: 0x40043009 at Caga Fato 001, SSIS.Pipeline: Cleanup phase is beginning. Task failed: Caga Fato 001 Warning: 0x80019002 at Package1: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. SSIS package "C:\Users\55849\Desktop\Arquivos - Aula 2\Projetos\DatawareHouseSucos\CargaDataWarehouse\CargaFatos.dtsx" finished: Failure. The program '[11068] DtsDebugHost.exe: DTS' has exited with code 0 (0x0).

solução!

Vinicius,

Esse erro você pode resolver da seguinte forma:

No Script de carregamento da Dimensão Tempo, altere o intervalo de data assim:

DECLARE @AnoInicial VARCHAR(4) = '2013' DECLARE @MesInicial VARCHAR(2) = '1' DECLARE @AnoFinal VARCHAR(4) = '2015' DECLARE @MesFinal VARCHAR(2) = '12'

Antes de carregar a Tabela Fato001, precisa fazer a carga de dimensão tempo completa do ano de 2013 a 2015. Na aula é feito somente do ano de 2013.

Gabriela, Bom dia!

Fui lá na Criação da Dimensão Tempo, alterei o intervalo de data e vi que no Management Studio carregou o ano 2015. Então apaguei tudo que tinha feito da Carga Fato 001, e refiz de acordo com o curso. E ainda apresenta erro. Segue o mesmo:

Error: 0xC0209029 at Carga Fato 001, Insert Destination [178]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Insert Destination.Entradas[Entrada de Destino OLE DB]" failed because error code 0xC020907B occurred, and the error row disposition on "Insert Destination.Entradas[Entrada de Destino OLE DB]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure. Error: 0xC0047022 at Carga Fato 001, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Insert Destination" (178) failed with error code 0xC0209029 while processing input "Entrada de Destino OLE DB" (191). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure. Information: 0x40043008 at Carga Fato 001, SSIS.Pipeline: Post Execute phase is beginning. Information: 0x4004300B at Carga Fato 001, SSIS.Pipeline: "Insert Destination" wrote 60 rows. Information: 0x40043009 at Carga Fato 001, SSIS.Pipeline: Cleanup phase is beginning. Task failed: Carga Fato 001

Fico no aguardo de algum direcionamento.

Bom dia Vinicius,

Como refez o processo da Carga Fato 001, poderia por gentileza enviar novos prints de como está o seu fluxo de dados?

Fico no aguardo :)

Novas telas disponíveis no link. :)

Vinicius,

Se você ajustou os parâmetros conforme na aula, sugiro que no Assistente de Origem e substitua com interrogações os parâmetros da consulta:

Também quero sugerir a solução desse tópico.

Qualquer coisa me avise, estarei por aqui :)

Quando ajustei para as interrogações funcionou. Não seria melhor colocar uma observação para fazer a carga até 2015? Pois foi uma semana tentando resolver isso.

Muito obrigada pela atenção.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software