Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Data Encryption Key Error - SQL error

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>

  • petergroft Profile Picture
    petergroft 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

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 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.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans