Getting DirectoryServiceException error when we are syncing more than 90 values in attribute msExchExtensionCustomAttribute2

SURANA Mudit 0 Reputation points
2025-01-08T14:08:41.32+00:00

Hello Team,

We are hybrid (AD + Azure AD) and have many values defined in attributes msExchExtensionCustomAttribute2 and msExchExtensionCustomAttribute3 we use this for opera roles.

Basically, when we update values in it, and it is more than 90 (msExchExtensionCustomAttribute2 and msExchExtensionCustomAttribute3 combined) then it stops the sync for that user and in Sync tool we see the error

"An internal error has occurred. This operation will be retried during the next synchronization. If the issue persists for more than 24 hours, contact Technical Support.

Tracking Id: 2ca60502-d560-4f65-bfe6-f16d6ee1fa14

ExtraErrorDetails:

[{"Key":"ObjectId","Value":["24ffXXXXXXXXXXXXde611"]}]"

and in AAD portal under sync errors we see "DirectoryServiceException"

As soon as we reduce the values to 90 or less it works fine. Can you help here? I am trying to find relevant article but many i found were unanswered or related to Proxyaddresses thing. Here it is not the case of proxy addresses.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 35,626 Reputation points Microsoft Employee Moderator
    2025-01-21T06:14:59.95+00:00

    @SURANA Mudit Apologies for the delayed response, on reviewing the above screenshots related to your issue.

    Microsoft Entra ID doesn't impose limits per attribute, except for a hard-coded limit of 15 certificates in the userCertificate attribute and up to 100 attributes for Directory extensions with a maximum of 250 characters for each directory extension. There's a size limit for the whole object. When Microsoft Entra Connect tries to sync an object that exceeds this object size limit, an export error is thrown.

    All attributes contribute to the object's final size. Some attributes have different weight multipliers because of additional processing overhead. An example is indexed values. Also, different cloud services, service plans, and licenses might be assigned to the account, which consume even more attributes and contribute to the overall size of the object.

    Let me know if this helps to answer your query, feel free to post back if any questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.