Instrument error handling
For VENUS 6.4 or later, instrument errors can be handled through the VENUS Web API.
If an application is registered as the instrument error handler, no error dialogs are displayed, and the application handles instrument errors.
If an instrument error handler isn't registered, VENUS can still provide the existing instrument error dialogs. If an error dialog appears, it can't be recovered via the API and must be handled in the dialog.
Register an error handler
An instrument can only have one error handler registered.
To register as an instrument error handler, call POST /api/vector/v3/error-handler with a user-defined key (only letters and digits are accepted). Registration must occur before a method is loaded.
When executing the endpoint:
-
If an error handler is already registered, an HTTP 409 (conflict) response is returned with an error message.
-
If a method is running, an HTTP 409 (conflict) response is returned with an error message.
-
If registration is successful, VENUS error dialogs no longer appear and error information can be received.
-
If registration is made after a method is loaded, VENUS dialogs still display.
Keys used to register must be saved internally, as they're used to handle an instrument error and unregister as the error handler.
curl 'https://{{your_venus_webapi_ip_address}}/api/vector/v3/error-handler' \
--request POST \
--header 'Authorization: Bearer <token>' \
--data '"string"'Unregister an error handler
To stop receiving error information, call DELETE /api/vector/v3/error-handler with the key that was used to register as the error handler.
Avoid this action when running a method. If a method is running and an error handler is then unregistered, the VENUS dialog won't appear and instrument errors can't be recovered.
After executing the endpoint successfully, error events can't be obtained and the VENUS dialogs are used to handle instrument errors.
curl 'https://{{your_venus_webapi_ip_address}}/api/vector/v3/error-handler' \
--request DELETE \
--header 'Authorization: Bearer <token>' \
--data '"string"'Check error handling registration
Use the endpoint GET /api/vector/v3/error-handler to check for a registered error handler.
After executing the endpoint, a boolean return value indicates whether the instrument has a registered error handler.
curl 'https://{{your_venus_webapi_ip_address}}/api/vector/v3/error-handler' \
--header 'Authorization: Bearer <token>'Receive instrument error information
SignalR instrument error event
To receive instrument errors during runtime, subscribe to the InstrumentErrorEvent SignalR event.
This event can't be triggered with legacy error handling dialogs. An error handler must be registered.
For more information about SignalR with VENUS, go to Subscribe to SignalR push notifications.
this.connection.on("InstrumentErrorEvent", (data: ErrorData) => {
this.onDeviceErrorWithHandlerDataEmitter.emit(data);
});SignalR instrument error notification event
To receive a notification of an instrument error during runtime, subscribe to the InstrumentErrorNotification SignalR event.
this.connection.on("InstrumentErrorNotification", (data: string) => {
this.onDeviceErrorWithHandlerDataEmitter.emit(data);
});SignalR device error handled response
To receive events when an instrument has been handled, subscribe to the DeviceErrorHandledResponse SignalR event.
For more information about SignalR with VENUS, go to Subscribe to SignalR push notifications.
this.connection.on("DeviceErrorHandledResponse", (data: InstrumentErrorHandled) => {
this.onDeviceErrorHandledResponseEmitter.emit(data);
});Unhandled error endpoint
Use the GET /api/vector/v3/instrument-errors/unhandled endpoint to retrieve unhandled instrument errors.
After successful execution, the endpoint provides a response containing the Error data response model payload, or a 204 No Content response.
When an instrument error is recovered, the corresponding error data is cleared from the API, and the endpoint returns 204 No Content if executed again.
Multiple unhandled errors can be retrieved. For example, if an instrument with a dual arm configuration runs into channel errors from both arms, two error events occur and two errors are available in the unhandled error endpoint.
curl 'https://{{your_venus_webapi_ip_address}}/api/vector/v3/instrument-errors/unhandled' \
--header 'Authorization: Bearer <token>'Instrument error model
Error data response model
The ErrorDataResponseModel is provided by the Unhandled error endpoint.
This contains a collection of unhandled instrument errors.
export interface ErrorDataResponseModel {
data: ErrorData[];
message: string;
success: boolean;
}Error data
The ErrorData model contains the top-level error information. This contains recovery actions and actions to perform on an instrument (e.g., VANTAGE, TrackGripper, STAR).
When an error occurs on a step whose custom error configuration has no timeout assigned, timeout is set to -1.
export interface ErrorData {
actions?: Action[];
code?: string; // Internal software error code as string format
date?: string; // Date/Time of error defaultRecoveryActionId: number; // Integer ID of the default recovery option
detailedErrors?: DetailedError[];
help?: Help;
uuid: string; // Identifier representing the unique instance of the error
deviceId: number; // Integer representing the unique device for this error
message?: string; // Error text
notificationSound?: string; // Path to sound asset
recoveryActions: RecoveryAction[];
timeout: number; // Time in seconds, as an integer, to wait for user selection before automatic selection of recovery action(s). If timeout is not applicable, value is set to -1
title?: string; // Title of error
}Detailed error
The DetailedError model contains low-level error information. A detailed error contains error information for a specific instrument part (e.g., pipettor channels, stacks).
There can be multiple detailed errors for an instrument error. For example, if eight channel errors occur on a VANTAGE, there are eight detailed errors to recover.
Detailed errors must be recovered collectively, except when using a top-level specific recovery option (e.g., ).
In the event of detailed errors, a top-level recovery action, , is used to execute all recovery actions assigned to detailed errors.
export interface DetailedError {
actions: Action[];
attributes?: Attribute[];
code?: string; // Internal software error code as string format
date?: string; // Datetime of error
defaultRecoveryActionId: number; // Integer ID of default recovery for the associated detailed error.
help?: Help;
uuid: string; // Identifier representing the unique instance of this error
index: number; // Integer index of detailed errors in this collection
message?: string; // Error text
recoveryActions?: RecoveryAction[];
}Recovery action
The RecoveryAction model is used to recover an error. Detailed errors (if applicable) and top-level errors contain recovery actions.
Recovery actions vary across instruments. For example, the abort recovery action ID on a VANTAGE may differ from the abort recovery action ID on a STAR.
export interface RecoveryAction {
description?: string; // Description of recovery action
help?: Help;
id: number; // Unique integer of recovery action
index: number; // Integer for index of recovery action in collection
inputs?: Input[];
iterations?: number; // Remaining number of automatic selections of this recovery
name: string; // Name of recovery action as a string
}Action
The Action model is used to execute certain functionality without recovering the error. Detailed errors (if applicable) and top level errors may contain actions.
export interface Action {
description?: string; // Description of action
group?: string; // Name of a group of actions, for organizations. can be empty
help?: Help;
id: number; // Unique integer of action
index: number; // Integer for index of action in collection
inputs?: Input[];
name: string; // Name of the action as a string
}Input
The Input model is used for actions and recovery actions that require more information. For example, the Waste recovery action requires a specified destination and a sequence.
An Input is governed by each applicable rule. Verify that these rules are used to validate against the selected Input.
Patterns are used to validate against the selected value of the Input. If a pattern is null or empty, any value is accepted.
The rules for an Input may affect other inputs. For example, an Input can have a rule to disable another Input.
For current Input, string and option are available for valueType.
The options field is null, unless valueType = option.
export interface Input {
defaultValue: string; // Default value as a string
name: string; // Name of the input
id: number; // Unique integer of the input
index: number; // Integer for index of input in collection
options?: Option[];
pattern?: string; // Regular expression, compatible with Perl 5, to validate value against.
rules?: Rule[];
valueType: string; // Type of value as a string
}Rule
The Rule model provides guidelines on how inputs are affected:
-
The disableInput rule declares inputs to be disabled.
-
The alias rule declares inputs that need to share the same value.
export interface Rule {
type: string; // Rule type as a string
parameter: string; // Parameter to rule as a string, e.g., integer ID of input as a string or name of alias.
value: string; // Regular expression, compatible with Perl 5, used to match the value against the applied rule.
}Applying rules
The sample JSON contains the rules found in a recovery's inputs.
"inputs": [
{
"id": 0,
"name": "Eject to default waste",
"pattern": null,
"defaultValue": "true",
"valueType": "boolean",
"options": null,
"rules": [
{
"type": "disableInput",
"parameter": "1",
"value": "true"
},
{
"type": "disableInput",
"parameter": "2",
"value": "true"
},
{
"type": "alias",
"parameter": "EjectToDefaultWaste",
"value": null
}
],
"index": 0
},
{
"id": 1,
"name": "Eject destination",
"pattern": null,
"defaultValue": "0",
"valueType": "option",
"options": [
{
"id": 0,
"index": 0,
"value": "MaintenanceNeedles"
},
{
"id": 1,
"index": 1,
"value": "TeachingNeedleBlock_VStar_4_0001"
}
],
"rules": [
{
"type": "alias",
"parameter": "WasteSequenceToBeUsed",
"value": null
}
],
"index": 1
},
{
"id": 2,
"name": "Sequence counting",
"pattern": null, "defaultValue": "0",
"valueType": "option",
"options": [
{
"id": 0,
"index": 0,
"value": "Manually"
},
{
"id": 1,
"index": 1,
"value": "Automatic"
}
],
"rules": [
{
"type": "alias",
"parameter": "SequenceCountingModeToBeApplied",
"value": null
}
], "index": 2
}
]From the provided model, rule sets are received from each input.
When the recovery is selected (set to true), the rules are applied to the defined rule parameters.
For rules where type = disableInput, the parameters depict the integer of the inputs that are affected as a string. Therefore, the inputs labeled Eject Destination (id = 1), and Sequence counting, (id = 2) should be disabled. For rules where type = alias, the parameter is the name of the alias. Inputs with an alias rule with a matching parameter must all share the same input value.
For example, if ejecting to default waste on Channel 1, all inputs with an alias rule where parameter = EjectToDefaultWaste must also eject to default waste.
"rules": [
{
"type": "disableInput",
"parameter": "1",
"value": "true"
},
{
"type": "disableInput",
"parameter": "2",
"value": "true"
},
{
"type": "alias",
"parameter": "EjectToDefaultWaste",
"value": null
}
],Option
The Option field is applied when an Input has a valueType of option.
export interface Option {
id: number; // Unique integer for option
index: number; // Integer for index of option in collection
value: string; // Value text
}Attribute
The Attribute model is applied to provide more information on a DetailedError. Attributes are commonly used for channel errors, where name is the name of the channel and value is the channel number.
export interface Attribute {
name?: string; // Name of attribute
value?: string; // Value of attribute
}Help
The Help model contains help information for its parent item. The help information is provided as a Microsoft Compiled HTML Help (CHM) file. For more information, go to Microsoft HTML Help 1.4 documentation.
export interface Help {
contextId?: string; // ID, as a string, of contextual help within location
location?: string; // Path to help topic
}Error recovery model
Error recovery
ErrorRecovery is the primary model used to handle an instrument error through a recovery or an action.
Structured in a similar way to ErrorData, the ErrorRecovery applies the recoveries for a DetailedError in a DetailedErrorRecovery[] collection separate from the top-level recovery.
For more information about recovering an instrument error, go to Instrument recoveries.
For more information about executing an action on an instrument error, go to Instrument actions.
export interface ErrorRecovery {
date: string; // Date/time of selection
uuid: string; // Identifier representing the unique instance of the error to recover
detailedErrorRecoveries?: DetailedErrorRecovery[];
inputs?: InputValue[];
selectedActionId: number; // Unique integer of action or recovery action selected, or -1 if no action was selected for this error.
errorHandlingKey: string; // Registered error handler's key
}Detailed error recovery
The DetailedErrorRecovery model is used when there is a requested action or recovery action to be performed for a DetailedError.
export interface DetailedErrorRecovery {
date: string; // Date/time of selection
uuid: number; // Identifier representing the unique instance of the error to recover
inputs: InputValue[];
selectedActionId: number; // Unique integer of action or recovery action selected, or -1 if no action was selected for this error
}Input value
When inputs are applicable for the related selectedActionId from the recovery or action, they're assigned in the InputValue model.
When an input has a valueType of option, the value of its InputValue is the ID of the option, not the value of the option.
If applicable, input values must be validated against the rules assigned with the recovery.
export interface InputValue {
id: number; // Unique integer of input
value: string; // Input value as string
}Instrument error handled
The InstrumentErrorHandled model is used for the SignalR event specified in SignalR device error handled response.
export interface InstrumentErrorHandled {
uuid: number; // Identifier representing the unique instance of the error that was handled
recoveryAction: string; // Action taken to recover from the error
}Handling an instrument error
Only the registered error handler is permitted to provide an action or recovery action in response to an instrument error.
If an invalid key is provided to perform a recovery or action, the requested recovery/action is rejected.
Instrument recoveries
To recover an instrument error, call the POST /api/vector/v3/instrument-errors/{uuid}/recovery endpoint.
Errors can only be handled with actions that were assigned to them. Using an invalid action ID as the selectedActionId results in a 400 (rejected) response from the recovery endpoint.
If there are no detailed errors or inputs for the top level action or recovery action, assign those fields as an empty collection.
When recovering a detailed error(s), all detailed errors must have a recovery assigned, and the top-level recovery must use the Execute recovery action ID for the selectedActionId field.
After successfully executing an instrument recovery, a SignalR event is fired to indicate that the recovery was successful. The unhandled endpoint returns either empty or the remaining errors (if any). For more information about the SignalR event, go to SignalR device error handled response.
Instrument errors configured with automatic recovery are resolved (server-side) during timeout using the method-assigned recovery procedure, which requires no client intervention.
curl 'https://{{your_venus_webapi_ip_address}}/api/vector/v3/instrument-errors/<uuid>/recovery' \
--request POST \
--header 'Authorization: Bearer <token>' \
--data '{
"date": "2026-01-01T00:00:00Z",
"uuid": "00000000-0000-0000-0000-000000000000",
"detailedErrorRecoveries": [
{
"date": "2026-01-01T00:00:00Z",
"uuid": "00000000-0000-0000-0000-000000000000",
"inputs": [],
"selectedActionId": 0,
"selectedActionIsRecovery": true
}
],
"inputs": [
{
"id": 0,
"value": "string"
}
],
"selectedActionId": 0,
"selectedActionIsRecovery": true,
"errorHandlingKey": "string"
}'Instrument actions
To execute an action for an instrument error, call the POST /api/vector/v3/instrument-errors/{uuid}/action endpoint.
Errors can only be handled with actions that were assigned to them. Using an invalid action ID as the selectedActionId results in a 400 (rejected) response from the recovery endpoint.
If there are no detailed errors or inputs for the top level action or recovery action, assign those fields as an empty collection.
When executing an action for a detailed error, the top-level selectedActionId must be -1.
After executing an action, a new error event occurs. The corresponding error's data as a result of that action is updated.
curl 'https://{{your_venus_webapi_ip_address}}/api/vector/v3/instrument-errors/<uuid>/action' \
--request POST \
--header 'Authorization: Bearer <token>' \
--data '{
"date": "2026-01-01T00:00:00Z",
"uuid": "00000000-0000-0000-0000-000000000000",
"detailedErrorRecoveries": [
{
"date": "2026-01-01T00:00:00Z",
"uuid": "00000000-0000-0000-0000-000000000000",
"inputs": [],
"selectedActionId": 0,
"selectedActionIsRecovery": true
}
],
"inputs": [
{
"id": 0,
"value": "string"
}
],
"selectedActionId": 0,
"selectedActionIsRecovery": true,
"errorHandlingKey": "string"
}'