Someone Please tell what is the use of ‘ShouldMarkJobAsFaulted’ in UiPath?
Why it was used in finally block in End Process state in Re-Framework?
Someone Please tell what is the use of ‘ShouldMarkJobAsFaulted’ in UiPath?
Why it was used in finally block in End Process state in Re-Framework?
By using the ‘ShouldMarkJobAsFaulted’ parameter, the REFramework can appropriately handle exceptions and ensure that the job status is updated based on the outcome of the transaction processing. If the parameter is set to ‘True,’ the job will be marked as faulted, indicating that there was an issue during processing. Otherwise, if the parameter is ‘False,’ the job will be marked as completed, indicating that the transaction was processed successfully.
In UiPath’s ReFramework, the ShouldMarkJobAsFaulted
flag is a boolean variable that is used to determine whether the current job should be marked as faulted or not. It is typically used to handle exceptions and errors that occur during the execution of the workflow.
In the ReFramework, the ShouldMarkJobAsFaulted
flag is set to True
in the following scenarios:
ShouldMarkJobAsFaulted
flag is set to True
. A Business Exception is a known issue that can be handled and does not indicate a technical failure of the process.ShouldMarkJobAsFaulted
flag is set to True
. A System Exception is an unexpected issue or error that may require manual intervention or investigation.The ShouldMarkJobAsFaulted
flag is used in the Finally block of the End Process state to handle the final state of the transaction. In the End Process state, the ReFramework checks the value of the ShouldMarkJobAsFaulted
flag. If it is True
, it means that an exception or error occurred during the process, and the job needs to be marked as faulted.
Marking the job as faulted in the Finally block ensures that the Orchestrator or other monitoring systems can identify that the job had issues and requires attention. This information can be used for reporting, logging, and process management purposes.
By using this flag in the Finally block, the ReFramework ensures that the job’s status is appropriately updated based on whether an exception occurred or not, providing better visibility and accountability for the automation process.
Hope it helps!!
The ‘ShouldMarkJobAsFaulted’ flag in the ‘Finally’ block allows the robot to handle the final status of the job based on whether an exception occurred during the processing of transactions. If an exception occurred, the job is marked as “Faulted” in Orchestrator. If no exception occurred, the job is marked as “Successful” in Orchestrator. This helps provide accurate reporting and tracking of job status in Orchestrator and aids in debugging and monitoring automation processes.
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.