Skip to main content

Notifications

Announcements

No record found.

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.
  • Encryption error while debugging UAT environment from Devtest environment
    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?
  • Suggested answer
    Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Encryption error while debugging UAT environment from Devtest environment
    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

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans