Server instance: DynamicsNAV90
Tenant ID:
User:
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NCLCaptionStrings.GetValueOrDefault()
at Microsoft.Dynamics.Nav.Runtime.NCLMetaTable.get_TableCaptionSafe()
at Microsoft.Dynamics.Nav.Runtime.NCLMetaTable.GetFieldByNo(Int32 fieldNo)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaTable.ResolveFieldTriggerHandlers()
at Microsoft.Dynamics.Nav.Runtime.NCLMetaTable.OnClrTypeLoaded()
at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.CompileAndLoadClrObject()
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Boolean onlySearchCache, Int32 appGroupId)
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.TryGetMetaApplicationObject(ApplicationObjectId appObjectId, NCLMetaApplicationObject& metaApplicationObject, Int32 appGroupId, Boolean requireCompiled, Boolean onlySearchCache)
at Microsoft.Dynamics.Nav.EventSubscription.NavEventSubscription..ctor(NCLMetaCodeunit subscriberCodeunit, MethodInfo subscriberMethodInfo, NavAppGroup subscriberNavAppGroup)
at Microsoft.Dynamics.Nav.EventSubscription.NavEventSubscription.<FindDefinedEventSubscriptions>d__22.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Microsoft.Dynamics.Nav.EventSubscription.NavEventSubscriptionMetadata.CreateNavEventSubscriptionsFromCodeunitIds(IEnumerable`1 codeunitIds, NavAppGroup appGroup)
at Microsoft.Dynamics.Nav.EventSubscription.NavEventSubscriptionMetadata.Initialize(Boolean bindSubscriptions)
at Microsoft.Dynamics.Nav.Runtime.NavEnvironment.OnApplicationMounted(NavTenantCollection tenantCollection)
at Microsoft.Dynamics.Nav.Runtime.NavTenantCollection.AddSystemTenant(String appDatabaseServerName, String appDatabaseName, String appDatabaseUserName, ProtectedDatabasePassword appDatabasePassword, Boolean verifyConnection, String newEncryptionKey, IDatabasePasswordPublicEncryptionKeyStorage keyStorage, Boolean allowOverwritePublicKey, Boolean verifyServerInstanceKey)
at Microsoft.Dynamics.Nav.Runtime.NavTenantCollection.AddSingleLegacyTenant(String databaseServerName, String databaseName, String databaseUserName, ProtectedDatabasePassword databasePassword, EncryptionProvider encryptionProvider, AzureKeyVaultSettings azureKeyVaultSettings)
at Microsoft.Dynamics.Nav.Runtime.NavTenantCollection.ConfigureTenants(ServerUserSettings settings)
at System.Threading.Tasks.Task.Execute()
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2147467261
The Microsoft Dynamics NAV server is currently not ready to serve requests. Try again later or contact your system administrator.
Comments
The problem is solved though. A couple of tables had compiler errors.
After solving those, the service responded and I was able to run the sync-tenant command.