Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > Understanding Windchill ESI Architecture > Message Logging, Error Handling, and Return Messaging > Error Handling and Notification > Error Handling Codes
  
Error Handling Codes
TheWindchill ESI business logic uses a five-digit message code each time it invokes the error handling process. This code is used to look up a handling code which determines the behavior of the error handling process. Error handling has several handling codes and each code has permutations of actions which include the following options:
Send subtransaction messages or do not send subtransaction messages
Send overall messages or do not send overall messages
Stop processing or continue processing
Fatal messages (severity "0") are always logged in theWindchill ESI business logic log. Error messages (severity "1") are logged when the corresponding logging flag is set to true. The 5-digit code that was originally used to determine the handling code is also used to determine the message that appears in the log.
The following table gives a high-level overview of each code:
Code/ Action
Severity
Send Sub- transactions Messages to Windchill
Send Overall Transaction Messages to Windchill
Continue Processing1
Stop Processing
0
None2
X
1
0
X
2
0
X
X
3
0
X
X
X
4
1
X
X
5
1
X

1 When BusinessWorks flow returns to the point where it was called, it continues to process normally. In some cases however, this may cause erroneous processing such as sending a second PostResult message. It is, therefore, recommended that these codes are used with caution.

2 Reserved for internal use - used when the logging process fails.

The following table provides additional information about each error code:
Error Code Number
Windchill PDMLink Notification
Final Action
0
NoWindchill PDMLink notification
Processing stops
1
NoWindchill PDMLink notification
Processing stops
2
Windchill ESI sends a PostResult message toWindchill PDMLink for the overall release transaction.
Processing stops
3
Windchill ESI sends a PostResult message toWindchill PDMLink for the subtransaction as well as for the overall release transaction.
Processing stops
4
Windchill ESI sends a PostResult message toWindchill PDMLink for the subtransaction.
Continues processing and returns to where the error handler was called
5
NoWindchill PDMLink notification
Continues processing and returns to where the error handler was called