DocumentRejectedByUserException Error In DU Framework

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:

  1. Open the Framework/ReusableWorkflows/SetTransactionStatus.xaml.
  2. In the imports panel, add the following namespace UiPath.IntelligentOCR.Exceptions



1 Like