SCSM: “An error was encountered while running the task”
I recently came across an unusual issue with Service Manager were all of the connectors stopped functioning. Any time I went into the properties or attempted to create a new connector (in particular when starting to create and selecting test authentication), the connector would crash with the following error:
Application: System Center Service Manager
Application Version: 7.5.3079.0
Message: An error was encountered while running the task.
Really helpful message…
I had seen a similar issues previously with the Exchange Connector due to a corrupted Default SR or IR Template. As this was in the sandbox environment, I started removing custom Management Packs as a test – all that had been created since the connector had stopped working. None of this resolved the issue.
The issue it turned out was with the System Center Operations Manager Agent installed on the SCSM server.
The Microsoft SCOM Agent is bundled in with Service Manager by default. I have ran into several random issues before with System Center Operations Manager, where I needed to rebuild the Health Service State folder by stopping the “Microsoft Monitoring Agent” and renaming this folder. On the SCSM server, the service is still the same but the Health State is in a different location.
First, stop the service:
Rename the SCOM Health Service State Folder (Located: C:\Program Files\Microsoft System Center 2012 R2\Service Manager\Health Service State)
Restart the Microsoft Monitoring Agent (this will recreate the Health Service State folder).
You should now be able to create connectors!