Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Problem:
While working with the MIM and User Profile services in SharePoint Server 2016, the Management Agent (ADMA, SPMA) was deleted and the MIM server and SharePoint Connector were uninstalled as well.
After re-installing the MIM Server and SharePoint Connector, while trying to re-configure the Microsoft Identity Manager (MIM) for User Profile service in SharePoint Server 2016, it sends the following:
The property 'name' cannot be found on this object. Verify that the property
exists and can be set.
At F:\temp\mim\SyncFiles\SharePointSync.psm1:120 char:5
+ $domainPartition.Node.name =
$DefaultNamingContext.distinguishedName.ToStrin ...
+
+ CategoryInfo : InvalidOperation: (:) \[\], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
[](resources/4336.mim_2D00_er2.JPG)
Same error appears for 'dn', 'name', 'guid', 'inclusion', 'exclusion' properties a couple of times.
Tried different things but could not get it. Finally, [Trevor](http://thesharepointfarm.com/) helped to fix the issue.
## Reason:
When you run the PowerShell script to install the configuration files, during configuration it updates the MA-ADMA.xml, MA-SPMA.xml and MV.xml with the values you provide in the installation script, i.e. DN, OU, etc.
If you are trying to re-use these XML files (MA-ADMA.xml, MA-SPMA.xml, MV.xml), then it will throw the error mentioned above because these fields are already updated in the files.
## Fix:
Now you have two options to fix this issue:
1. Download fresh files from the [GitHub site](https://github.com/OfficeDev/PnP-Tools/tree/master/Solutions/UserProfile.MIMSync) and use them for installation. This is best practice because you will get the latest updates if any.
2. You can restore it from the backup. If you see the location of the sync files folder, you will see the MS-ADMA.xml.bak. Rename it and use it.[](resources/5710.mim_2D00_er1.JPG)