******************** time ********************
2024-10-28 00:04:44


******************** query ********************
INSERT INTO __Android__BrokerTarget__ ([Id] ,[BrokerId] ,[TargetId] ,[Status] ,[AssignTime] ,[StartTime] ,[EndTime] ,[Options] ,[UserId] ,[FPId])VALUES (@Id, @BrokerId, @TargetId, @Status, @AssignTime, @StartTime, @EndTime, @Options, @UserId, @FPId);


******************** message ********************
The INSERT statement conflicted with the FOREIGN KEY constraint "__AndroidBrokerTargetBroker__". The conflict occurred in database "PEJAM", table "dbo.__Broker__".
The statement has been terminated.


******************** StackTrace ********************
   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.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite, String methodName)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2848
   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 581
   at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 452
   at BaseServices.SysDataAccessLayer.Execute(IDbConnection& dbConnection, String query, Int32& errIndex, Object param, IDbTransaction dbTransaction) in C:\dev\projects\tadbir-applications-webservice\BaseServices\Services\Implementation\SysDataAccessLayer.cs:line 2227
   at BaseServices.Services.Implementation.TargetRepository.SaveBrokerTarget(APIHeader header, Int32 brokerId, BrokerTarget brokerTarget) in C:\dev\projects\tadbir-applications-webservice\BaseServices\Services\Implementation\TargetRepository.cs:line 643


