AFNotification.ErrorMessage Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The last error message associated with an error status.
Namespace: OSIsoft.AF.Notification
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public string ErrorMessage { get; set; }
Public Property ErrorMessage As String Get Set Dim instance As AFNotification Dim value As String value = instance.ErrorMessage instance.ErrorMessage = value
public: property String^ ErrorMessage { String^ get (); void set (String^ value); }
member ErrorMessage : string with get, set
Property Value
Type: StringReturns the last error message associated with an error status.
Remarks
The error message is normally set to the reason that the notification
was set to an error status.
Changing the error message using this property will not set the value
in the PI AF Server immediately like the SetStatus(AFStatus, String) method.
The notification must be checked in to save the change to the server.
Calling the SetStatus(AFStatus, String) method is more efficient
since it does not require the notification to be checked out or checked in.
| When setting the Status or the ErrorMessage, it is more efficient to call the SetStatus(AFStatus, String) method to reduce the number of calls to the PI AF Server. |
| If the message is longer than 128 characters, it will be truncated. |