This article only describes the errors that occur during the execution of business processes. You can read about modeling errors in these articles: Publishing Business Process and Process Logic Validation.
Critical and non-critical errors
All execution errors can be classified as critical or non-critical. In case of a critical error, the process is interrupted, and the owner of the company receives a message that the process was interrupted due to a critical error. In case of a non-critical error, the process continues, but the owner of the company is also notified about the error that occurred during the execution of the process."
Critical errors include:
An error while executing Create app item — for example, such an error might occur if an app type variable was deleted from the context. To avoid this error, make sure that the app item is correctly specified in the Create app item activity.
Error when starting a synchronous subprocess - when starting a synchronous sub-process, the execution of the parent business process is suspended. If an error occurs in such a sub-process, the parent process will be interrupted and you will see the message "Failed to start the subprocess".
Error in the timer intermediate event - you will see the warning "Failed to set up timer", for example, if the context variable storing timer expiration value is not found or the system cannot calculate the time according to the business calendar.
Non-critical errors are:
Error when assigning status - for example, if this status was deleted from the app. To avoid this error, make sure that all the valid app statuses are specified in the settings of the Manage status activity.
Error when determining variable value – you will see the warning "Failed to change the value of the context variable." This error might occur, for example, if in the settings of the connector that goes out of a gateway the right operand variable is not determined.
Error when starting an asynchronous subprocess - when starting an asynchronous process, the execution of the parent business process does not stop. If an error occurs in such a sub-process, the parent process will not be interrupted, and you will see the warning "Failed to start the subprocess".
Error in notification – you will see the warning "Failed to send the notification" if, for example, the variable that stores the recipient is not determined. Check the Notification settings. The organizational chart item selected as the recipient might have been deleted by the moment the process started. Make sure that in the notification settings only existing employees, user groups, and organizational chart items are selected as recipients.
Error when assigning a user task - this error might occur, for example, if the system fails to calculate task deadline according to the business calendar. You will see the message "Failed to calculate the task completion time". In order to avoid this error, check task deadline settings. The system may fail to provide access to the context object, and consequently, assign the task to a user. In this case, you will receive the message "Failed to grant permissions."
Interrupting looped business process
A business process might get stuck at some step. For example, if an exclusive gateway has an outgoing default connector that targets the same gateway and another connector that targets an end event but has no specified condition. In this case, the process will repeat the same step over and over again - leave the gateway and return back to it.
To prevent a process from looping, the system counts how many times each step has been performed. If an operation repeats 100 times, the process is automatically interrupted, and the corresponding notification is sent to the company owner.