System.AggregateException: One or more errors occurred. (Request CorrelationId: de110916-8ec0-4d07-8d73-0d230701b510
Request PredictionId: KZdKTWvrW0ahDXf/GHqdZEsj06EZPz2sfNmSUhhQLMU=_ea9868cf-8822-4a08-9dd4-fc18e158188d
Error performing OCR: Server response: Invalid API key specified Error:UiPathOCRInvalidApiKey CF-RAY: . AppId: ) —> UiPath.Shared.Activities.TrackingException: Request CorrelationId: de110916-8ec0-4d07-8d73-0d230701b510
Request PredictionId: KZdKTWvrW0ahDXf/GHqdZEsj06EZPz2sfNmSUhhQLMU=_ea9868cf-8822-4a08-9dd4-fc18e158188d
Error performing OCR: Server response: Invalid API key specified Error:UiPathOCRInvalidApiKey CF-RAY: . AppId: —> System.Exception: Error performing OCR: Server response: Invalid API key specified Error:UiPathOCRInvalidApiKey CF-RAY: . AppId: —> UiPath.CoreIpc.RemoteException: Server response: Invalid API key specified Error:UiPathOCRInvalidApiKey CF-RAY: . AppId: at UiPath.OCR.Core.ImageAnnotatorService.d__11.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__181.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.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.ProcessOcrPagePart(PdfTokenizerImage image, IOcrEngine engine, Boolean checkboxDetectionEnabled, String contentId, 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.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Hi,
For now, can you check if your api key for OCR is correct?
Regards,
Hi @naveen5
HI @naveen5 ,
Please validate the API Key you provided is correct or not,
Go to Admin->Licenses->Consumables
You can find the AI Units API key /DU API key.
Thanks,
Pallavi.