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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Encryption error while debugging UAT environment from Devtest environment

(1) ShareShare
ReportReport
Posted on by 8
Hello, I have been working with debugging my UAT environment based through a Devtest environment following this link here:
Debug a copy of the production database - Finance & Operations | Dynamics 365 | Microsoft Learn

However I have run into an issue. When making a connection to the UAT environment from my Devtest, I have this encryption error that pops up and doesn't let me create new contracts in the system.
Encryption error occured with exception: Microsoft.Dynamics.Ax.Xpp.Security.CryptoEncryptionException: Encryption error occured with exception: Microsoft.Dynamics.AX.Configuration.CertificateHandler.NoCertificateFoundException: No certificate found for id -----

I re-entered in my secret keys in the key vault parameters, and that fixes it for Devtest, but it then locks out any users from writing anything into the UAT environment. It seems currently that only one environment can write to the environment at a time, which shouldn't happen due to the page linked above stating that transactions should go through fine on the UAT environment while I am debugging. I have a feeling it may be something to do with the environments encrypting the secret keys from each other, but I'm not certain. Is there a way to solve this issue? Thanks.
I have the same question (0)
  • Suggested answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    You can check the old threads about this error. It mentioned Certain Data is Encrypted Which Environment-Specific Fields in the Target DataBase. These value of Dropped PurposeFully and Need to be re-entered. Solved: Possible way of Importing KeyVault Parameter values from one environment to another (dynamics.com)
    This article is also about the description of encryption:Golden configuration promotion - Finance & Operations | Dynamics 365 | Microsoft Learn

    In addition, you can view this blog, it also mentioned this error. You can run the script in the blog, then execute the IIS reset and restart the VM.
    https://dynamicsexemplified.wordpress.com/2021/08/10/dealing-with-crypto-encryption-error-in-dynamics-365-finance-and-supply-chain-tier-1-developer-machine/
    Best Regards,
    Hana
  • Community member Profile Picture
    8 on at
    I just want to clarify something, does connecting to the UAT database from the DevTest environment count as importing the database? I understand that the data is encrypted and needs to be re-entered, but I am not directly importing the database. Is it still a Microsoft limitation that I would need to re-enter the keys?

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans