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 :
Dynamics 365 Community / Forums / Finance forum / DB Sync fails while de...
Finance forum

DB Sync fails while deploying Packages from LCS - The process cannot access the file 'dbsync.log' because it is being used by another process

(0) ShareShare
ReportReport
Posted on by

Hi All,

while deploying packages from LCS it keeps failing with the below error message.  Has anyone come across this issue. Sync engine works fine while I try to do sync manually from the server using VS database Sync or using Command line.

FYI, Deployable packages from Microsoft also gives same error.

09/24/2018 07:42:46: Infolog diagnostic message: 'Cannot execute the required database operation.
The SQL database has issued an error.' on category 'Error'.
09/24/2018 07:42:46: Infolog diagnostic message: 'Object Server Database Synchronizer: ' on category 'Error'.
The process cannot access the file 'C:\DynamicsAX\RunbookExecution-ExecuteParallelRunbook-c4943f70-0a7a-4387-b029-7368883124b3_I0_R0\output\Step10\dbsync.log' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
at System.IO.File.InternalAppendAllText(String path, String contents, Encoding encoding)
at Microsoft.Dynamics.AX.Deployment.Setup.Log.FlushLog()
at Microsoft.Dynamics.AX.Deployment.Setup.Log.<>c__DisplayClass12_0.<LogImpl>b__0(Object x)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

***** Updating post after reviewing logs **********

09/24/2018 15:52:14: Beginning sync step: Raise database synchronization application event.
09/24/2018 15:52:15: Infolog diagnostic message: 'Cannot execute the required database operation.
The SQL database has issued an error.' on category 'Error'.
09/24/2018 15:52:15: Infolog diagnostic message: 'Object Server Database Synchronizer: ' on category 'Error'.
09/24/2018 15:52:15: Infolog diagnostic message: 'session 1015 (Admin)' on category 'Error'.
09/24/2018 15:52:15: Infolog diagnostic message: 'CREATE VIEW INVENTSITEONHANDAGGREGATEDVIEW AS SELECT INVENTSITEONHANDVIEW.ITEMNUMBER AS ITEMNUMBER, INVENTSITEONHANDVIEW.PRODUCTNAME AS PRODUCTNAME, INVENTSITEONHANDVIEW. AS , INVENTSITEONHANDVIEW.INVENTORYSITEID AS INVENTORYSITEID, INVENTSITEONHANDVIEW.ONHANDQUANTITY AS ONHANDQUANTITY, INVENTSITEONHANDVIEW.RESERVEDONHANDQUANTITY AS RESERVEDONHANDQUANTITYMAPPED, INVENTSITEONHANDVIEW.AVAILABLEONHANDQUANTITY AS AVAILABLEONHANDQUANTITYMAPPED, INVENTSITEONHANDVIEW.ORDEREDQUANTITY AS ORDEREDQUANTITYMAPPED, INVENTSITEONHANDVIEW.RESERVEDORDEREDQUANTITY AS RESERVEDORDEREDQUANTITYMAPPED, INVENTSITEONHANDVIEW.AVAILABLEORDEREDQUANTITY AS AVAILABLEORDEREDQUANTITYMAPPED, INVENTSITEONHANDVIEW.ONORDERQUANTITY AS ONORDERQUANTITY, INVENTSITEONHANDVIEW.TOTALAVAILABLEQUANTITY AS TOTALAVAILABLEQUANTITY, INVENTSITEONHANDVIEW.AREWAREHOUSEMANAGEMENTPROCESSESUSED AS AREWAREHOUSEMANAGEMENTPROCESSESUSED, CALCULATIONS.RESERVEDONHANDQUANTITY AS RESERVEDONHANDQUANTITY, (INVENTSITEONHANDVIEW.ONHANDQUANTITY - CALCULATIONS.RESERVEDONHANDQUANTITY) AS AVAILABLEONHANDQUANTITY, CALCULATIONS.ORDEREDQUANTITY AS ORDEREDQUANTITY, CALCULATIONS.RESERVEDORDEREDQUANTITY AS RESERVEDORDEREDQUANTITY, (CALCULATIONS.ORDEREDQUANTITY - CALCULATIONS.RESERVEDORDEREDQUANTITY) AS AVAILABLEORDEREDQUANTITY, INVENTSITEONHANDVIEW.RECID AS RECID, INVENTSITEONHANDVIEW.DATAAREAID AS DATAAREAID, INVENTSITEONHANDVIEW.PARTITION AS PARTITION FROM INVENTSITEONHANDVIEW CROSS APPLY ( SELECT COALESCE(SUM(WHSINVENTRESERVE.RESERVPHYSICAL), 0) AS RESERVPHYSICAL, COALESCE(SUM(WHSINVENTRESERVE.RESERVORDERED), 0) AS RESERVORDERED, COALESCE(SUM(WHSINVENTRESERVE.AVAILORDERED), 0) AS AVAILORDERED, COALESCE(SUM(WHSINVENTRESERVE.AVAILPHYSICAL), 0) AS AVAILPHYSICAL FROM WHSINVENTRESERVE WHERE WHSINVENTRESERVE.ITEMID = INVENTSITEONHANDVIEW.ITEMNUMBER AND WHSINVENTRESERVE.PARTITION = INVENTSITEONHANDVIEW.PARTITION AND WHSINVENTRESERVE.DATAAREAID = INVENTSITEONHANDVIEW.DATAAREAID AND EXISTS ( SELECT TOP 1 INVENTDIM.INVENTDIMID FROM INVENTDIM WHERE INVENTDIM.DATAAREAID = WHSINVENTRESERVE.DATAAREAID AND INVENTDIM.INVENTDIMID = WHSINVENTRESERVE.INVENTDIMID AND INVENTDIM.PARTITION = WHSINVENTRESERVE.PARTITION AND (INVENTDIM. = INVENTSITEONHANDVIEW. OR INVENTSITEONHANDVIEW. = '') AND (INVENTDIM.INVENTSITEID = INVENTSITEONHANDVIEW.INVENTORYSITEID OR INVENTSITEONHANDVIEW.INVENTORYSITEID = '') AND WHSINVENTRESERVE.HIERARCHYLEVEL = ( SELECT MAX(WHSRESERVATIONHIERARCHYELEMENT.RESERVATIONHIERARCHYLEVEL) FROM WHSRESERVATIONHIERARCHYELEMENT JOIN WHSRESERVATIONHIERARCHYITEM ON WHSRESERVATIONHIERARCHYITEM.ITEMDATAAREAID = INVENTSITEONHANDVIEW.DATAAREAID AND WHSRESERVATIONHIERARCHYELEMENT.PARTITION = INVENTSITEONHANDVIEW.PARTITION AND WHSRESERVATIONHIERARCHYELEMENT.RESERVATIONHIERARCHY = WHSRESERVATIONHIERARCHYITEM.RESERVATIONHIERARCHY AND WHSRESERVATIONHIERARCHYITEM.ITEMID = INVENTSITEONHANDVIEW.ITEMNUMBER WHERE (WHSRESERVATIONHIERARCHYELEMENT.DIMENSIONFIELDID = 20 AND INVENTSITEONHANDVIEW.INVENTORYSITEID != '')))) INVENTRESERVES CROSS APPLY ( SELECT (CASE WHEN INVENTSITEONHANDVIEW.AREWAREHOUSEMANAGEMENTPROCESSESUSED = 1 THEN INVENTRESERVES.AVAILORDERED + INVENTRESERVES.RESERVORDERED - INVENTRESERVES.AVAILPHYSICAL ELSE INVENTSITEONHANDVIEW.ORDEREDQUANTITY END) AS ORDEREDQUANTITY, (CASE WHEN INVENTSITEONHANDVIEW.AREWAREHOUSEMANAGEMENTPROCESSESUSED = 1 THEN INVENTRESERVES.RESERVORDERED ELSE INVENTSITEONHANDVIEW.RESERVEDORDEREDQUANTITY END) AS RESERVEDORDEREDQUANTITY, (CASE WHEN INVENTSITEONHANDVIEW.AREWAREHOUSEMANAGEMENTPROCESSESUSED = 1 THEN INVENTRESERVES.RESERVPHYSICAL ELSE INVENTSITEONHANDVIEW.RESERVEDONHANDQUANTITY END) AS RESERVEDONHANDQUANTITY) CALCULATIONS' on category 'Error'.
09/24/2018 15:52:15: Infolog diagnostic message: '[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'AS'.' on category 'Error'.
09/24/2018 15:52:17: 2018-09-24T15:52:17.3835623+00:00 post-sync custom action: '<RunFullSync>b__15_9' finished. Time elapsed: 00:03:070.
09/24/2018 15:52:17: 2018-09-24T15:52:17.3835623+00:00 PostTableViewSyncActions finished. Time elapsed: 00:25:643.
09/24/2018 15:52:17: Application configuration sync failed. Microsoft.Dynamics.AX.Framework.Database.TableSyncException: Custom action sync failed with error: 'ErrorException:Cannot execute the required database operation.
The SQL database has issued an error.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.Call(IntPtr c, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes)
at Microsoft.Dynamics.Ax.Xpp.XppObjectBase.Call(String methodName, Object[] parameters, Type[] types, Object[] varargs)
at Dynamics.AX.Application.NativeStatementImplementation.executeUpdate(String _statement)
at Dynamics.AX.Application.Statement.executeUpdate(String _statement)
at Dynamics.AX.Application.ApplicationSQLObjects.`executeSqlStatement(String _sqlStatementText) in xppSource://Source/ApplicationFoundation\AxClass_ApplicationSQLObjects.xpp:line 182
at Dynamics.AX.Application.ApplicationSQLObjects.ApplicationSQLObjectsCoCHelper.`executeSqlStatement(ApplicationSQLObjects instance, String arg0)
at Dynamics.AX.Application.ApplicationSQLObjects.executeSqlStatement(String _sqlStatementText)
at Dynamics.AX.Application.InventOnHandAggregatedViewBuilder.`createViews() in xppSource://Source/Foundation\AxClass_InventOnHandAggregatedViewBuilder.xpp:line 48
at Dynamics.AX.Application.InventOnHandAggregatedViewBuilder.InventOnHandAggregatedViewBuilderCoCHelper.`createViews(InventOnHandAggregatedViewBuilder instance)
at Dynamics.AX.Application.InventOnHandAggregatedViewBuilder.createViews()
at Dynamics.AX.Application.ApplicationSQLObjects.`createSqlObjects() in xppSource://Source/ApplicationFoundation\AxClass_ApplicationSQLObjects.xpp:line 368
at Dynamics.AX.Application.ApplicationSQLObjects.ApplicationSQLObjectsCoCHelper.`createSqlObjects(ApplicationSQLObjects instance)
at Dynamics.AX.Application.ApplicationSQLObjects.createSqlObjects()
at Dynamics.AX.Application.InventSiteOnHandAggregatedViewBuilder.`dbSynchronize(Int32 _tableId, Boolean _syncAsNeeded, Boolean _continueOnError, Boolean _showProgress, Object[] _checkSyncTables, Boolean _createAllIndexes, Boolean _useLockForSingleTable) in xppSource://Source/Foundation\AxClass_InventSiteOnHandAggregatedViewBuilder.xpp:line 32
at Dynamics.AX.Application.InventSiteOnHandAggregatedViewBuilder.InventSiteOnHandAggregatedViewBuilderCoCHelper.`dbSynchronize(InventSiteOnHandAggregatedViewBuilder instance, Int32 arg0, Boolean arg1, Boolean arg2, Boolean arg3, Object[] arg4, Boolean arg5, Boolean arg6)
at Dynamics.AX.Application.InventSiteOnHandAggregatedViewBuilder.dbSynchronize(Int32 _tableId, Boolean _syncAsNeeded, Boolean _continueOnError, Boolean _showProgress, Object[] _checkSyncTables, Boolean _createAllIndexes, Boolean _useLockForSingleTable)
at Dynamics.AX.Application.Application.onDbSynchronizeType.Invoke(Int32 , Boolean , Boolean , Boolean , Object[] , Boolean , Boolean )
at Dynamics.AX.Application.Application.`RaiseOnDbSynchronize(Int32 tableId, Boolean syncAsNeeded, Boolean continueOnError, Boolean showProgress, Object[] checkSyncTables, Boolean createAllIndexes, Boolean useLockForSingleTable, Boolean @tableId_IsDefaultSet, Boolean @syncAsNeeded_IsDefaultSet, Boolean @continueOnError_IsDefaultSet, Boolean @showProgress_IsDefaultSet, Boolean @checkSyncTables_IsDefaultSet, Boolean @createAllIndexes_IsDefaultSet, Boolean @useLockForSingleTable_IsDefaultSet) in xppSource://Source/ApplicationPlatform\AxClass_Application.xpp:line 379
at Dynamics.AX.Application.Application.ApplicationCoCHelper.`RaiseOnDbSynchronize(Application instance, Int32 arg0, Boolean arg1, Boolean arg2, Boolean arg3, Object[] arg4, Boolean arg5, Boolean arg6, Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Dynamics.AX.Application.Application.RaiseOnDbSynchronize(Int32 tableId, Boolean syncAsNeeded, Boolean continueOnError, Boolean showProgress, Object[] checkSyncTables, Boolean createAllIndexes, Boolean useLockForSingleTable, Boolean @tableId_IsDefaultSet, Boolean @syncAsNeeded_IsDefaultSet, Boolean @continueOnError_IsDefaultSet, Boolean @showProgress_IsDefaultSet, Boolean @checkSyncTables_IsDefaultSet, Boolean @createAllIndexes_IsDefaultSet, Boolean @useLockForSingleTable_IsDefaultSet)
at Dynamics.AX.Application.Application.RaiseOnDbSynchronize(Int32 tableId, Boolean syncAsNeeded)
at Microsoft.Dynamics.AX.Deployment.Setup.AppOperations.RaiseOnDbsyncSyncApplEvent()
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c__DisplayClass28_0.<RunCustomAction>b__0()
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)' ---> Microsoft.Dynamics.Ax.Xpp.ErrorException: Cannot execute the required database operation.
The SQL database has issued an error.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip)
at Microsoft.Dynamics.Ax.MSIL.cqlClassIL.Call(IntPtr c, String methodName, Object[] parameters, Type[] types, Object[] varargs, Type[] varargsTypes)
at Microsoft.Dynamics.Ax.Xpp.XppObjectBase.Call(String methodName, Object[] parameters, Type[] types, Object[] varargs)
at Dynamics.AX.Application.NativeStatementImplementation.executeUpdate(String _statement)
at Dynamics.AX.Application.Statement.executeUpdate(String _statement)
at Dynamics.AX.Application.ApplicationSQLObjects.`executeSqlStatement(String _sqlStatementText) in xppSource://Source/ApplicationFoundation\AxClass_ApplicationSQLObjects.xpp:line 182
at Dynamics.AX.Application.ApplicationSQLObjects.ApplicationSQLObjectsCoCHelper.`executeSqlStatement(ApplicationSQLObjects instance, String arg0)
at Dynamics.AX.Application.ApplicationSQLObjects.executeSqlStatement(String _sqlStatementText)
at Dynamics.AX.Application.InventOnHandAggregatedViewBuilder.`createViews() in xppSource://Source/Foundation\AxClass_InventOnHandAggregatedViewBuilder.xpp:line 48
at Dynamics.AX.Application.InventOnHandAggregatedViewBuilder.InventOnHandAggregatedViewBuilderCoCHelper.`createViews(InventOnHandAggregatedViewBuilder instance)
at Dynamics.AX.Application.InventOnHandAggregatedViewBuilder.createViews()
at Dynamics.AX.Application.ApplicationSQLObjects.`createSqlObjects() in xppSource://Source/ApplicationFoundation\AxClass_ApplicationSQLObjects.xpp:line 368
at Dynamics.AX.Application.ApplicationSQLObjects.ApplicationSQLObjectsCoCHelper.`createSqlObjects(ApplicationSQLObjects instance)
at Dynamics.AX.Application.ApplicationSQLObjects.createSqlObjects()
at Dynamics.AX.Application.InventSiteOnHandAggregatedViewBuilder.`dbSynchronize(Int32 _tableId, Boolean _syncAsNeeded, Boolean _continueOnError, Boolean _showProgress, Object[] _checkSyncTables, Boolean _createAllIndexes, Boolean _useLockForSingleTable) in xppSource://Source/Foundation\AxClass_InventSiteOnHandAggregatedViewBuilder.xpp:line 32
at Dynamics.AX.Application.InventSiteOnHandAggregatedViewBuilder.InventSiteOnHandAggregatedViewBuilderCoCHelper.`dbSynchronize(InventSiteOnHandAggregatedViewBuilder instance, Int32 arg0, Boolean arg1, Boolean arg2, Boolean arg3, Object[] arg4, Boolean arg5, Boolean arg6)
at Dynamics.AX.Application.InventSiteOnHandAggregatedViewBuilder.dbSynchronize(Int32 _tableId, Boolean _syncAsNeeded, Boolean _continueOnError, Boolean _showProgress, Object[] _checkSyncTables, Boolean _createAllIndexes, Boolean _useLockForSingleTable)
at Dynamics.AX.Application.Application.onDbSynchronizeType.Invoke(Int32 , Boolean , Boolean , Boolean , Object[] , Boolean , Boolean )
at Dynamics.AX.Application.Application.`RaiseOnDbSynchronize(Int32 tableId, Boolean syncAsNeeded, Boolean continueOnError, Boolean showProgress, Object[] checkSyncTables, Boolean createAllIndexes, Boolean useLockForSingleTable, Boolean @tableId_IsDefaultSet, Boolean @syncAsNeeded_IsDefaultSet, Boolean @continueOnError_IsDefaultSet, Boolean @showProgress_IsDefaultSet, Boolean @checkSyncTables_IsDefaultSet, Boolean @createAllIndexes_IsDefaultSet, Boolean @useLockForSingleTable_IsDefaultSet) in xppSource://Source/ApplicationPlatform\AxClass_Application.xpp:line 379
at Dynamics.AX.Application.Application.ApplicationCoCHelper.`RaiseOnDbSynchronize(Application instance, Int32 arg0, Boolean arg1, Boolean arg2, Boolean arg3, Object[] arg4, Boolean arg5, Boolean arg6, Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Dynamics.AX.Application.Application.RaiseOnDbSynchronize(Int32 tableId, Boolean syncAsNeeded, Boolean continueOnError, Boolean showProgress, Object[] checkSyncTables, Boolean createAllIndexes, Boolean useLockForSingleTable, Boolean @tableId_IsDefaultSet, Boolean @syncAsNeeded_IsDefaultSet, Boolean @continueOnError_IsDefaultSet, Boolean @showProgress_IsDefaultSet, Boolean @checkSyncTables_IsDefaultSet, Boolean @createAllIndexes_IsDefaultSet, Boolean @useLockForSingleTable_IsDefaultSet)
at Dynamics.AX.Application.Application.RaiseOnDbSynchronize(Int32 tableId, Boolean syncAsNeeded)
at Microsoft.Dynamics.AX.Deployment.Setup.AppOperations.RaiseOnDbsyncSyncApplEvent()
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c__DisplayClass28_0.<RunCustomAction>b__0()
at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)

Thanks,

Manish

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    The first thing to check is that nobody is logged in on the target VM, possibly having some files open and locked.

  • Community Member Profile Picture
    on at

    Hi,

    No, there’s no one else using the system. It’s a Config one box environment.

  • Suggested answer
    PilgrimCZ Profile Picture
    572 on at

    Hi Manish,

    please try to logon to machine and check if all needed services are stopped (batch, data management, management reporter, world wide web). If not stop them and try to resume you deployment from LCS.

    Marek

  • Community Member Profile Picture
    on at

    Thanks Marek for your suggestion,  Tried it already. Didn't work.

  • PilgrimCZ Profile Picture
    572 on at

    Did you also check SQL, if there are no locks?

  • Community Member Profile Picture
    on at

    Hi Marek,

    Nope, Checked it now, there are no locks.

    Weird thing is I'm able to run the sync engine manually using command line or from Visual studio without any errors.

  • Verified answer
    Community Member Profile Picture
    on at

    All,

    Finally managed to figure out the issue : "It was nothing but the Ledger Basic config key in disabled status"

    I had to enable all the Inventory related ConfigKeys under "LedgerBasic" parent key. This solved the issue across all environments.

    Feels weird, I thought that the Syncengine wouldn't pickup the objects which are disabled by config keys.

    My apologies for marking answer to my own post.

  • Community Member Profile Picture
    on at

    Hi Manish,

    If I encounter the same issue as urs but it happened when I run the Data Upgrade 8.0 deployable package into my PU15 8.0 environment.

    What should I do?

    Regards,

    Wilson Chua

  • Community Member Profile Picture
    on at

    I would take a careful look at the dbsync error log.  Make sure that you have the necessary config keys enabled to sync the objects to database. If you still come across any issue, post it in the community forum. I will be always happy to help.

    and "Always remember to apply updates through LCS only." applying updates manually using command line is a wrong way, Unless you apply updates through LCS, you will never know the issues.

    My understanding of Syncengine was wrong, that was the main reason.

    Thanks,

    Manish

  • MSD 365 Profile Picture
    Microsoft Employee on at

    Deploment has failed; 

    Log is mentioned below please help

    ========= Beginning trace at: 2021-01-05T20:42:26.2155305Z =========
    --- Installer Version: 7.5688.35577.0
    --- Runbook ID: 58283587-f91d-41ba-a1b9-f0c5c6b3e5fa
    --- Mode: EXECUTE
    ====================================================================
    [20:42:26.9812] Checking if 'Microsoft.Dynamics.AX.Deployment.Setup' is running
    [20:42:26.9812] No running instances of 'Microsoft.Dynamics.AX.Deployment.Setup' is found
    [20:42:26.9812] Successfully retrieved value:System.String[] for key:EnabledServicingFeatures
    [20:42:26.9812] Is the machine level auto-resume enabled: True
    [20:42:26.9812] Start: [1-Stop-RetailServer-dev6dfd1b465d-1]
    [20:42:26.9812] Start: [2-Stop-MROneBox-dev6dfd1b465d-1]
    [20:42:26.9812] Start: [3-Stop-DIXFService-dev6dfd1b465d-1]
    [20:42:27.8092] End: [3-Stop-DIXFService-dev6dfd1b465d-1]
    [20:42:33.5437] End: [2-Stop-MROneBox-dev6dfd1b465d-1]
    [20:42:58.5871] End: [1-Stop-RetailServer-dev6dfd1b465d-1]
    [20:42:59.6496] Start: [4-Stop-AOSService-dev6dfd1b465d-1]
    [20:43:10.3065] End: [4-Stop-AOSService-dev6dfd1b465d-1]
    [20:43:12.0409] Start: [5-BackupConnectionString-AOSService-dev6dfd1b465d-1]
    [20:43:12.0409] Start: [6-Backup-AOSService-dev6dfd1b465d-1]
    [20:43:12.1347] End: [5-BackupConnectionString-AOSService-dev6dfd1b465d-1]
    [21:03:57.8142] End: [6-Backup-AOSService-dev6dfd1b465d-1]
    [21:04:01.5032] Start: [7-Update-AOSService-dev6dfd1b465d-1]
    [21:21:18.2615] End: [7-Update-AOSService-dev6dfd1b465d-1]
    [21:21:19.8335] Start: [8-ETWUpdate-AOSService-dev6dfd1b465d-1]
    [21:21:20.0210] End: [8-ETWUpdate-AOSService-dev6dfd1b465d-1]
    [21:21:21.9898] Start: [9-InstallationInfoUpdate-AOSService-dev6dfd1b465d-1]
    [21:21:21.9898] Start: [10-GlobalUpdateConfig-AOSService-dev6dfd1b465d-1]
    [21:21:22.1304] End: [10-GlobalUpdateConfig-AOSService-dev6dfd1b465d-1]
    [21:21:22.1304] End: [9-InstallationInfoUpdate-AOSService-dev6dfd1b465d-1]
    [21:21:24.2555] Start: [11-GlobalBackup-AOSService-dev6dfd1b465d-1]
    [21:21:26.0534] End: [11-GlobalBackup-AOSService-dev6dfd1b465d-1]
    [21:21:26.3972] Start: [12-GlobalUpdate-AOSService-dev6dfd1b465d-1]
    [00:21:26.6079] Exception caught when executing step. StepID: [12], StepType: [GlobalUpdate script for service model: AOSService on machine: dev6dfd1b465d-1], ServiceModel: [AOSService]
    [00:21:26.6079] The process cannot access the file 'C:\DynamicsAX\RunbookExecution-ExecuteParallelRunbook-58283587-f91d-41ba-a1b9-f0c5c6b3e5fa_I0_R0\output\Step12\dbsync.error_20210105212145.log' because it is being used by another process.
    [00:21:26.6079] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    [00:21:26.6079] at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    [00:21:26.6079] at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    [00:21:26.6079] at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
    [00:21:26.6079] at System.IO.StreamReader..ctor(String path)
    [00:21:26.6079] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookAutomatedStepExecutor.AnalyzeErrorLogs(Step step, String logDir, String errorMessage)
    [00:21:26.6079] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookAutomatedStepExecutor.ResolveScriptExecutionResult(Step step, Boolean silent, ScriptExecutionResult result, String logDir)
    [00:21:26.6079] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookAutomatedStepExecutor.ExecuteRunbookStep(Step step, String updatePackageFilePath, Boolean silent, Boolean versionCheck, String runbookid, Parameters& parameters, List`1 logList)
    [00:21:26.6079] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteStep(Step step, String updatePackageFilePath, Boolean silent, Boolean versionCheck, String runbookid, Parameters parameters)
    [00:21:26.6079] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.RunbookExecutor.ExecuteRunbookStepList(RunbookData runbookData, String updatePackageFilePath, Boolean silent, String stepID, ExecuteStepMode executeStepMode, Boolean versionCheck, Parameters parameters)
    [00:21:26.6079] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.<>c__DisplayClass30_0.<NewThreadToExecuteStep>b__0()
    [00:21:26.6079] End: [12-GlobalUpdate-AOSService-dev6dfd1b465d-1]
    [00:21:35.5543] The configured package types applicable for machine level auto resume: PlatformOnlyPackage,ApplicationOnlyPackage,PlatAppBinaryHotfixPackage
    [00:21:35.5543] Is the package type being applied on the environment applicable for machine-level auto resume?: False
    [00:21:35.5543] Checking whether machine level auto resume can be started, canStartMachineLevelAutoResume: False
    [00:21:35.7106] Exception[196609] found.
    [00:21:35.7106] There are one or more failed step during the runbook execution, please check the runbook xml and log for more detail
    [00:21:35.7106]
    [00:21:35.7106] The step 12 failed with the following error:
    [00:21:35.7106] The step failed
    [00:21:35.7106] at Microsoft.Dynamics.AX.AXUpdateInstallerBase.AXUpdateInstallerBase.ExecuteParallel(String runbookID, Boolean silent, String updatePackageFilePath, Boolean versionCheck, Parameters param)
    [00:21:35.7106] at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.InstallUpdate(String[] args)
    [00:21:35.7106] at Microsoft.Dynamics.AX.AXUpdateInstaller.Program.Main(String[] args)
    [00:21:35.7106] Exiting with exit code [196609]
    =========== Ending trace at: 2021-01-06T00:21:35.7106391Z ==========

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans