How to determine the Field with the corresponding error: "The document has hidden fields, some of which have warnings" in the document definition.
Add the following code to the Project Properties > Event Handler > After document state changed:
string sErrors = "";
foreach (IRuleError ruleError in Document.RuleErrors)
foreach (IField f in ruleError.GetFields())
sErrors += f.FullName.ToString() + " ";
sErrors += " : " + ruleError.Message;
sErrors = "";
- In the Project Setup Station, create a batch of a default batch type.
- Load a document there and recognize it.
- Expand the recognition task log.
- There will be messages listing all errors and warnings for all fields (including hidden ones):