Classify Document Scope: Index was outside the bounds of array

Hi there,

I have a weird scenario here where I have build a Document Understanding workflow and check the confidence score if it is less than 0.8 then it will go to Action Center for Human Validation. On that note, I have purposely put a lower score so that it will process all the documents however after processing the 3rd document it gives me the below error for the 4th document:

image

Strangely enough when I put a higher score and the third one needs human validation and as soon as it finish validating, the 4th document will process with no issue.

I am aware that I cannot add a Delay activity in a persistent project because it will suspend the whole process.

Below is a screenshot of the digitization and classification stage:

Any help on this would be much appreciated.

Thank you.

@jordan.c

in the classifier define the keywords that are present in the invoice.

@Manju_Reddy_Kanughula, I have included all the keywords and as I said in my earlier post it is able to classify and extract but the only thing is that it does not allow the 4th document to be classified. Additionally I have output the docText and dom and it does look good to me.

Another thing that I tried to ensure that it wasn’t the document’s issue is that I deleted the 3rd document and this will result only 3 documents left in the folder. Surprisingly, the extraction worked well with no issue.

FYI, I have used OmniPage amd UiPath Document OCR for Digitization.

I’m a bit lost here so hopefully someone would be able help me on this matter.

Thank you.

@jordan.c

Did you happen to check the innerexception details from the locals panel…that might gice more info on what exactly is failing…

May I know how are you modifying the confidence score and at that time are any other variables are also effected?

Cheers

Hi @Anil_G,

Really appreciate your kind assistance on this matter. For some reason after upgrading the UiPath.IntelligentOCR.Activities to v6.6.0, everything seems to work properly.

I modify the confidence score by iterating the extractedResults via the ResultsDocument.Fields and Values. In my case I have few fields therefore I append the confidence score into an empty list then at the end I take the minimum score out of the list then compare with the one I defined. I hope this makes sense to you.

Again thank your for reply.

Cheers.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.