web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Import Nav-EncrytionKEy

(1) ShareShare
ReportReport
Posted on by 18
Hi,
 
I have problem when i try to import my nav encryption key.
 
This is the code of Power Shell:
Write-Host /Creating SQL Server Encryption Key/$ServiceTierFolder = 'C://ProgramData//Microsoft//Microsoft Dynamics NAV//220//Server//Keys//'$SQLEncryptKey =  Join-Path $ServiceTierFolder 'BC22_NAVARRO_PRE.key'$Password = 'pasword'New-NAVEncryptionKey -KeyPath $SQLEncryptKey -Password (ConvertTo-SecureString -AsPlainText -Force $Password) -Force$TrustSQLServerCertificate = $true$NewBcServerInstance = 'BC22_NAVARRO_PRE'$DatabaseServer = 'database.server'$ApplicationDatabase = 'BC22_NAVARRO_PRE'                       $pwd = ConvertTo-SecureString 'password' -AsPlainText -Force$dbcred = New-Object System.Management.Automation.PSCredential (/user/, $pwd)Write-Host /Importing Encryption Key/Import-NAVEncryptionKey -ServerInstance $NewBcServerInstance -ApplicationDatabaseServer $DatabaseServer -ApplicationDatabaseCredentials $dbcred -ApplicationDatabaseName $ApplicationDatabase -KeyPath $SQLEncryptKey -Password (ConvertTo-SecureString -AsPlainText -Force $Password) -Force -Verbose
And this is the error:
Creating SQL Server Encryption KeyC://ProgramData//Microsoft//Microsoft Dynamics NAV//220//Server//Keys//BC22_NAVARRO_PRE.keyImporting Encryption KeyDETALLADO: Se está realizando la operación /Import-NAVEncryptionKey/ en el destino /ServerInstance = MicrosoftDynamicsNavServer$BC22_NAVARRO_PRE, KeyPath = C://ProgramData//Microsoft//Microsoft Dynamics NAV//220//Server//Keys//BC22_NAVARRO_PRE.key/.ADVERTENCIA: UnhandledErrorMessageImport-NAVEncryptionKey : Sintaxis no válida en la línea 13.En línea: 18 Carácter: 1+ Import-NAVEncryptionKey -ServerInstance $NewBcServerInstance -Applica ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [Import-NAVEncryptionKey], XmlSyntaxException    + FullyQualifiedErrorId : System.Security.XmlSyntaxException,Microsoft.Dynamics.Nav.Management.Cmdlets.ImportNavEncryptionKey
 
 
 
Thank you soo much
 
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans