Salesforce Not Synchronising Donor Records After Microsoft 365 Migration
Summary
This guide helps you troubleshoot and resolve: Salesforce Not Synchronising Donor Records After Microsoft 365 Migration. Follow the steps below to fix the issue.
Common Causes
Introduction
Following a Microsoft 365 tenant migration, not-for-profit and community organisations may experience issues where donor records stored in Salesforce Nonprofit Success Pack (NPSP) fail to synchronise with volunteer management data. Donor records often originate from volunteer engagement activities; therefore, if the OAuth connector linking your volunteer management application to Salesforce NPSP loses authentication after a tenant identity change, donor record updates will cease. This article provides troubleshooting steps to re-authorise application permissions, verify conditional access policies, clear cached tokens, and resolve common synchronisation errors.
Quick Fix Steps
- Restart the volunteer management application on all workstations to clear temporary authentication errors.
- Open Salesforce NPSP and navigate to the Sync Status dashboard to identify which donor records are failing to update.
- Re-authorise the Microsoft 365 connection within the Salesforce integration settings.
- Clear cached OAuth tokens from the volunteer management application settings.
- Run a manual synchronisation to test if donor records are updating correctly.
Detailed Instructions
Re-authorise Application Permissions in Salesforce NPSP
- Log in to your Salesforce NPSP environment as a system administrator.
- From the top navigation, click the App Launcher (nine dots) and select Setup.
- In the Quick Find box, type Connected Apps and select Connected Apps from the results.
- Locate the connected app associated with your volunteer management or donor database (for example, Volunteer Management Sync or Donor Integration Connector).
- Click the Edit button.
- Review the OAuth Policies section.
- Ensure Permitted Users is set to All users may self-authorise, or confirm that the relevant volunteer coordinator profiles are listed under Profiles.
- Click Save.
- Log in to your volunteer management software.
- Navigate to Settings > Integrations > Microsoft 365 Connection.
- Click the Re-authenticate or Connect to Microsoft 365 button.
- Sign in using your migrated Microsoft 365 administrator account and grant the requested permissions.
- Return to Salesforce NPSP and trigger a test synchronisation of donor records via Setup > Data > Synchronisation Jobs.
Verify Conditional Access Policies in Microsoft Entra ID
- Log in to the Microsoft Entra admin centre using your global administrator account at
entra.microsoft.com. - Navigate to Protection > Conditional Access.
- Review the active policies to ensure the service account used for Salesforce synchronisation is not blocked.
- Check Sign-in risk policies under Protection > Risk detections to ensure the integration account is not flagged for risky sign-ins following the tenant migration.
- Review Device compliance policies under Endpoint security > Device compliance to confirm the server or workstation running the sync service meets compliance requirements.
- If a policy requires multi-factor authentication (MFA) and the integration account cannot complete MFA, create an exclusion for that specific service account under the policy's Exclude tab.
- Confirm that the policy allows sign-ins from the IP addresses used by your organisation's office or cloud environment.
- Save any policy changes and wait up to ten minutes for them to replicate across the tenant.
Clear Cached OAuth Tokens
- Close the volunteer management application completely on all workstations.
- In the application settings, navigate to Tools > Connected Accounts or Settings > Integrations.
- Select the Microsoft 365 connection and click Disconnect or Revoke Access.
- Restart the application.
- Navigate back to Settings > Integrations > Microsoft 365 Connection.
- Click Connect and sign in with your migrated Microsoft 365 credentials.
- Run a full donor record synchronisation to confirm the issue is resolved.
Troubleshooting
Synchronisation Still Failing After Re-authorisation
- Confirm that the Microsoft 365 user account used for the integration still exists in the new tenant and has not been renamed.
- Check that the Salesforce user profile has API Enabled permissions under Setup > Users > Profiles.
- Review the Salesforce debug logs for OAuth or authentication errors via Setup > Debug Logs.
- Ensure your organisation's firewall is not blocking outbound connections to Salesforce or Microsoft endpoints.
- Verify that the callback URL in the Salesforce Connected App matches the redirect URI configured in your volunteer management application.
API Limit Errors
- Check your Salesforce NPSP edition to confirm your daily API limit has not been exceeded.
- Navigate to Setup > Company Information to view remaining API calls.
- Reduce the frequency of synchronisation jobs or schedule them during off-peak hours to avoid throttling.
- If your organisation frequently hits API limits, consider upgrading your Salesforce edition or optimising data queries.
NPSP Version Compatibility
- Verify that your installed NPSP version is compatible with the current version of your volunteer management application.
- In Salesforce, go to Setup > Installed Packages and check the version number of the Nonprofit Success Pack.
- Contact your volunteer software vendor to confirm the minimum required NPSP version for OAuth synchronisation.
- If an NPSP upgrade is required, perform it in a sandbox environment first and test donor record synchronisation before deploying to production.
Common Error Codes
- 401 Unauthorised: The OAuth token is expired or invalid. Re-authorise the Microsoft 365 connection.
- 403 Forbidden: Conditional Access or device compliance policies are blocking the service account. Review Entra ID policies and add exclusions if necessary.
- 429 Too Many Requests: You have exceeded Salesforce API limits. Wait for the limit to reset or reduce sync frequency.
- INVALID_SESSION_ID: The session has expired following the tenant migration. Clear cached tokens and re-authenticate.
- ENTITY_IS_DELETED: A donor record or volunteer record referenced in the sync mapping has been deleted. Restore the record or update field mappings.
Donor Records Partially Syncing
- Verify that field mappings between your volunteer software and Salesforce NPSP were not reset during the migration.
- Check for duplicate donor records that may be blocking updates.
- Run the synchronisation during off-peak hours to reduce API throttling.
If you have completed these steps and donor records are still not synchronising, please Open a Ticket for further assistance.
Still Having Issues?
💻 Open a Ticket