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
Same error appears for 'dn', 'name', 'guid', 'inclusion', 'exclusion' properties a couple of times.
Tried different things but could not get it. Finally, Trevor helped to fix the issue.
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.
Now you have two options to fix this issue: