web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

DB Synchronization issue (DEV Environment)

(1) ShareShare
ReportReport
Posted on by 64
Dear Expert,
 
I am experiencing an error while synchronizing DB in my Development environment. Can anyone please help me. Application release is 10.0.39
 
Categories:
I have the same question (0)
  • Suggested answer
    Aymen CHELBI Profile Picture
    620 Super User 2026 Season 1 on at
    Hello, 
     
    Turn off the service (IIS Admin service, Management reporter 2012 Process service, both D365 services barch and framework) and retry.
     
    Best regards,
  • André Arnaud de Calavon Profile Picture
    305,182 Super User 2026 Season 1 on at
    Hi,
     
    Can you tell us from what exact process this DB sync is started? Are you deploying customizations, an ISV solution, or a Dynamics 365 update? In case you are deploying cutomizations, please indicate what exactly got changed. Can you find detailed execution logs with a possible reason for the DB sync failure?
  • Suggested answer
    Navneeth Nagrajan Profile Picture
    2,618 Super User 2026 Season 1 on at
    Hi,
     
    The CAS blocking the .NET assembly. Two possibilities:
    1. While extracting the executable package, have you unblocked the zip file from your file explorer in Windows server? if you don't then, there are certain assemblies that are blocked.
    2. Would suggest, re-run step number 11 post re-extraction? Also, ensure your environment is bug free before upgrading (Through full build and DB Sync etc.).
    3. If you have custom code calling Azure blob storage or any kind of .NET dlls then check the size of those dll files pre-upgrade. Ensure those dlls are not blocked.
     
    Hope this helps.  
  • Ahmed Alam Profile Picture
    64 on at
    Hello Experts,
     
    I have recently implemented application version 10.0.39. On 3rd of Feb I have completed the whole implementation, and it was perfectly fine.
     
    Yesterday tried to execute on ISV into my DEV machine and tried to install or execute it through CMD. While it reaches to Step 11 it shows error. I have tried it from VISUAL STUDIO still same issue.
     
    @Aymen CHELBI I have tried your suggested process but still failed.
     
    @Navneeth Nagrajan Yes! I have un-block the package prior to execution.
  • Ahmed Alam Profile Picture
    64 on at
    Good morning.
     
    Just tried to synchronize DB from VS and found this error.
     
    RelatedActivityId 00000000-0000-0000-0000-000000000000
    Log level - Error | System.Data.SqlClient.SqlException (0x80131904): During undo of a logged operation in database 'AxDB', an error occurred at log record ID (1385:8056:102). The row was not found. Restore the database from a full backup, or repair the database.
    During undoing of a logged operation in database 'AxDB' (page (1:491299) if any), an error occurred at log record ID (1385:8056:102). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    The log for database 'AxDB' is not available. Check the operating system error log for related error messages. Resolve any errors and restart the database.
    During undoing of a logged operation in database 'AxDB' (page (0:0) if any), an error occurred at log record ID (1385:8056:102). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    During undoing of a logged operation in database 'AxDB' (page (0:0) if any), an error occurred at log record ID (1383:4537:1). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    Cannot continue the execution because the session is in the kill state.
    A severe error occurred on the current command.  The results, if any, should be discarded.
       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.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestAsync(CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalAsync(CancellationToken ctoken)
       at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServerAsync(Int32 columnCount, CancellationToken ctoken)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServer(DataTable table, DataRowState rowState)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.<>c__DisplayClass7_0`1.<WriteRecordsToServerWithRetry>b__0()
       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.<>c__DisplayClass1.<ExecuteAction>b__0()
       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.WriteRecordsToServerWithRetry[T](SqlBulkCopy bulkCopy, DataTable dataTable, Int32 retryCount)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.WriteRecordsToServerWithExponentialBackoff(SqlBulkCopy bulkCopy, DataTable dataTable, Int32 retryCount)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.CommitByRecreate(SqlConnection businessSqlConnection)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.Commit(SqlConnectionProvider sqlConnectionProvider)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.runFullSync()
       at Microsoft.Dynamics.AX.Framework.Database.Tools.IdSync.<>c.<RunFullSync>b__7_1(RunDelegate x)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
    ClientConnectionId:01cd66e1-86f9-4811-9b42-08fbcc1cbfa7
    Error Number:3316,State:1,Class:21
    Log level - Error | System.Data.SqlClient.SqlException (0x80131904): During undo of a logged operation in database 'AxDB', an error occurred at log record ID (1385:8056:102). The row was not found. Restore the database from a full backup, or repair the database.
    During undoing of a logged operation in database 'AxDB' (page (1:491299) if any), an error occurred at log record ID (1385:8056:102). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    The log for database 'AxDB' is not available. Check the operating system error log for related error messages. Resolve any errors and restart the database.
    During undoing of a logged operation in database 'AxDB' (page (0:0) if any), an error occurred at log record ID (1385:8056:102). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    During undoing of a logged operation in database 'AxDB' (page (0:0) if any), an error occurred at log record ID (1383:4537:1). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    Cannot continue the execution because the session is in the kill state.
    A severe error occurred on the current command.  The results, if any, should be discarded.
       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.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestAsync(CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalAsync(CancellationToken ctoken)
       at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServerAsync(Int32 columnCount, CancellationToken ctoken)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServer(DataTable table, DataRowState rowState)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.<>c__DisplayClass7_0`1.<WriteRecordsToServerWithRetry>b__0()
       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.<>c__DisplayClass1.<ExecuteAction>b__0()
       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.WriteRecordsToServerWithRetry[T](SqlBulkCopy bulkCopy, DataTable dataTable, Int32 retryCount)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.WriteRecordsToServerWithExponentialBackoff(SqlBulkCopy bulkCopy, DataTable dataTable, Int32 retryCount)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.CommitByRecreate(SqlConnection businessSqlConnection)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.Commit(SqlConnectionProvider sqlConnectionProvider)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.runFullSync()
       at Microsoft.Dynamics.AX.Framework.Database.Tools.IdSync.<>c.<RunFullSync>b__7_1(RunDelegate x)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
    ClientConnectionId:01cd66e1-86f9-4811-9b42-08fbcc1cbfa7
    Error Number:3316,State:1,Class:21
    Database synchronization completed (23294 ms). Errors found.
    Log level - Error | System.Data.SqlClient.SqlException (0x80131904): During undo of a logged operation in database 'AxDB', an error occurred at log record ID (1385:8056:102). The row was not found. Restore the database from a full backup, or repair the database.
    During undoing of a logged operation in database 'AxDB' (page (1:491299) if any), an error occurred at log record ID (1385:8056:102). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    The log for database 'AxDB' is not available. Check the operating system error log for related error messages. Resolve any errors and restart the database.
    During undoing of a logged operation in database 'AxDB' (page (0:0) if any), an error occurred at log record ID (1385:8056:102). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    During undoing of a logged operation in database 'AxDB' (page (0:0) if any), an error occurred at log record ID (1383:4537:1). Typically, the specific failure is logged previously as an error in the operating system error log. Restore the database or file from a backup, or repair the database.
    Cannot continue the execution because the session is in the kill state.
    A severe error occurred on the current command.  The results, if any, should be discarded.
       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.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestAsync(CancellationToken cts, TaskCompletionSource`1 source)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternalAsync(CancellationToken ctoken)
       at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServerAsync(Int32 columnCount, CancellationToken ctoken)
       at System.Data.SqlClient.SqlBulkCopy.WriteToServer(DataTable table, DataRowState rowState)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.<>c__DisplayClass7_0`1.<WriteRecordsToServerWithRetry>b__0()
       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.<>c__DisplayClass1.<ExecuteAction>b__0()
       at Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.WriteRecordsToServerWithRetry[T](SqlBulkCopy bulkCopy, DataTable dataTable, Int32 retryCount)
       at Microsoft.Dynamics.AX.Data.Management.SqlCommandFactory.WriteRecordsToServerWithExponentialBackoff(SqlBulkCopy bulkCopy, DataTable dataTable, Int32 retryCount)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.CommitByRecreate(SqlConnection businessSqlConnection)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.Commit(SqlConnectionProvider sqlConnectionProvider)
       at Microsoft.Dynamics.AX.Framework.Database.Tools.TableIdSync.runFullSync()
       at Microsoft.Dynamics.AX.Framework.Database.Tools.IdSync.<>c.<RunFullSync>b__7_1(RunDelegate x)
       at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
       at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
       at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
    ClientConnectionId:01cd66e1-86f9-4811-9b42-08fbcc1cbfa7
    Error Number:3316,State:1,Class:21
    syncengine.exe exited with code -1.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 584 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans