Hi Everyone
I have a strange error in D365FO during the db synch step of applying a deployable package via LCS.
Full detail from the dbsync.log can be found below, the main error points me to the event log but I cannot see anything helpful there.
Any help or advice you have will be very much appreciated
Thanks
Paul
09/28/2017 10:11:21: Bindir: K:\AosService\PackagesLocalDirectory
MetadataDir: K:\AosService\PackagesLocalDirectory
Sql scripts:
09/28/2017 10:11:21: Setup mode is "servicesync".
09/28/2017 10:11:23: Getting Compatibilty Level for Database 'AxDB'. Command: SELECT compatibility_level from sys.databases where name='AxDB';
09/28/2017 10:11:23: Compatibilty Level for Database 'AxDB' is: 130
09/28/2017 10:11:23: Compatibility level '130' meets minimum required level '130'. Skipping compitability level configuration for Database 'AxDB'
09/28/2017 10:11:23: 2017-09-28T10:11:23.1625393+00:00 Beginning sync step: InitialSchema.
09/28/2017 10:11:30: 2017-09-28T10:11:30.8997469+00:00 InitialSchema finished. Time elapsed: 00:07:735.
09/28/2017 10:11:30: Using legacy ids where possible.
09/28/2017 10:11:30: 2017-09-28T10:11:30.8997469+00:00 Beginning sync step: FullIds.
09/28/2017 10:11:46: 2017-09-28T10:11:46.5405636+00:00 FullIds finished. Time elapsed: 00:15:634.
09/28/2017 10:11:46: 2017-09-28T10:11:46.5405636+00:00 Beginning sync step: PreTableViewSyncActions.
09/28/2017 10:11:46: 2017-09-28T10:11:46.5405636+00:00 Beginning sync step: pre-sync custom action: '<RunFullSync>b__1'.
09/28/2017 10:12:19: 2017-09-28T10:12:19.1133237+00:00 pre-sync custom action: '<RunFullSync>b__1' finished. Time elapsed: 00:32:571.
09/28/2017 10:12:19: 2017-09-28T10:12:19.1133237+00:00 PreTableViewSyncActions finished. Time elapsed: 00:32:571.
09/28/2017 10:12:19: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: An exception was encountered while initializing chain of command initializer, see event viewer for the detailed information
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.InitializeMetadataChainOfCommand()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments)
at Microsoft.Dynamics.AX.AOS.Startup()
at Microsoft.Dynamics.AX.AosConfig.?A0xb6e2c260.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.RunCustomAction(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Action`1 a)
at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.PreTableSync()
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)
09/28/2017 10:12:19: Inner Exception: System.InvalidOperationException: An exception was encountered while initializing chain of command initializer, see event viewer for the detailed information
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.InitializeMetadataChainOfCommand()
09/28/2017 10:12:19: The operation failed.