Not able to sync attributes on AD endpoint

Document ID : KB000100876
Last Modified Date : 13/06/2018
Show Technical Document Details
Issue:
We have AD endpoints defined in the system e.g.: AD1 and AD2. Both are connecting to different AD domains.
We have a requirement wherein the attributes from the global user are supposed to be pushed to their respective account in both the AD’s.
But the attributes are pushed successfully to AD1 endpoint and fails to sync to the other AD2 endpoint.
Below is the failure message that we get for the failure:
ETA_E_0083, Account for Global User 'US1' on Active Directory Endpoint 'AD2' update failed: Connector Server Modify failed: code 16 (NO_SUCH_ATTRIBUTE): failed to modify entry
 eTADSAccountName=AC1,eTADSOrgUnitName=ou1,eTADSOrgUnitName=ou2,eTADSDirectoryName=AD2,eTNamespaceName=ActiveDirectory,dc=dc1,
dc=etasa: JCS@xxx: JNDI: [LDAP: error code 16 - No Such Attribute]:
Cause:
Found into the eta transaction log that during the user account creation process, extended attributes coming into the eTADSpayload since they are set into templates in use for AD2 endpoint. 
E.g.:
extensionAttribute5:01:0007=%UCU05%;o:01:0007=%UCU04%;preferredLanguage:01:0007=%UCU03%; 
Those extensionAttributeN are not defined into the AD2 endpoint schema (when they are on other AD1 target).
 
Resolution:

Removed extended attributes from the custom fields in the templates used for AD2 since the endpoint does not manage them