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
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?
Try to launch 'Sync. Schema for all tables' via Development Environment before importing the license via Powershell.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156