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...
Suggested Answer

Data Encryption key missing

(0) ShareShare
ReportReport
Posted on by

Hi all

I am using a Business Central v.15. 

I have disabled and enabled encryption through code by calling DisableEncryption/EnableEncryption in codeunit "Cryptography Management". 

But now the checkbox for Data Encryption key  is not checked anymore. How can I create a data encryption key?

2019_2D00_11_2D00_11_5F00_13h10_5F00_18.png

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    At this point, I would first make a backup of the current state of the database before continuing. After that, in OnPrem environments, the keys are typically stored here:
    %programdata%\Microsoft\Microsoft Dynamics NAV\150\Server\Keys

    Are you able to export the current key. 

    We have recently seen an issue where the key was missing and one would just re-import the or a newly generated key which did cause a lot of issues. From CSS perspective, we were unable to find out what the customer / partner did before they went to Microsoft for assistance.

    Maybe if this is production data, I would suggest to file a support request via your D365BC CSP / Dynamics 365 BC partner if you are not one.

    Thanks.

  • Piedmont Profile Picture
    5 on at

    hi Marco

    We have a customer with a similar issue.  "Encryption Enabled" is toggled on, "Encryption Key Exists" is off.

    When we try to Disable Encryption, we get the error:

    Exception of type 'Microsoft.Dynamics.Nav.Types.Exceptions.Encryption.NavEncryptionKeyNotFoundException' was thrown.

    From your previous reply, it looks like we should not re-import the key.  Are you able to share how you resolved your issue?

    Thanks.

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 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans