Extract Value in for each loop

I have a folder with PDF’s “str_folder” and i use for each loop to get only one value from the PDF. So what i tried is:
I loop over “str_folder” with “item” as the current element. Then i created a Taxonomy , Digitize Document with Microsoft OCR and then Classify Document Scope “Classification” with simple Keyword Based Classifier and then i used Data Extraction Scope with a Form Extractor. Everythin should be fine but if i run that code i get the Error “data extraction scope index was outside the bounds of the array”. I did that in the Debug Modus and get for “Classification = ClassificationResult[0] { }”

That means your classifier failed to classify the document, I would recommend adding an error handling mechanism whenever you use a for/each loop.

In general, our recommendation is to process each document individually, check out the “Document Understanding Process” template

1 Like

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