How to resolve the error "Framework/ReusableWorkflows/SetTransactionStatus.xaml: Compiler error(s) encountered processing expression "TypeOf(in_Exception) Is BusinessRuleException OrElse TypeOf(in_Exception) Is DocumentRejectedByUserException".(3) : error BC30002: Type 'DocumentRejectedByUserException' is not defined."?
Issue Description:
When attempting to validate the process that was created from a UiPath Document Understanding Template, the following error may occur -
Framework/ReusableWorkflows/SetTransactionStatus.xaml: Compiler error(s) encountered processing expression "TypeOf(in_Exception) Is BusinessRuleException OrElse
TypeOf(in_Exception) Is DocumentRejectedByUserException".(3) : error BC30002: Type 'DocumentRejectedByUserException' is not defined.
Resolution:
- Open the Framework/ReusableWorkflows/SetTransactionStatus.xaml.
- In the imports panel, add the following namespace UiPath.IntelligentOCR.Exceptions