hi All,
followed the upgrade instruction from WIKI to upgrade our dev server from 1611 to platform update 4
https://ax.help.dynamics.com/en/wiki/upgrade-latest-platform-update/
to unzip, create runbook and install the platform update.
but its failed in DBSync steps.
I try to run DBSync powerscript manually but no luck.
the error message shown "Failed to open SQL connection" in dbsync.log
checked axdbadmin account, it has full rights to access AXDB.
then I skipped the dbsync. all other steps were processed successfully without error.
below is the log I captured from log and event viewer
03/07/2017 19:37:13: Setup mode is "servicesync".
03/07/2017 19:37:13: 2017-03-07T19:37:13.9056959+08:00 Beginning sync step: InitialSchema.
03/07/2017 19:37:18: 2017-03-07T19:37:18.3191471+08:00 InitialSchema finished. Time elapsed: 00:04:413.
03/07/2017 19:37:18: 2017-03-07T19:37:18.3211469+08:00 Beginning sync step: FullIds.
03/07/2017 19:37:18: Using legacy ids where possible.
03/07/2017 19:37:29: 2017-03-07T19:37:29.4842725+08:00 FullIds finished. Time elapsed: 00:11:162.
03/07/2017 19:37:29: 2017-03-07T19:37:29.4872753+08:00 Beginning sync step: PreTableViewSyncActions.
03/07/2017 19:37:29: 2017-03-07T19:37:29.4872753+08:00 Beginning sync step: pre-sync custom action: '<RunFullSync>b__15_0'.
03/07/2017 19:37:59: 2017-03-07T19:37:59.8118618+08:00 pre-sync custom action: '<RunFullSync>b__15_0' finished. Time elapsed: 00:30:324.
03/07/2017 19:37:59: 2017-03-07T19:37:59.8118618+08:00 PreTableViewSyncActions finished. Time elapsed: 00:30:324.
03/07/2017 19:37:59: Failed to open SQL connection
03/07/2017 19:37:59: The operation failed.
03/07/2017 19:48:09: Bindir: J:\AosService\PackagesLocalDirectory
MetadataDir: J:\AosService\PackagesLocalDirectory
Sql scripts:
exceptionDetails:
Microsoft.Dynamics.AX.InitializationException: Failed to open SQL connection at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments) at Microsoft.Dynamics.AX.AOS.Startup() at Microsoft.Dynamics.AX.AosConfig.?A0x0d73e1d0.GetAosConfig() at Microsoft.Dynamics.AX.AosConfig.Config.InitInternal(Boolean isOfflineMode) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.StartAosCode(SyncOptions syncOptions, String sqlConnectionString) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler) at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunFullTableSync(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider) at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullTableViewSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullSync() at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync(SyncOptions options) at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options)
Message:
Failed to open SQL connection
best regards,
Ken