3
Vote

Unable to use Sanitizier with SCOrch 2012 R2 and WS 2012 R2

description

Hello,
I'm trying to use sanitizer to cleanup some runbooks.

When I try execute it, I receive following error:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.OIS_Export.ExportFile.processBaseObjects(XmlNode ro
otNode, XmlNode finalNode, globalType global)
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.OIS_Export.ExportFile.processGlobalSettingsNode(Str
ing globalSettingsPath, XmlNode finalNode, globalType global)
at Microsoft.SystemCenter.Orchestrator.Integration.Administration.OIS_Export.ExportFile.cleanGlobalComputerGroupsNode
()
at SanitizeExport.Program.Main(String[] args)


Any ideas ?

Env:
-OS Version: WS 2012 R2
-SCorch Version: 2012 R2

Thanks

Giovanni

comments

jcoryat wrote Dec 22, 2016 at 3:18 PM

After downloading the code and catching the exception, I found that if you export the runbook with everything checked it will parse successfully. The error came from trying to parse items that were not exported. Not ideal, but a workaround that will let you use this utility.