You are viewing limited content. For full access, please sign in.

Question

Question

QuickFields Question

asked on October 24, 2016

Hi,

So the issue here is that there is a due date that appears on the top of every page of the scanned invoice but some pages have it clear and some dont, so i have setup ocr to read that area in every page and extract date using regular expression.

When it is running, i can see that on some pages token is being extracted properly but when there is no match on next page that token gets replaced by empty string. In the end it always fails as that token is empty.

conditions dont work as well as token gets initialized everytime i think,

I have tried to initialize that token in document class and pre classification processing but nothing helps.

Is there a way to retain a value once assigned to a token in a document class?

Thanks

Junaid Inam

0 0

Answer

SELECTED ANSWER
replied on October 24, 2016

You can use Token Accumulator to collect the values across all pages and then use token functions to remove the blanks.

1 0

Replies

replied on October 24, 2016

Do you need to read it from every page if it's the same across the invoice? Why not just read it from page 1?

0 0
replied on October 24, 2016

it is same for whole invoice but quick fields cant read it properly on fixed page. sometimes it could read it from page 1 or sometimes from page 15.

It would have been useful if we had something like where if token gets a value  after regular expression it gets locked for the entire document even though ocr is running on every page.

Do you think restricting page number and trying to read it from there is my only option?

0 0
SELECTED ANSWER
replied on October 24, 2016

You can use Token Accumulator to collect the values across all pages and then use token functions to remove the blanks.

1 0
replied on October 25, 2016 Show version history

Thanks Miruna. It worked! I had to use Remove Duplicates and remove empty items function on the token.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.