Local: ControleProducao Mensagem: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tbTicketReemissao_tbTicket". The conflict occurred in database "AllegroPlataforma_1091", table "dbo.tbTicket". The statement has been terminated. Instrucao SQL Insert tbTicketReemissao (tre_CodigoEmpresa,tre_CodigoLoja,tre_CodigoOperador,tre_Codigo,tre_CodigoTicket,tre_TipoReemissao, tre_SequenciaInicial,tre_SequenciaFinal,tre_Justificativa,tre_DataReemissao,tre_CodigoJustificativa,tre_CodigoCaixaMovimentacao,tre_CodigoCaixaFechamento,tre_CodigoOrcamento) Values (1091,112,107, 23949.00, 2709.00, N'1', NULL, NULL, N'', getdate(),NULL, NULL, NULL, NULL) Stack Trace: at ideologica.IdeoFramework.BancoDadosSQL.GerarExcecaoComando(SqlCommand comando, Exception innerException) at ideologica.IdeoFramework.BancoDadosSQL.Executar(SqlCommand comando) at ideologica.clsBD_TicketReemissao.Gravar(String Ticket, String Tipo, String PecaInicial, String PecaFinal, String Justificativa, String CodigoJustificativa, String CodigoCaixaMovimentacao, String CodigoCaixaFechamento, String CodigoOrcamento) at ideologica.frmReimprimirControleProducao.cmdConfirmar_Click(Object sender, EventArgs e) Local: .Net SqlClient Data Provider Mensagem: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tbTicketReemissao_tbTicket". The conflict occurred in database "AllegroPlataforma_1091", table "dbo.tbTicket". The statement has been terminated. Stack Trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at ideologica.IdeoFramework.BancoDadosSQL.Executar(SqlCommand comando) ========================= Informações do Aplicativo ========================= Arquivo: ControlProduction.exe Caminho: C:\Allegro.IoT.CPR\ControlProduction.exe Versão: 7.0.0.120 ====================== Informações da Máquina ====================== Nome da Máquina: PCPRESTIGIO01 Memória: 7,70 GB Sistema Operacional: Microsoft Windows 10 Pro Processador: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (3600Mhz) Usuário: PCPRESTIGIO01\USER Resolução do Vídeo: 1920x1080 Versão SQL Server: Microsoft SQL Server 2019 (RTM-GDR) (KB5084817) - 15.0.2165.1 (X64) Mar 13 2026 19:23:51 Copyright (C) 2019 Microsoft Corporation Standard Edition (64-bit) on Windows Server 2016 Standard 10.0
(Build 14393: ) (Hypervisor) Versão exe: 7.0.0, Computador: PCPRESTIGIO01