Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

unable import license in multitenant model

Posted on by Microsoft Employee

Hi  Team,

I have a SQL Cluster, there are two SQL Server cluster, let say SQLCLUSTER01 and SQLCLUSTER02.

At the beginning, I set Navision APP database and user data database in cluster SQLCLUSTER01.

and use below command to import license, It works fine.


Import-NAVServerLicense 'MicrosoftDynamicsNavServer$instancename -LicenseData ([Byte[]]$(Get-Content -Path "C:\incadea\License\NAV2013R2Dev_6369426.flf" -Encoding Byte)) -Database Tenant –Tenant 'tenantname'

Now, in order to balance load, I hope to move some user data database to SQLCLUSTER02.

And I backup database on SQLCLUSTER01, and restored to SQLCLUSTER02.

Then I mount the tenant.

When I want to change license with the same command, I see below errors.

===============================

Import-NAVServerLicense : The following SQL error was unexpected.

Invalid object name '7000910_PCFZQK.dbo.$ndo$tenantproperty'.

Statement(s) could not be prepared.

At line:1 char:1

+ Import-NAVServerLicense 'MicrosoftDynamicsNavServer$PCN_DMS_SUPPORT' -LicenseDat ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (0:Int32) [Import-NAVServerLicense], FaultException`1

    + FullyQualifiedErrorId : MicrosoftDynamicsNavServer$PCN_DMS_SUPPORT/7000910pcfzqk,Microsoft.Dynamics.Nav.Management.Cmdlets.ImportNavServerLicense

==============================

So I think it is permission issue. but I don't know what.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: unable import license in multitenant model

    ok, thanks. I will have a try.

    I checked the event log, and find when I run the powershell, it is try to connect the database on SQLCLUSTER01. But the database is hosted on SQLCLUSTER02.

    So I have a question, does it support to change license when the App database and user data database are hosted on different SQL server?

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: unable import license in multitenant model

    Try to launch 'Sync. Schema for all tables' via Development Environment before importing the license via Powershell.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans