im trying to extract data from a banck check (image) using document understanding , and i get error in Digitize Document :
23.4.4+Branch.support-v23.4.Sha.945d5c2edbcdd77cdd9ba7fe5accc15c57daf757
Source : Main Sequence
Message : One or more errors occurred. (Request CorrelationId: b3330132-6305-40c7-9e83-9c7e1bfd61b0
Request PredictionId: btwNtANN/t+6xSgzxxyGJ0hVmgBZhKj79yHPo1sYWQY=_cccc4c21-1a7f-4244-8099-0335bf9537fe
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 253, 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 60, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 211, in predict\n File \"\", line 292, in _predict\n File \"\", line -1, in get_pages\n File \"\", line -1, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse)
Type d’exception : System.AggregateException
System.AggregateException: One or more errors occurred. (Request CorrelationId: b3330132-6305-40c7-9e83-9c7e1bfd61b0
Request PredictionId: btwNtANN/t+6xSgzxxyGJ0hVmgBZhKj79yHPo1sYWQY=_cccc4c21-1a7f-4244-8099-0335bf9537fe
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 253, 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 60, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 211, in predict\n File \"\", line 292, in _predict\n File \"\", line -1, in get_pages\n File \"\", line -1, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse) —> UiPath.Shared.Activities.TrackingException: Request CorrelationId: b3330132-6305-40c7-9e83-9c7e1bfd61b0
Request PredictionId: btwNtANN/t+6xSgzxxyGJ0hVmgBZhKj79yHPo1sYWQY=_cccc4c21-1a7f-4244-8099-0335bf9537fe
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 253, 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 60, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 211, in predict\n File \"\", line 292, in _predict\n File \"\", line -1, in get_pages\n File \"\", line -1, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse —> 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 253, 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 60, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 211, in predict\n File \"\", line 292, in _predict\n File \"\", line -1, in get_pages\n File \"\", line -1, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse —> UiPath.CoreIpc.RemoteException: {“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 253, 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 60, in predict_with_metadata\n response, telemetry = service_internal.predict(context, doctype_name=model_name or self.doctype_name)\n File \"\", line 211, in predict\n File \"\", line 292, in _predict\n File \"\", line -1, in get_pages\n File \"\", line -1, in validate_pages_structure\nutil.misc.ServiceException: Service Exception 400: InvalidRequest - pages structure does not follow specified interface: "}”} UiPathOCRErrorInvalidResponse à UiPath.OCR.Core.ImageAnnotatorService.d__11.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.OCR.Core.UiPathCloudOCRExternalEngine.d__0.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.OCR.Core.UiPathCloudOCREngine.d__6.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Vision.OCR.Engine.BaseEngine.d__20.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Vision.Core.OcrEngineRunner.d__0.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.Vision.Host.Service.HostServiceWithRefContext.d__5.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.CoreIpc.Server.d__22.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.CoreIpc.Server.d__21.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.CoreIpc.Server.<>c__DisplayClass4_2.<<-ctor>b__6>d.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.CoreIpc.IOHelpers.d__13.MoveNext()
— Fin de la trace de la pile à partir de l’emplacement précédent au niveau duquel l’exception a été levée —
à System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
à UiPath.CoreIpc.IOHelpers.d__191.MoveNext() --- End of inner exception stack trace --- at UiPath.Vision.VisionClient.ScrapeAsync(OCRInput input, CancellationToken ct) at UiPath.OCR.Core.Core.OCRScraper.ScrapeOCRAsync(Byte[] imageData, OCROptions options, CancellationToken cancellationToken) at UiPath.OCR.Activities.UiImage.ScrapeOCRAsync(OCROptions options, CancellationToken cancellationToken) at UiPath.OCR.Activities.OCRBase.ScrapeWithOptionsAsync(Image image, OCROptions ocrOptions, CancellationToken ct) at UiPath.OCR.Activities.UiPathDocumentOCR.ScrapeWithOptionsAsync(Image image, OCROptions ocrOptions, CancellationToken ct) at UiPath.OCR.Activities.OCRBase.PerformOCRAsync(Image image, Dictionary
2 options, CancellationToken ct)
— End of inner exception stack trace —
at UiPath.OCR.Contracts.Activities.OCRAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
at UiPath.IntelligentOCR.Digitization.ExtendedOcrEngineActivityWrapper.RunOcr(Stream imageStream, CancellationToken token)
at UiPath.IntelligentOCR.Digitization.GenericOcrActivityWrapper.Execute(PageRendererResults renderedPage, CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.RunOcr(IOcrEngine ocrEngine, PageRendererResults renderedPage, String documentId, CancellationToken token)
— End of inner exception stack trace —
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.ApplyOcr(CachingPageRenderer renderer, IOcrEngine ocrEngine, DigitizationSettings settings, String contentId, CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.ProcessPageWithOcr(Content page, IOcrEngine ocrEngine, DigitizationSettings settings, String contentId, CachingPageRenderer renderer, CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.GetRawPage(Content page, IOcrEngine ocrEngine, CachingPageRenderer renderer, Boolean shouldApplyOcr, DigitizationSettings settings, String contentId, CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.PageDigitizer.ProcessPage(IDigitizationDocument digitizationDocument, Int32 pageNumber, IOcrEngine ocrEngine, Boolean shouldApplyOcr, DigitizationSettings settings, String contentId, CancellationTokenSource source)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.DocumentDigitizer.GetPages(Content content, DigitizationSettings settings, IOcrEngine ocrEngine, CancellationToken token)
at UiPath.DocumentUnderstanding.Digitizer.Digitization.DocumentDigitizer.Digitize(Content content, DigitizationSettings settings, IOcrEngine ocrEngine, CancellationToken token)
at UiPath.IntelligentOCR.Digitization.IntelligentOcrDigitizer.Digitize(Content content, IOcrEngine ocrEngine, ApplyOcrOnPdf applyOcrOnPdf, Boolean detectCheckboxes, IDigitizationScheduler scheduler, IDigitizerTelemetryService telemetryService, CancellationToken token)
at UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
what could be the problem?