Simply "Rule error"

  • 14 Views
  • Last Post 1 weeks ago
Stephen posted this 1 weeks ago

Hi,

I just simply encounter an error message----"Rule error" in my script.

What is the possibility of showing this error?

Without knowing that,I have no way to fix it.

Can anyone advice?

Thanks

Attached Files

Order By: Standard | Newest | Votes
Ekaterina posted this 1 weeks ago

Hello,

As we can see from your screenshot, there is a Rule "CheckEachLineBalance" and the error comes from this Rule.
You can open the corresponding Document Definition in the Document Definition Editor and add some debugging information in the output, for example by:
- specifying the IRuleContext::ErrorMessage text
- showing some text with the help of FCTools.ShowMessage() method

Please see the Help articles
http://help.abbyy.com/en-us/flexicapture/12/developer/irulecontext
http://help.abbyy.com/en-us/flexicapture/12/developer/iexportimagetools

If you specify the different messages for different situations in script logic, you will better understand why the Rule error happens,

Stephen posted this 1 weeks ago

Hello,

 

In fact i used Context.ErrorMessage but it doesnt show up the error epected.

And I tried to use FCTools.ShowMessage, but it was inside a for-loop and it pops up a lot.

 

Thanks for suggestion at least I have way to fix my issue.

Thanks 

Close