Share via


Troubleshooting FIM 2010 R2: Exception “AttributeNotPresentException”

 

Problem Statement:

When running a Sync on a Source MA we are getting the following error in the Stack Trace.

Microsoft.MetadirectoryServices.AttributeNotPresentException: Attribute <attribute name> is not present.at Microsoft.MetadirectoryServices.Impl.AttributeImpl.get_StringValue() at Mms_ManagementAgent_<Source MA>Extension.MAExtensionObject.MapAttributesForExport(String FlowRuleName, MVEntry mventry, CSEntry csentry)

For sake of keeping things simpler I am going to use the attribute name as “mail” and the Source MA as “ADMA”.

Cause:

The provisioning code that we are implementing is using an attribute that we are not flowing from the Source Management Agent to the Metaverse.

Resolution:

If we read the exception carefully it tells us the that, I am provisioning certain attributes to the destination connector space, but the attribute “mail” which is being provisioned to destination connector space as “email” (example) is not being provided by the Source Management Agent(ADMA).

Steps to resolve this:

1) Make sure we have an import flow to the metaverse for mail.

2) Remove the attribute from the code, if it is not going to add any value and recompile the MVextension.dll.

Code Example:

csentry("email").StringValue = mventry("mail").StringValue //mail is not being flowed from the Source Management Agent.