Error codes and error messages
When an error or exception occurs in IBM Sterling Fulfillment Optimizer with Watson, the exception contains the error code, error code message, and reason for the exception.
When a call is made from a user exit to Fulfillment Optimizer, if an exception occurs in the Fulfillment Optimizer runtime adapter, a
OTMZWebClientException exception occurs.
If an exception occurs in Fulfillment Optimizer, a
OTMZOPTE exception occurs.
Error code categories
Examples of possible exceptions
| Exception or response | Reason |
|---|---|
OTMZException
|
The weight of SKU 46448325 is 200.7 lbs. This amount exceeds the limit of 150 lbs. |
When connection timeout
occurs. |
The connection timed out. Response timeout from the runtime adapter. The runtime adapter cannot connect to Fulfillment Optimizer. |
When the runtime adapter is in sleep
mode. |
The runtime adapter is in sleep mode. |
|
When the Fulfillment Optimizer service is
down.
|
The Fulfillment Optimizer service is unavailable. Try again later. |
Examples of the response
Example 1: When the Tenant ID value is missing from the
otmz.webclient.property file.
OTMZwebClientException.getErrorCode()=OTMZWEB001
OTMZwebClientException.getErrorMessage()=Property not found Exception
OTMZwebClientException.getReason ()= “Tenant ID is missing from otmz.webclient.property file”
Example 2: When the Fulfillment Optimizer endpoint
value is missing from the otmz.webclient.property file.
OTMZwebClientException.getErrorCode()=OTMZWEB001
OTMZwebClientException.getErrorMessage()=Property not found Exception
OTMZwebClientException.getReason ()= “Optimizer endpoint is missing from otmz.webclient.property file”
Example 3: When the otmz.webclient.property file is missing or is not loaded
OTMZwebClientException.getErrorCode()=OTMZWEB005
OTMZwebClientException.getErrorMessage()=File not found
OTMZwebClientException.getReason ()= “Unable to find otmz.webclient.property file”