When clicking the Add NewAttribute button in a data class edit screen, the following error is returned:
Module: AltirisNativeHelper.dll Source: global.asax Description: Unhandled exception. Type=System.Data.SqlTypes.SqlNullValueException Msg=Data is Null. This method or property cannot be called on Null values. StackTrace= at System.Data.SqlTypes.SqlString.get_Value() at System.Data.SqlClient.SqlDataReader.GetString(Int32 i) at Altiris.Resource.Web.ResourceTypeManagement.DataClassAttributeConfig.LoadResourceTypeList() at Altiris.Resource.Web.ResourceTypeManagement.DataClassAttributeConfig.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain()
This can be caused by uninstalling Site Monitor Solution and subsequently running an older version, prior to version 4, of the SQL cleanup script found in article 26146. Site Monitor Solution leaves remnants in various tables in the Altiris database upon removal. Specifically in this case, the error is caused by the fnLocalizeStringByGuid function returning a null record which causes the /Altiris/Resource/ResourceTypeManagement/DataClassAttributeConfig.aspx page to crash with the error noted in the Problem section of this article.
This was due to the Network Service Resource still being defined in the ResourceType table, but not having the String table record needed for the fnLocalizeStringByGuid function.
Below is a list of the tables that the GUID, 567067C0-853B-43C6-8326-24C175725668, had been left in and the column name with the matching GUID: