diff --git a/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb b/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb index 53391606..177261cc 100644 --- a/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb +++ b/Modules.Jobs/EDMI/ZUGFeRD/ImportZUGFeRDFiles.vb @@ -289,7 +289,7 @@ Public Class ImportZUGFeRDFiles oStep = "Firebird TBEDMI_ITEM_VALUE Delete messageID Items" Try - _firebird.ExecuteNonQueryWithConnection(oDelSQL, oFBConnection) + _firebird.ExecuteNonQueryWithConnection(oDelSQL, oFBConnection, Firebird.TransactionMode.ExternalTransaction, oFBTransaction) Catch ex As Exception _logger.Error(ex) _logger.Warn("Step [{0}] with SQL [{1}] was not successful.", oStep, oDelSQL) @@ -298,7 +298,7 @@ Public Class ImportZUGFeRDFiles If oArgs.InsertIntoSQLServer = True Then oStep = "MSSQL TBEDMI_ITEM_VALUE Delete messageID Items" Try - _mssql.ExecuteNonQueryWithConnectionObject(oDelSQL, oSQLConnection) + _mssql.ExecuteNonQueryWithConnectionObject(oDelSQL, oSQLConnection, MSSQLServer.TransactionMode.ExternalTransaction, oSQLTransaction) Catch ex As Exception _logger.Warn("Step [{0}] with SQL [{1}] was not successful.", oStep, oDelSQL) End Try