Hi,
We have an import job where we import Itemtypes from an custom database table. We use the DynamicwebProvider as source and the ItemProvider as destination.
With testing small data sets this works fine. But when using the real data (46k records) this fails after about 30min, with the exception below.
Is there a way to fix this? See the attached job xml.
The solution is running on 9.7.4.
2020-01-27 09:56:46.847: Starting job - Import ReviewData 2 of 2. 2020-01-27 09:56:49.349: Starting reading item type Review. 2020-01-27 09:56:50.278: Finished reading item type Review. 2020-01-27 10:32:46.727: Starting import item type Review 2020-01-27 10:32:46.769: Job Failed with the following message: The operation is not valid for the state of the transaction. at System.Transactions.TransactionState.EnlistPromotableSinglePhase(InternalTransaction tx, IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Transaction atomicTransaction, Guid promoterType) at System.Transactions.Transaction.EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Guid promoterType) at System.Transactions.Transaction.EnlistPromotableSinglePhase(IPromotableSinglePhaseNotification promotableSinglePhaseNotification) at System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx) at System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx) at System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction) at System.Data.ProviderBase.DbConnectionPool.PrepareConnection(DbConnection owningObject, DbConnectionInternal obj, Transaction transaction) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at Dynamicweb.Data.DatabaseConnectionProvider.CreateConnection() at Dynamicweb.Content.Items.Queries.Repository.Update(IEnumerable`1 items, ItemContext context, Boolean synchronizePages) at Dynamicweb.DataIntegration.Providers.ItemDestinationWriter.UpdateItems(String itemType, List`1 items) at Dynamicweb.DataIntegration.Providers.ItemDestinationWriter.ImportItems() at Dynamicweb.DataIntegration.Providers.ItemProvider.ItemProvider.RunJob(Job job) 2020-01-27 10:33:04.696: Finished job - Import ReviewData 2 of 2. 2020-01-27 10:33:04.730: Batch failed.