InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called ============================================================================= Message : An error occurred while updating the entries. See the inner exception for details. StackTrace :System.Data.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.SqlClient.SqlException: The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_ItemMaster_ManufacturerMaster". The conflict occurred in database "1_5EA8C2EB-57CD-41ED-AA0F-47059BF33854", table "dbo.ManufacturerMaster", column 'ID'. The statement has been terminated. at System.Data.SqlClient.SqlConnection.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, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues) at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) --- End of inner exception stack trace --- at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options) at eTurns.DAL.ItemMasterDAL.Edit(ItemMasterDTO objDTO) at eTurns.DAL.OrderDetailsDAL.DB_Insert(OrderDetailsDTO objDTO) at eTurnsServices.EDIwebService.InsertOrder(EDIOrderMasterDTO[] objDTO, String EnterpriseName) Date :6/15/2016 7:55:37 PM ============================================================================= InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called ============================================================================= Message : Object reference not set to an instance of an object. StackTrace :System.NullReferenceException: Object reference not set to an instance of an object. at eTurnsServices.EDIwebService.InsertOrder(EDIOrderMasterDTO[] objDTO, String EnterpriseName) Date :6/15/2016 9:26:54 PM ============================================================================= InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called InsertOrder called