NavEncryptionKeyNotFoundException

eYeeYe Member Posts: 168
Hi,

BC16 OnPrem, when you open Customer, Vendor or Contact cards, you get a
Microsoft.Dynamics.Nav.Types.Exceptions.Encryption.NavEncryptionKeyNotFoundException

v78zqzdghx6s.png


Kind of found a workaround which suppresses the error by disabling CDS on the CDS Connection Setup page.

I get the same exception when then trying to run DeleteEncryptionKey() from an upgrade codeunit in the OnInstallAppPerDatabase() trigger.
But if you run CreateEncryptionKey(), you get
Reason: Could not install the extension encryptionfix on tenant default due to the following error: Unable to create a new encryption key. An encryption key already exists.
Kind Regards,
Ewald Venter

Best Answer

  • eYeeYe Member Posts: 168
    Answer ✓
    Was lucky. Inspected the [dbo].[tenantproperty] table, and saw the key file name.
    Recovered the key file from a backup and everything was back to normal.
    Still unclear as to how the file got deleted...
    Kind Regards,
    Ewald Venter

Answers

  • eYeeYe Member Posts: 168
    Answer ✓
    Was lucky. Inspected the [dbo].[tenantproperty] table, and saw the key file name.
    Recovered the key file from a backup and everything was back to normal.
    Still unclear as to how the file got deleted...
    Kind Regards,
    Ewald Venter
Sign In or Register to comment.