Hi,
Thank you for your query.
In some rare instances the previously saved Encryption does not work as the system fails to identify the key and you see the error below,
"Data encryption can't be activated because the encryption key doesn't match the source encryption key used to encrypt the data. If you contact support, please provide the technical details."
In this case, in order to remove the Previously saved usernames and passwords associated with the prior Exchange Server-Side Synchronization setup you can execute the script below on the CRM Database,
1. Make a backup of the CRM organization database.
2. Execute the Script below,
USE LegacyCRMOrg_MSCRM // <Replace the "LegacyCRMOrg_MSCRM" with te DB name >
UPDATE EmailServerProfile SET IncomingPassword=null
UPDATE EmailServerProfile SET OutgoingPassword=null
UPDATE Mailbox SET Password=null
UPDATE Queue SET EmailPassword=null
UPDATE UserSettings SET EmailPassword=null
3. Restart IIS
- Open elevated Command Prompt (Run as Administrator).
- Execute command "IISRESET".
4. Sign in to Microsoft Dynamics 365 as a user with the system administrator security role.
a. Go to Settings > Data Management.
b. Click Data Encryption.
- The "Current Encryption Key" box should be available now.
- Enter the Previously saved Original Encryption key.
- Click "Activate"
You're all set.