Mp import fails when you remove a property from a class

When testing MPs you might find it fails on import when you remove a property that was previously in your mp. I have also discovered this happens if you just comment out the property in the mp.

Here's an example of the error:

Verification failed with 1 errors:
-------------------------------------------------------
Error 1:
Found error in 1|TestB.Microsoft.Intune.ConfigurationManager.Monitoring|1.0.0.0|TestB.Microsoft.Intune.ConfigurationManager.Discovery.Server/DS|| with message:

The configuration specified for Module DS is not valid.

: Cannot find specified MPSubElement InstallFolder, on MPElement= TestB.Microsoft.Intune.ConfigurationManager.Class.Server, in expression: $MPElement[Name="TestB.Microsoft.Intune.ConfigurationManager.Class.Server"]/InstallFolder$

The solution is to remove the old mp and add new one with a new name and no references (even commented out) to the old property.

Comments