******************** time ********************
2024-10-14 18:50:53


******************** query ********************
INSERT INTO __Android__TargetArticle__ ([Id], [TargetId], [MerchandiseId], [Amount], [Price], [Active], [Status], [FPId]) VALUES (@Id, @TargetId, @MerchandiseId, @Amount, @Price, @Active, @Status, @FPId);


******************** message ********************
The INSERT statement conflicted with the FOREIGN KEY constraint "__TargetTargetArticle__". The conflict occurred in database "PEJAM", table "dbo.__Android__Target__".
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:\Users\tadbir\source\repos\androidwebservice.git\BaseServices\Services\Implementation\SysDataAccessLayer.cs:line 2227
   at BaseServices.Services.Implementation.TargetRepository.SaveArticleList(APIHeader header, Int32 targetId, List`1 targetArticleList) in C:\Users\tadbir\source\repos\androidwebservice.git\BaseServices\Services\Implementation\TargetRepository.cs:line 529


