I have written a script rule for finding the confidence of a character and set the value to a field as below
this.Field("xxx").Text = this.Field("yyy").Symbols.Item(0).Confidence
The above script is to get the confidence of first character of the field 'yyy'
When I test run in the document definition, I get the perfect output.
But once after publishing the document definiton, I drag an invoice in the test batch, I don't get the output. Even not for the same invoice.
One thing I noticed here is, I don't get output only for the Confidence property. I get the desired output for props like 'IsSuspicios','NeedVerification', e.t.c
Is this behavior because of the the registry key that is mentioned in the ABBYY docs as below?
Confidence level for a batch type. Returns a value from 0 to 100.
Important! Using this property requires storing some additional data, which may increase the size of a document and additional disk space. By default, no additional data are saved and the property is disabled. For the correct operation of the property, set the registry key [HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\12.0\Controller] "ForceSaveConfidenceLevel" = "true". Instead of HKEY_CURRENT_USER, select the branch of the user account that will recognize documents."
And I couldn't find the path mentioned above:(