Error with Forms AI and Document Understanding

Hi all,
I do not understand why I get this error when I try to use a Forms AI end point in my process.
-I have created a forms AI in Document Understanding in my UI path cloud
-I have trained this model with a few sample which contains regular fields and column fields
-I have published this model to get an endpoint
-In my process I have set an digitize document activity with a UiPath document OCR acitivity as child. (Api key is set, and endoint to my model too)
-When I execute my process, I get this error :

Digitize Document: One or more errors occurred. (Request CorrelationId:…
Request PredictionId: …
Error performing OCR: {“error_id”:“InvalidInput”,“error_message”:“request error: {‘api_version’: [‘Missing data for required field.’], ‘pages’: [‘Missing data for required field.’]}”}
UiPathOCRErrorInvalidResponse)

Capture01

And the stack trace :
RemoteException wrapping System.AggregateException: One or more errors occurred. (Request CorrelationId: xxx
Request PredictionId: xxx
Error performing OCR:
{
“error_id”:“InvalidInput”,“error_message”:“request error:
{
‘api_version’: [‘Missing data for required field.’],
‘pages’: [‘Missing data for required field.’]
}”
}UiPathOCRErrorInvalidResponse) —> RemoteException wrapping UiPath.Shared.Activities.TrackingException: Request CorrelationId: xxx
Request PredictionId: xxx
Error performing OCR:
{
“error_id”:“InvalidInput”,“error_message”:“request error:
{
‘api_version’: [‘Missing data for required field.’],
‘pages’: [‘Missing data for required field.’]
}”
}UiPathOCRErrorInvalidResponse —> RemoteException wrapping System.Exception: Error performing OCR:
{
“error_id”:“InvalidInput”,“error_message”:“request error:
{
‘api_version’: [‘Missing data for required field.’],
‘pages’: [‘Missing data for required field.’]
}”
}UiPathOCRErrorInvalidResponse —> RemoteException wrapping UiPath.Vision.OCR.OCRException:
{
“error_id”:“InvalidInput”,“error_message”:“request error:
{
‘api_version’: [‘Missing data for required field.’],
‘pages’: [‘Missing data for required field.’]
}”
}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, Dictionary2 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.ProcessPdfPageWithAuto(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)

Thanks for any help !

@Florent_Delage

This should be the document ocr url

https://du.uipath.com/ocr

May I know what you are using?

The end point you created in ai center should be used in extraction activity

Cheerd

Thank you ! Ok, first problem is solved. So I have to use another activity to be able to use my endpoint. Could you tell me if is it a data extraction scope ? I do not understand do you meaning by “what you are using ?”

I have succeded to use my forms AI end point by using this tutorial…

But, main problem is the consumption of AI units. It is possible to not use use AI units by using forms AI ?