Document understanding is not working. throw error

We’d document understanding license in orchestrator. And tried to use digitize-document activity with uipath-document-ocr. But it always errored. Studio version: 2021.10.4 enterprise. Any input is much appreciated.

The error message as follows


RemoteException wrapping System.Exception: An unexpected error has occurred  ---> RemoteException wrapping System.AggregateException: One or more errors occurred.  ---> RemoteException wrapping System.AggregateException: One or more errors occurred.  ---> RemoteException wrapping UiPath.SmartData.Digitization.Tokenization.TokenizationException: MergedDocuments.pdf_Page_0  ---> RemoteException wrapping System.Exception: Error performing OCR: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. UiPathOCRErrorRunningEngine  ---> RemoteException wrapping UiPath.Vision.OCR.OCRException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0. UiPathOCRErrorRunningEngine  ---> RemoteException wrapping Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

   at Newtonsoft.Json.JsonTextReader.ParseValue()

   at Newtonsoft.Json.JsonTextReader.Read()

   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)

   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)

   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)

   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)

   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)

   at UiPath.OCR.Core.ImageAnnotatorService.<BatchAnnotateImagesAsync>d__8.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.OCR.Core.UiPathCloudOCRExternalEngine.<RecognizeAsync>d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.OCR.Core.UiPathCloudOCREngine.<RecognizeAsync>d__6.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.Vision.OCR.Engine.BaseEngine.<RunAsync>d__20.MoveNext()

    --- End of inner exception stack trace ---

   at UiPath.Vision.OCR.Engine.BaseEngine.<RunAsync>d__20.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.Vision.Core.OcrEngineRunner.<ScrapeAsync>d__0.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.Vision.Host.Service.HostServiceWithRefContext.<ScrapeAsync>d__5.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.CoreIpc.Server.<InvokeMethod>d__22.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.CoreIpc.Server.<HandleRequest>d__21.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   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.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.CoreIpc.IOHelpers.<WithResult>d__12.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.CoreIpc.IOHelpers.<WithTimeout>d__18`1.MoveNext()

    --- End of inner exception stack trace ---

   at UiPath.OCR.Activities.UiPathOCRBase.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 where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.IntelligentOCR.Digitization.ExtendedOcrEngineActivityWrapper.<Execute>d__2.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.SmartData.Digitization.OCR.OcrTokenizer.<TokenizeAsync>d__9.MoveNext()

    --- End of inner exception stack trace ---

   at UiPath.SmartData.Digitization.OCR.OcrTokenizer.<TokenizeAsync>d__9.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.SmartData.Digitization.PDF.PdfTokenizer.<TokenizePageImage>d__13.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.SmartData.Digitization.PDF.PdfTokenizer.<ProcessPageDocument>d__11.MoveNext()

    --- End of inner exception stack trace ---

   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)

   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)

   at System.Threading.Tasks.Task`1.get_Result()

   at UiPath.SmartData.Digitization.ContentTokenizer.<>c__DisplayClass8_0.<TokenizePage>b__0(Task`1 t)

   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()

    --- End of inner exception stack trace ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.SmartData.Digitization.DocumentDigitizer.<DigitizeAsync>d__15.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument.<ExecuteAsync>d__35.MoveNext()

    --- End of inner exception stack trace ---

   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)


@ranjith.kumar

It’s difficult to understand the issue just by sharing the exception message

Suggest to share the workflow screenshots and when you getting this error

For this debug your workflow by clicking step into

Thanks

@Srini84
It just contain only Digitize-Document activity like in image. I’m just testing the document understanding works.

Hi @ranjith.kumar ,

Can you please show the properties of the activity.

Thanks

Hi!

Have a view on this video

regards,
NaNi

It works fine in my local machine( with free version). But issue is in client machine( with enterprise version). I’m not sure what went wrong.

Here is the property images

image

Hi!

Have you updated the package in client machine?

Regards,
NaNi

@ranjith.kumar

Check below link for your reference

Hope this will help you

Thanks