How to get the list of document errors for custom logging purposes

Question

We're wanting to capture any rule breaks that cause an invoice to go to verification station and save this data to the DB for reporting purposes

Answer

Apply the following approach:

  1. In  Project Setup Station > Project > Project Properties > Advanced Workflow create a custom script stage (Document Processing type) right after Recognition stage:
  2. Use the sample code:
foreach (IRuleError re in Document.RuleErrors)
{
    Processing.ReportMessage(re.RuleName + " " + re.Message);
}

Additional Information

For more information check Online Help: IRuleError

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.