Error "Exception calling "Add" with "0" argument(s): "Old format or invalid type library. ...""

Aug 2, 2013 at 9:59 PM
I was receiving an error like this when calling the Convert-SqlServerInventoryClixmlToExcel

Exception calling "Add" with "0" argument(s): "Old format or invalid type library. (Exception from HRESULT: 0x80028018
(TYPE_E_INVDATAREAD))"

It turned out to be an issue with the locale of the system - I was using non-US regional settings so once that was changed to English (United States) the script worked.
Coordinator
Aug 7, 2013 at 8:16 PM
Did you have to change the entire OS locale to English in order for it to work properly? Or was this a setting that you made elsewhere?

--Kendal
Aug 8, 2013 at 6:52 AM
Hi Kendal,
Just had to change the Formats in Regional Settings. The Windows Locale/Location was English.

//ivan