Error performing Digitize Document using the Document Understanding Template

I am trying to send some files through the DU framework but am getting the following error at the digitization step:

RemoteException wrapping System.Exception: Error performing OCR: {“info”: “Prediction Failed”, “reason”: “{"message": "Service Exception 400: InvalidRequest - pages structure does not follow specified interface: ", "stacktrace": "\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/model/bin/uipath_core/plugin.py\", line 248, in model_predict_event\n result, metrics = self.model.predict_with_metadata(model_data, metadata = model_metadata)\n File \"/workspace/model/microservice/main.py\", line 58, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 229, in predict\n File \"\", line 218, in get_pages\n File \"\", line 203, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse —> RemoteException wrapping UiPath.Vision.OCR.OCRException: {“info”: “Prediction Failed”, “reason”: “{"message": "Service Exception 400: InvalidRequest - pages structure does not follow specified interface: ", "stacktrace": "\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/model/bin/uipath_core/plugin.py\", line 248, in model_predict_event\n result, metrics = self.model.predict_with_metadata(model_data, metadata = model_metadata)\n File \"/workspace/model/microservice/main.py\", line 58, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 229, in predict\n File \"\", line 218, in get_pages\n File \"\", line 203, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse
at UiPath.OCR.Core.ImageAnnotatorService.d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.OCR.Core.UiPathCloudOCRExternalEngine.d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.OCR.Core.UiPathCloudOCREngine.d__6.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Vision.OCR.Engine.BaseEngine.d__20.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Vision.Core.OcrEngineRunner.d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Vision.Host.Service.HostServiceWithRefContext.d__5.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Server.d__22.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Server.d__21.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Server.<>c__DisplayClass4_2.<<-ctor>b__6>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.IOHelpers.d__12.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.IOHelpers.d__18`1.MoveNext()
— End of inner exception stack trace —
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.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

I have ensured the endpoint I am using is correct and have tried many documents. All of them return this error. Any help would be appreciated.

Hello @NM-Card!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff