Mostrar Print
Local: Administrativo Mensagem: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tbQuiloPeca_tbQuilo". The conflict occurred in database "AllegroPlataforma_1256", table "dbo.tbQuilo". The statement has been terminated. Instrucao SQL Insert tbQuiloPeca ( tqp_CodigoEmpresa,tqp_CodigoQuilo,tqp_CodigoPeca) Values ( 1256,0,904) Stack Trace: at ideologica.IdeoFramework.BancoDadosSQL.GerarExcecaoComando(SqlCommand comando, Exception innerException) at ideologica.IdeoFramework.BancoDadosSQL.Executar(SqlCommand comando) at ideologica.clsBD_Quilo.IncluirItemPeca(String CodigoQuilo, String CodigoPeca) at ideologica.frmCadastroQuilo.cmdConfirmar_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e) at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Local: .Net SqlClient Data Provider Mensagem: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_tbQuiloPeca_tbQuilo". The conflict occurred in database "AllegroPlataforma_1256", table "dbo.tbQuilo". 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: Administrativo.exe Caminho: C:\Allegro.IoT\Administrativo.exe Versão: 7.0.0.1151 ====================== Informações da Máquina ====================== Nome da Máquina: SERVIDOR Memória: 7,80 GB Sistema Operacional: Microsoft Windows 11 Pro Processador: 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz (2592Mhz) Usuário: SERVIDOR\Administrador Resolução do Vídeo: 1440x900 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: SERVIDOR