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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Data Encryption Key Error - SQL error

(0) ShareShare
ReportReport
Posted on by 25

I went to: settings > Data Management > Encryption Key  , Its empty as shown in the attached picture. However, If i enter a new key the following appears:

pastedimage1656115413586v1.png

SQL ERROR

Any Suggestion?

ErrorDetails.txt

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #40E1ABEDDetail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>e59e81ed-5b6c-4ef4-ad11-c794a2cb6d74</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #40E1ABED</Message>
<Timestamp>2022-06-24T23:52:37.9228958Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Data Encryption Key Error - SQL error

    Hi,

    Please enable tracing on web server to see the detailed error on the server.

    Also, please check event log for any detailed error.

  • petergroft Profile Picture
    90 on at
    RE: Data Encryption Key Error - SQL error

    Take fresh copy of DB on SQL Server 1

    Followed this guide to restore DB in SQL Server 2

    Configured Job Server and Service

    Get Error: "Could not decode parameter 'ConnectionString'. Encryption error. The data was probably encrypted with the wrong public key"

    Attempt to decrypt DB

    Get Error: "Error converting configuration parameter 'Common\MailNotification\Encrypt\ConnectPassword'. Encryption error. The data was probably encrypted with the wrong public key

    Reconfigured DB connection string via Designer

    Repeat step 4 - 6 > Same result

    Repeat step 3 - 6 trying different combinations > Same result

    Regards,

    Peter

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans