NAV 2018 I cannot Install a Extension because the NAVTenant is State : OperationalDataUpgradePending

Hi,

I upgraded a Customer NAV database from 2013R2 to 2018CU5, after some operation for include the app extension management, I connected VS Code to the upgraded Customer NAV2018, and I dowloaded the Symbols.

I wrote an application in AL Code and I published and installed it, on a standard Cronus database NAV2018CU5 on the same server.

I tried to make the same on the customer nav2018 database, but doesn’t work. So, I have a PROBLEM with to publish the app.

In details, the VS Code return this Error: “dev/apps?tenant=default&SchemaUpdateMode=synchronize failed with code InternalServerError. Reason: Cannot install apps due to the state of the tenant: OperationalDataUpgradePending.”

After I opened the WebClient of customer, and from Extension Management I saw the estention published but I cannot Install because the webclient return this error:

“A call to Microsoft.Dynamics.Nav.Runtime.Apps.NavAppALInstaller.ALInstallNavApp failed with this message: Cannot install apps due to the state of the tenant: OperationalDataUpgradePending.”

I opened the PowerSheel ISE and I compared the configuration of the tenant:

ServerInstance : MicrosoftDynamicsNavServer$CUSTOMER2018
DatabaseName : CUSTOMER2018
DatabaseServer : NAV2018
DatabaseUserName :
State : OperationalDataUpgradePending
DetailedState :
DeletionState : Not deleted
IsInExclusiveAccessMode : False
TenantDataVersion : Uninitialized
Id : default
AlternateId : {}
AllowAppDatabaseWrite : True
NasServicesEnabled : False
RunNasWithAdminRights : False
EncryptionProvider : LocalKeyFile
AzureKeyVaultSettings :
DefaultCompany :
DefaultTimeZone : UTC
ExchangeAuthenticationMetadataLocation : https://outlook.office365.com/
AadTenantId : common
DisplayName :
UrlName :
EnvironmentType : Production


ServerInstance : MicrosoftDynamicsNavServer$DynamicsNAV110
DatabaseName : Demo Database NAV (11-0)
DatabaseServer : NAV2018
DatabaseUserName :
State : Operational
DetailedState :
DeletionState : Not deleted
IsInExclusiveAccessMode : False
TenantDataVersion : 11.0.21836.0
Id : default
AlternateId : {}
AllowAppDatabaseWrite : True
NasServicesEnabled : False
RunNasWithAdminRights : False
EncryptionProvider : LocalKeyFile
AzureKeyVaultSettings :
DefaultCompany :
DefaultTimeZone : UTC
ExchangeAuthenticationMetadataLocation : https://outlook.office365.com/
AadTenantId : common
DisplayName :
UrlName :
EnvironmentType : Production

Have u some suggestion?

Thank you,

Roberto.

Hi Roberto,

Have you done the Start-NAVDataUpgrade from Power Shell?
The server is stuck in this state until the DataUpgrade is completed.

// Alexander

Yes, what were the exact steps you followed to upgrade the customer database? From the error I would assume that you’ve started the upgrade, but it hasn’t been completed (it’s still pending).