Simply "Rule error"

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


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?


Attached Files

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


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

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



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.