I tried to write the validated extraction result in Excel, but when I tried to use the ‘Export Extraction Result’ activity, the variable type wasn’t matched. What activity am I supposed to use to get the validated extraction result and write it in Excel?
HI,
First, according to the foloowing official document, UiPath.DocumentUnderstanding activities package and UiPath.IntteligentOCR activities package should not be used together.
So, we cannot use ExportExtractionResult activity for output from activities in DocumentUnderstanding activites pack.
Can you try to get data using property and/or method from IDocumentData class instance.
The following document will also help you.
Regards,
Thanks for the answer sir
When I look at the activities of the UiPath.DocumentUnderstanding package, I think there is no activity that can be used to get the validated extraction result
I am a beginner, can you please elaborate on how to use the property and/or method from the IDocumentData class instance to get data?
Thanks
Hi @Nafissa_Al_Abida
You can directly write the data we in text file please find below screenshot and if you want to write into excel then you can convert to data table using generate datatable activity
Thanks for all the answers, I finally can solve the problem. I use the ‘Generate Data Table From Text’ activity to write the validated extraction result in Excel
HI,
FYI, it seems we may be able to get datatable directly.
Can you try the following expression?
varDataSet = ValidatedExtractionResult.Properties.ExtractionResult.AsDataSet(False)
Then
varDataTable = varDataSet(0)
etc.
Sorry, I have not yet tried this because I am a little confused.
So I need to store ValidatedExtractionResult.Properties.ExtractionResult.AsDataSet(False)
as a variable named varDataSet
?
Thanks
Yes this will give results in dataset and later in write range you can pass dataset.tables(0) as datatable
If I have multiple documents when validating, do I need to add looping when writing the validated extraction results to Excel?
It depends if you want in single excel to write if columns are fixed you can use merge data table then outside of for each you can take write range workbook in my case there is only one document type so i have used merge datatable for each document
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.