---
title: Failed to find an Exchange Server for the DN (...)
slug: failed-to-find-an-exchange-server-for-the-dn
docTags: 
createdAt: 2025-06-09T23:52:52.830Z
---

## Overview

This error occurs when Activate is unable to locate a valid Exchange Server resource associated with a given Distinguished Name (DN). This is typically due to a missing or misconfigured IdentityProvider reference in the Exchange Server resource configuration.

## Root Cause

Each Exchange Server resource in Activate must include a reference parameter named IdentityProvider. This parameter links the Exchange Server to the appropriate external directory (e.g., Azure AD or on-prem Active Directory). Without this reference, Activate cannot resolve which Exchange Server (and associated credentials) to use for a given object.

## How to Fix It

To resolve this issue, follow these steps:

1. Locate the Exchange Server Resource
2. Go to: //Resources/Exchange Servers/Office365 (or the relevant Exchange resource for your environment).
3. Add the IdentityProvider Reference Parameter
4. Create a new reference parameter named IdentityProvider.
5. Set its value to point to the appropriate external directory resource. For example:=//Resources/Active Directory/External Directories/Azure
6. Save and Validate
7. Save the configuration.
8. Ensure that the reference is valid and points to an existing Identity Provider resource under //Resources/Active Directory/External Directories.

## Why This Matters

### The IdentityProvider reference is essential for:

- Resolving which Exchange Server to use for a given DN.
- Accessing the correct credentials and connection settings.
- Ensuring successful synchronization and communication with Exchange.

