# Error using Data Extraction example code

**URL:** <https://forum.uipath.com/t/error-using-data-extraction-example-code/152718>\
**Category:** Document Understanding\
**Tags:** intelligent-ocr, document-understanding, activities\
**Created:** [September 20, 2019, 6:49pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718 "2019-09-20T18:49:24Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![NIVED\_NAMBIAR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nived_nambiar/32/169066_2.png) [@NIVED\_NAMBIAR](https://forum.uipath.com/u/NIVED_NAMBIAR)\
**Post date:** [November 8, 2020, 11:41am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/21 "2020-11-08T11:41:14Z")

</div>

> [@Data Extraction Scope: Your license could not be validated error](https://forum.uipath.com/t/data-extraction-scope-your-license-could-not-be-validated-error/250643/2):
>
> Hi @Gopalakrishnan_K, Refer this below links: Hope this helps,if it works mark as solution. Regards, Neelima.

Check this link @devashish1989

---

<div class="post-metadata">

**Author:** ![devashish1989](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/devashish1989/32/288454_2.png) [@devashish1989](https://forum.uipath.com/u/devashish1989)\
**Post date:** [November 8, 2020, 3:26pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/22 "2020-11-08T15:26:56Z")

</div>

great thank you so much @NIVED_NAMBIAR for all the help adding this “/?edition=enterprise” to end point solved the issue

---

<div class="post-metadata">

**Author:** ![Pradeep\_Murugesan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pradeep_murugesan/32/189834_2.png) [@Pradeep\_Murugesan](https://forum.uipath.com/u/Pradeep_Murugesan)\
**Post date:** [December 4, 2020, 6:36am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/23 "2020-12-04T06:36:49Z")

</div>

Hi @Ioana_Gligan,

I am facing a similar issue in Digitize Document stage and I’m using the updated version of IntelligentOCR, DocumentUnderstanding and DocumentProcessing packages. Can you please help me on how to resolve it.

RemoteException wrapping System.Exception: An unexpected error has occurred —\> RemoteException wrapping System.AggregateException: One or more errors occurred. —\> RemoteException wrapping UiPath.SmartData.Digitization.Tokenization.TokenizationException: umrah-form-01.pdf —\> RemoteException wrapping System.Exception: Error performing OCR: There was an error reading from the pipe: Unrecognized error 109 (0x6d). —\> RemoteException wrapping System.ServiceModel.CommunicationException: There was an error reading from the pipe: Unrecognized error 109 (0x6d). —\> RemoteException wrapping System.IO.PipeException: There was an error reading from the pipe: Unrecognized error 109 (0x6d).  
at System.ServiceModel.Channels.PipeConnection.FinishSyncRead(Boolean traceExceptionsAsErrors)  
at System.ServiceModel.Channels.PipeConnection.Read(Byte buffer, Int32 offset, Int32 size, TimeSpan timeout)  
— End of inner exception stack trace —  
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)  
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)  
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object outs, IAsyncResult result)  
at System.ServiceModel.Channels.ServiceChannelProxy.TaskCreator.\<\>c\_\_DisplayClass7\_0`1.<CreateGenericTask>b__0(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- 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.VisionClient.<ScrapeAsync>d__5.MoveNext() --- End of inner exception stack trace --- at UiPath.Vision.VisionClient.<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.Vision.UiImage.<ScrapeOCRAsync>d__26.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.Core.Activities.OCREngineActivity.<ExecuteAsync>d__50.MoveNext() --- End of stack trace from previous location where exception was thrown --- at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at UiPath.Core.Activities.OCR.Engines.OCREngineAsyncTaskCodeActivity.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.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.d\_\_7.MoveNext()  
— End of inner exception stack trace —  
at UiPath.SmartData.Digitization.OCR.OcrTokenizer.d\_\_7.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.d\_\_13.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.b\_\_0(Task`1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()  
at System.Threading.Tasks.Task.Execute()  
— 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.DocumentDigitizer.\<\>c\_\_DisplayClass16\_0`1.\<g\_\_AttachContinuation|0\>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.SmartData.Digitization.DocumentDigitizer.d\_\_14.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.d\_\_34.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)

 ![image](https://global.discourse-cdn.com/uipath/original/3X/6/5/655d7844671fd8bfb8280885d4f11174438536d4.png)

Thanks in Advance!  
Pradeep

---

<div class="post-metadata">

**Author:** ![Sanjay\_Jayachandran](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sanjay_jayachandran/32/182810_2.png) [@Sanjay\_Jayachandran](https://forum.uipath.com/u/Sanjay_Jayachandran)\
**Post date:** [April 10, 2021, 6:19am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/24 "2021-04-10T06:19:17Z")

</div>

![error](https://global.discourse-cdn.com/uipath/original/3X/e/c/ec5d6167e7f882dec9769143468a43730e90ae17.jpeg)  
Hi, Pls find out the error !

---

<div class="post-metadata">

**Author:** ![g.ward](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/g.ward/32/202931_2.png) [@g.ward](https://forum.uipath.com/u/g.ward)\
**Post date:** [May 10, 2021, 2:22pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/25 "2021-05-10T14:22:53Z")

</div>

Hi,

We have encountered this issue on a live bot, which was built on intelligentOCR package 4.10.4.  
We cannot upgrade to package 4.13 because the digitize document algorithm has changed in this version, and doing so breaks all of the regex that has been programmed for many documents - on top of that, the new algorithm gives an extract where no regex solution is possible.

Is there some other way around this problem, or some way to upgrade but keep the old digitise document algorithm? If not, we may have to raise an urgent ticket.

Thanks,

Gareth

---

<div class="post-metadata">

**Author:** ![g.ward](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/g.ward/32/202931_2.png) [@g.ward](https://forum.uipath.com/u/g.ward)\
**Post date:** [May 11, 2021, 2:56pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/26 "2021-05-11T14:56:37Z")

</div>

For anyone else, the solution without upgrading is to remove or downgrade any other package that uses the ‘bitmiracle.dotoc.pdf’ dependency. In our case, the latest PDF activities package was overriding the intelligent OCR package, causing the error.

---

<div class="post-metadata">

**Author:** ![davendra.patel](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/davendra.patel/32/176676_2.png) [@davendra.patel](https://forum.uipath.com/u/davendra.patel)\
**Post date:** [July 15, 2021, 10:13am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/27 "2021-07-15T10:13:32Z")

</div>

Hi @Ioana_Gligan

Seems this problem has come back for 4.15.0-preview

When you set the scale to 3 you get this error??

Regards  
Davendra

[Previous page](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718.md?page=1)
