Saturday, January 05, 2013

Set-MIISFIMMAConfiguration : The requested name is valid, but no data of the requested type was found

Came across an issue using Set-MIISFIMMAConfiguration today.  I use this command all the time to automate the configuration of the FIM MA.  It is a handy command because that MA can be a bugger to configure by hand, and this command allows the automation of it, usually saving team members lots of time troubleshooting the FIM MA, and giving everybody else the excuse to say, “it works on MY machine”.

Anyhow, I have a FIM Sync configuration stored in source control.  The sync config export was produced BEFORE I made changes to the FIM Service (schema changes in this case).  The changes I made to the FIM Service seem to have disturbed the Set-MIISFIMMAConfiguration command, making it produce a less-than-useful error message.

Set-MIISFIMMAConfiguration : The requested name is valid, but no data of the requested type was found

The workaround was pretty simple, just use the Sync Manager to update the FIM MA manually, then export the Sync configuration again to XML.

The next time the updated sync config is used to import configuration to FIM Sync, it will have the updated FIM MA XML, so the Set-MIISFIMMAConfiguration command will work.

This is probably a design symptom of the FIM Service and FIM Synchronization Service being loosely coupled.  The FIM Service stores the entire FIM Sync configuration in the FIM Service database (boo!).  That stored configuration must be kept in sync (the sync config must be sync’d?).  When the configuration falls out of sync, issues like this pop up.  Kinda explains why we have a WMI method on the management agent to keep these two in sync.

No comments: