HealthQueryException

If the return code from a stored procedure is not zero, which means an error case has happened, HealthQueryException will be thrown. Error codes returned from stored procedures will be included in exception.

Error Codes and Messages
Error Code Error Message
0 Succeed
32768 Unknown exception occurred.
32769 Could not find health state for specified user or service.
32770 Could not find health state for specified organization or service.
32771 No user is found in specified server.
32772 No organization is found in specified server.
32773 Specified service does not exist.
32774 Specified service already exists.
32775 Specified service conflicts with one of the existing services.
32776 Could not find specified server role.
32777 Specified server role already exists.
32778 Could not find specified server role.
32779 Specified server role conflicts with one of the existing server roles.
32780 Could not find specified monitor for specified role.
32781 Specified monitor for specified role already exists.
32782 Specified monitor conflicts with one of the existing monitors.
32783 Specified monitor does not exists.
32784 Specified SCOM server does not exist.
32785 Specified SCOM server already exists.
32786 Specified server does not exist.
32787 Specified server already exists.
32788 Specified server conflicts with one of the existing servers.
32789 Specified domain controller does not exist.
32790 Specified domain controller already exists.
32791 Could not find specified service attribute.
32792 Specified service attribute already exists.
32793 Specified service attribute conflicts with one of the existing service attribute.
32794 Specified customer already exists.
32795 Specified customer does not exist.
32796 Specified service attribute for specified customer already exists.
32797 Could not find specified server assigned to specified customer or service.
32798 Specified service pointer already exists.
32799 Specified service pointer does not exist.
32800 Specified service pointer property already exists.
32801 Specified service pointer property does not exist.
32802 Could not find specified service attribute for specified customer.
32803 Specified service attribute value for specified customer is null.
32804 Specified service attribute value for specified customer is zero-length.
32805 Specified service attribute value for specified customer is invalid.
32806 Server name in specified service attribute value for specified customer is zero-length.
32807 Could not find specified preference.
32808 Specified server has already been assigned to specified customer and service.
32809 Specified server is not a domain controller.
32810 Specified server is not a SCOM server.
32811 Specified customer is not an organization.
32812 Specified customer is not a user.
32813 Parent of specified customer does not exist.
32814 DN of specified customer conflicts with existing customers.
32815 Cannot update health state for specified server or monitor.
32816 Invalid Hosting DN.
32817 Invalid parameter.
32818 Invalid server FQDN.
32819 No preference found.
32820 Invalid trusted replication period.
32821 Attempt to insert Hosting OU.
32822 Specified service pointer property value for specified customer is null.
32823 Specified service pointer property value for specified customer is zero-length.
32824 Specified service pointer property value for specified customer is invalid.
32825 Specified group-server mapping already exists.
32826 Specified group-server mapping does not exists.
32827 Specified customer is disabled.
 Applies To