Error, "The message handler 'Altiris.AlertManager.NewIncidentMsgSubscriber' was unable to process a message"

Article:TECH36164  |  Created: 2007-10-17  |  Updated: 2007-10-26  |  Article URL http://www.symantec.com/docs/TECH36164
Article Type
Technical Solution


Issue



When the System Has Not Reported for 'N' Days" Notification Policy located at Tasks > Monitoring > Monitor Solution > Notification Policies, is run, Notification Server throws the following errors:

Priority: 1
Date: 26/09/2007 02:10:41
Tick Count: -1357204562
Host Name: NS
Process: aexsvc.exe (376)
Thread ID: 27016
Module: AltirisNativeHelper.dll
Source: Altiris.NS.Messaging.NSMessageProcessorThread
Description: Caught unknown exception when dispatching a message to a subscriber. Filter:75e918f3-e089-4890-b1d0-b14f9c98cd20 Subscriber:a9eda672-f19d-4fa6-b5ff-8992b3379d50. Error=Altiris.NS.Exceptions.AeXException: The message handler "Altiris.AlertManager.NewIncidentMsgSubscriber" was unable to process a message. Reason: The message handler "Altiris.AlertManager.NewIncidentMsgSubscriber" was unable to process a message. Reason: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ToInt32(Object value)
   at System.Data.Common.Int32Storage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <[current] 200> in workitem_priority_lookup_id Column.  Expected type is Int32. ---> Altiris.NS.Exceptions.AeXException: The message handler "Altiris.AlertManager.NewIncidentMsgSubscriber" was unable to process a message. Reason: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ToInt32(Object value)
   at System.Data.Common.Int32Storage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <[current] 200> in workitem_priority_lookup_id Column.  Expected type is Int32. ---> System.ArgumentException: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ToInt32(Object value)
   at System.Data.Common.Int32Storage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <[current] 200> in workitem_priority_lookup_id Column.  Expected type is Int32.
   at System.Data.DataColumn.set_Item(Int32 record, Object value)
   at System.Data.DataRow.set_Item(DataColumn column, Object value)
   at System.Data.DataRow.set_Item(String columnName, Object value)
   at Altiris.AlertManager.NewIncidentMsgSubscriber.OnNPMessage(NotificationPolicy np, NPMessage msg)
   --- End of inner exception stack trace ---
   at Altiris.AlertManager.NewIncidentMsgSubscriber.OnNPMessage(NotificationPolicy np, NPMessage msg)
   --- End of inner exception stack trace ---
   at Altiris.AlertManager.NewIncidentMsgSubscriber.OnNPMessage(NotificationPolicy np, NPMessage msg)
   at Altiris.NS.StandardItems.NSMessaging.Subscribers.NPMessageSubscriber.OnNSMessage(INSMessage message)
   at Altiris.NS.Messaging.NSMessageProcessorThread.DispatchMessageToSubscribers(Guid msgGuid, INSMessage message)
Priority: 1
Date: 26/09/2007 02:10:41
Tick Count: -1357204562
Host Name: NS
Process: aexsvc.exe (376)
Thread ID: 27016
Module: AltirisNativeHelper.dll
Source: LaunchMsgHandler.ProcessMessage
Description: The message handler "Altiris.AlertManager.NewIncidentMsgSubscriber" was unable to process a message. Reason: Altiris.NS.Exceptions.AeXException: The message handler "Altiris.AlertManager.NewIncidentMsgSubscriber" was unable to process a message. Reason: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ToInt32(Object value)
   at System.Data.Common.Int32Storage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <[current] 200> in workitem_priority_lookup_id Column.  Expected type is Int32. ---> System.ArgumentException: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ToInt32(Object value)
   at System.Data.Common.Int32Storage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <[current] 200> in workitem_priority_lookup_id Column.  Expected type is Int32.
   at System.Data.DataColumn.set_Item(Int32 record, Object value)
   at System.Data.DataRow.set_Item(DataColumn column, Object value)
   at System.Data.DataRow.set_Item(String columnName, Object value)
   at Altiris.AlertManager.NewIncidentMsgSubscriber.OnNPMessage(NotificationPolicy np, NPMessage msg)
   --- End of inner exception stack trace ---
   at Altiris.AlertManager.NewIncidentMsgSubscriber.OnNPMessage(NotificationPolicy np, NPMessage msg)
Priority: 1
Date: 26/09/2007 02:10:41
Tick Count: -1357204578
Host Name: NS
Process: aexsvc.exe (376)
Thread ID: 27016
Module: AltirisNativeHelper.dll
Source: LaunchMsgHandler.ProcessMessage
Description: The message handler "Altiris.AlertManager.NewIncidentMsgSubscriber" was unable to process a message. Reason: System.ArgumentException: System.FormatException: Input string was not in a correct format.
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)
   at System.Convert.ToInt32(Object value)
   at System.Data.Common.Int32Storage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <[current] 200> in workitem_priority_lookup_id Column.  Expected type is Int32.
   at System.Data.DataColumn.set_Item(Int32 record, Object value)
   at System.Data.DataRow.set_Item(DataColumn column, Object value)
   at System.Data.DataRow.set_Item(String columnName, Object value)
   at Altiris.AlertManager.NewIncidentMsgSubscriber.OnNPMessage(NotificationPolicy np, NPMessage msg)


Environment



Notification Server 6.0.6074
Alert Manager 6.0.288
Monitor Solution 6.0.1317 
Monitor Pack for Servers 6.0.1515


Cause



Normally, fields in the XML file are saved using using an integer value that is retrieved using the Helpdesk Web service layer. While the integer is saved, its associated value is retrieved from Helpdesk. If the service layer cannot be accessed, then the drop-down cannot be properly built, and the integer becomes the selected value. If this is saved in this state, the XML will record the [Current] string just prior to the correct integer value.

In the out-of-the-box XML definition of this policy, the integer values are either blank or are set and are noticeably missing the [Current] string. This is added after the action is saved after it could not resolve the integer values in the drop-down.

Solution



Delete the notification policy and import the same policy from a working system (one is attached to this article). 


Legacy ID



38800


Article URL http://www.symantec.com/docs/TECH36164


Terms of use for this information are found in Legal Notices