DU Error relating to pdf doc image area?

Hi all, my du automation stopped working for a particular supplier’s invoices. Had never been a problem before and not receiving for any other supplier’s docs.

During testing received the error message: ‘rectangle to crop is outside image area.’

I have gone back into the ‘Train your classifier’ to add more training samples to see if that would fix and then received the same message:

Can’t seem to find any other thread with same issue - hoping to get some guidance if possible.

I’ve checked packages and all are up to date (not updated to previews though).

Many thanks

1 Like

Hi @cam.law

have you tried with below method.

Thanks @Baskar_Gurumoorthy - I’m a bit confused. I’m not trying to crop images in my automation. I’m simply getting pdf invoices read through ocr in du.

Hi @cam.law ,

Which OCR Engine you are using in the Intelligent Keyword Classifier, Can you please try change the OCR engine and check

Hi there

Did you manage to find a fix for this?
I’m experiencing the same error when trying to Digitize a document.

Thanks!

We are having the same issue with documents from a single supplier (and only this supplier) when trying to digitise the document.

Process was aborted due to InvalidOperationException with message: Rectangle to crop is outside of image area
 Full Exception: System.InvalidOperationException: Rectangle to crop is outside of image area
   at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
--- End of stack trace from previous location ---
   at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
   at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
   at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
   at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
c588e061-68f1-442f-ae7a-31763934e90f_20250204043148

Packages in use:
UiPath.DocumentUnderstanding.ML.Activities 1.28.7
UiPath.IntelligentOCR.Activities 6.19.6