# 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:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ridf](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@ridf](https://forum.uipath.com/u/ridf)\
**Post date:** [September 20, 2019, 6:49pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/1 "2019-09-20T18:49:24Z")

</div>

Hello all, I am getting an error on the step to Digitize the document. Here is the error message, it says something about having to refresh a key…

RemoteException wrapping System.Exception: An unexpected error has occurred —\> RemoteException wrapping UiPath.SmartData.Digitization.Tokenization.TokenizationException: 2018 Renewal Quote - Chevron (Cert).pdf —\> RemoteException wrapping System.InvalidOperationException: This build of Docotic.Pdf library requires maintenance through 11 July 2019.  
Your license includes maintenance through 14 June 2017.  
Please update your license at [Pricing for Docotic.Pdf Library | Licenses](http://bitmiracle.com/purchase.aspx)  
at ..ctor(IPdfStreamProvider ,  
Action`1 , IFontLoader , `1 )  
at BitMiracle.Docotic.Pdf.PdfDocument.(PdfConfigurationOptions )  
at UiPath.SmartData.Digitization.PDF.PdfTokenizer.TokenizeDocument(String correlationId,  
Stream content,  
CancellationToken token)  
at UiPath.SmartData.Digitization.PDF.PdfTokenizer.Tokenize(String correlationId,  
Content content,  
CancellationToken token)  
— End of inner exception stack trace —  
at UiPath.SmartData.Digitization.PDF.PdfTokenizer.Tokenize(String correlationId,  
Content content,  
CancellationToken token)  
at UiPath.SmartData.Digitization.ContentTokenizer.GetTokenPages(Content content,  
CancellationToken token)  
at UiPath.SmartData.Digitization.DocumentDigitizer..ctor(Content content,  
IOcrEngine engine,  
Int32 degreeOfParallelism,  
CancellationToken token)  
at UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument.d\_\_30.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)

---

<div class="post-metadata">

**Author:** ![pattyricarte](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pattyricarte/32/81346_2.png) [@pattyricarte](https://forum.uipath.com/u/pattyricarte)\
**Post date:** [September 20, 2019, 10:58pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/2 "2019-09-20T22:58:17Z")

</div>

Hi @ridf

Can you elaborate more try to put some screenshot to easily address the issue.

cheers 😃

Happy learning 😃

---

<div class="post-metadata">

**Author:** ![ridf](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@ridf](https://forum.uipath.com/u/ridf)\
**Post date:** [September 23, 2019, 10:16pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/3 "2019-09-23T22:16:23Z")

</div>

Hi Here’s the screen shot of the error message in studio. Thanks in advance for any help!

 ![image](https://global.discourse-cdn.com/uipath/original/3X/7/6/76c4fd342f88aeb8916d4f522fcfab9f7585bfaf.png)

---

<div class="post-metadata">

**Author:** ![Lou\_Kristopher\_Milan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lou_kristopher_milan/32/99068_2.png) [@Lou\_Kristopher\_Milan](https://forum.uipath.com/u/Lou_Kristopher_Milan)\
**Post date:** [October 22, 2019, 5:28am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/4 "2019-10-22T05:28:03Z")

</div>

Also encountered the issue while digitizing document. has anyone resolved the issue or if there may be work-arounds?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Ioana\_Gligan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ioana_gligan/32/213104_2.png) [@Ioana\_Gligan](https://forum.uipath.com/u/Ioana_Gligan)\
**Post date:** [November 7, 2019, 9:37am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/5 "2019-11-07T09:37:13Z")

</div>

@ridf and @Lou_Kristopher_Milan - please upgrade to latest PDF (if used) , IntelligentOCR and MachineLearningExtractor (if used) versions, error should disappear. Thanks!

Also, could you check if your FIPS compliance flag is set to 1? This might be related and this information would help us make the experience better!

Thanks,

Ioana

---

<div class="post-metadata">

**Author:** ![Lou\_Kristopher\_Milan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lou_kristopher_milan/32/99068_2.png) [@Lou\_Kristopher\_Milan](https://forum.uipath.com/u/Lou_Kristopher_Milan)\
**Post date:** [November 7, 2019, 9:43am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/6 "2019-11-07T09:43:13Z")

</div>

Hi @loana\_Glin, thanks! the challenge encountered was we were unable to find the IntelligentOCR activity and what we did was we added the link on Manage packages [https://platform.uipath.com/nuget/activities](https://platform.uipath.com/nuget/activities). Then updated this after. Hope others can use this as reference just in case this doesn’t work on your local machines.

---

<div class="post-metadata">

**Author:** ![praneethpeyyeti](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@praneethpeyyeti](https://forum.uipath.com/u/praneethpeyyeti)\
**Post date:** [December 7, 2019, 11:30am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/7 "2019-12-07T11:30:27Z")

</div>

Hi Loana\_Gligan,

I am also facing same error can you please tell me how to reslove it.

RemoteException wrapping System.Exception: An unexpected error has occurred —\> RemoteException wrapping UiPath.SmartData.Digitization.Tokenization.TokenizationException: 01.pdf —\> RemoteException wrapping System.InvalidOperationException: This build of Docotic.Pdf library requires maintenance through 18 October 2019.  
Your license includes maintenance through 14 June 2017.  
Please update your license at [Pricing for Docotic.Pdf Library - Bit Miracle](http://bitmiracle.com/purchase.aspx)  
at …ctor(IPdfStreamProvider ,  
Action`1 , IFontLoader , `1 )  
at BitMiracle.Docotic.Pdf.PdfDocument.(PdfConfigurationOptions )  
at UiPath.SmartData.Digitization.PDF.PdfTokenizer.TokenizeDocument(String correlationId,  
Stream content,  
CancellationToken token)  
at UiPath.SmartData.Digitization.PDF.PdfTokenizer.Tokenize(String correlationId,  
Content content,  
CancellationToken token)  
— End of inner exception stack trace —  
at UiPath.SmartData.Digitization.PDF.PdfTokenizer.Tokenize(String correlationId,  
Content content,  
CancellationToken token)  
at UiPath.SmartData.Digitization.ContentTokenizer.GetTokenPages(Content content,  
CancellationToken token)  
at UiPath.SmartData.Digitization.DocumentDigitizer…ctor(Content content,  
IOcrEngine engine,  
Int32 degreeOfParallelism,  
CancellationToken token)  
at UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument.d\_\_30.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/5/0/5045518d49c093f3d5ee807a940d03175d410f30.png)

Thanks,  
In Advance

---

<div class="post-metadata">

**Author:** ![Ioana\_Gligan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ioana_gligan/32/213104_2.png) [@Ioana\_Gligan](https://forum.uipath.com/u/Ioana_Gligan)\
**Post date:** [December 9, 2019, 2:52pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/8 "2019-12-09T14:52:59Z")

</div>

Please upgrade to latest IntelligentOCR, latest PDF and latest MachineLearningExtractor (whichever pachages you are using). This will most probably fix your issue!

Cheers,

Ioana

---

<div class="post-metadata">

**Author:** ![ronak\_94](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@ronak\_94](https://forum.uipath.com/u/ronak_94)\
**Post date:** [December 25, 2019, 9:19am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/9 "2019-12-25T09:19:10Z")

</div>

worked for me.

Thanks

---

<div class="post-metadata">

**Author:** ![Prathyu](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prathyu](https://forum.uipath.com/u/Prathyu)\
**Post date:** [January 29, 2020, 5:59am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/10 "2020-01-29T05:59:15Z")

</div>

> [@praneethpeyyeti](#):
>
> oana\_Gligan,

Hi @Ioana_Gligan am getting error like **Data Extraction Scope: The request message was already sent. Cannot send the same request message multiple times.**. while using Data Extraction scope activity.

Before it worked, now it is throwing that error.

Could you please help me regarding this.  
Thanks in advance

 ![Screenshot (1)](https://global.discourse-cdn.com/uipath/original/3X/3/0/30ca7006fcd267c9e175b3b53fb5c8d1ecaabcf4.png)

---

<div class="post-metadata">

**Author:** ![Ioana\_Gligan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ioana_gligan/32/213104_2.png) [@Ioana\_Gligan](https://forum.uipath.com/u/Ioana_Gligan)\
**Post date:** [January 29, 2020, 1:33pm UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/11 "2020-01-29T13:33:43Z")

</div>

Hello @Prathyu,

There was a shortage in the service. Can you please try again and let me know if it works?

Thanks!

---

<div class="post-metadata">

**Author:** ![Prathyu](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prathyu](https://forum.uipath.com/u/Prathyu)\
**Post date:** [January 30, 2020, 5:27am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/12 "2020-01-30T05:27:02Z")

</div>

Hi @Ioana_Gligan

Now it is working. Thankyou

Is it possible to count rows from web table in uipath

---

<div class="post-metadata">

**Author:** ![Prathyu](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prathyu](https://forum.uipath.com/u/Prathyu)\
**Post date:** [January 30, 2020, 6:59am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/13 "2020-01-30T06:59:26Z")

</div>

Hi @Ioana_Gligan. Here am getting another issue like when the bot is

 ![Screenshot (2)](https://global.discourse-cdn.com/uipath/original/3X/8/f/8f896af75668ba5a34e2699596ea14375b4ad5cb.png) running for different invoice with different formats, in present validation station the fields are not coming as default there i need to drag from the sheet.  
How can i get the fields automatically  
kindly let me know.

and every we need to click on save extracted data??

---

<div class="post-metadata">

**Author:** ![Ioana\_Gligan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ioana_gligan/32/213104_2.png) [@Ioana\_Gligan](https://forum.uipath.com/u/Ioana_Gligan)\
**Post date:** [January 30, 2020, 7:08am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/14 "2020-01-30T07:08:32Z")

</div>

Hello @Prathyu,

Sure, use the Data Scraping option 🙂

---

<div class="post-metadata">

**Author:** ![Ioana\_Gligan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ioana_gligan/32/213104_2.png) [@Ioana\_Gligan](https://forum.uipath.com/u/Ioana_Gligan)\
**Post date:** [January 30, 2020, 7:11am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/15 "2020-01-30T07:11:36Z")

</div>

If a field does not report a value in the Validation Station, it means the pre-trained model did not capture it. You will need to correct it manually using the Validation Station and use the output results as confirmed by the user.

Please remember that the public endpoint for Invoice processing is based on a pre-trained model, not custom to your use case, and fine tuned to work on a majority of cases. As you can imagine, invoice formats vary widely and there will be cases when certain fields are not extracted - or are extracted incorrectly. This is why the Validation Station is a good friend in correcting such possible errors.

Btw, I notice you are using an older version of the Validation Station - it got a major face lift in the latest versions, I recommend you try it out!

---

<div class="post-metadata">

**Author:** ![Prathyu](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prathyu](https://forum.uipath.com/u/Prathyu)\
**Post date:** [January 31, 2020, 5:59am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/16 "2020-01-31T05:59:16Z")

</div>

Thanks for the information 🙂

---

<div class="post-metadata">

**Author:** ![Prathyu](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Prathyu](https://forum.uipath.com/u/Prathyu)\
**Post date:** [January 31, 2020, 6:02am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/17 "2020-01-31T06:02:44Z")

</div>

@Ioana_Gligan,

I also want to know about **bot inspector**.  
Kindly share me any information regarding this  
Like what is the use and when can we use  
Thankyou 🙂

---

<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, 10:22am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/18 "2020-11-08T10:22:46Z")

</div>

“Form Extractor: Your license could not be validated. Please make sure that the API key parameter is correctly configured.”,  
Getting this error though I have community cloud license

---

<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:05am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/19 "2020-11-08T11:05:03Z")

</div>

Hi @devashish1989

Can u try it it again by generating the API key and paste in form extractor property panel

Hope it helps you

Regards

Nived N 🤖

Happy Automation 😌😌😌

---

<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, 11:38am UTC](https://forum.uipath.com/t/error-using-data-extraction-example-code/152718/20 "2020-11-08T11:38:56Z")

</div>

Tried same and it didn’t work

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