Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Version".
+ CategoryInfo : MetadataError: (:) [], CimException
+ FullyQualifiedErrorId : RuntimeException
+ PSComputerName : <servername>
DSC configuration
N/A
Suggested solution
Make sure only one component is returned
SharePoint version and build
SP2019
Operating system the target node is running
Windows Server 2016
PowerShell version and build the target node is running
Problem description
Add/remove programs on a server shows this:
When checking $installeditems in SPInstallPrereqs, this results in: Here both entries have the same bundleupgradecode.
In the resource code, this is done:
However, here $installedItem contains 2 items instead of the expected 1, which is causing this code to fail:
and throwing this error:
Verbose logs
DSC configuration
Suggested solution
Make sure only one component is returned
SharePoint version and build
Operating system the target node is running
PowerShell version and build the target node is running
SharePointDsc version