I try to extract the retrieved data from the variable: UiPath.Intelligent OCR.StudioWeb.Activities.DataExtraction.DocumentData<UiPath.Intelligent OCR.StudioWeb.Activities.DataExtraction.DictionaryData>
It is an IDocumentData variable and i would like to get the results in a datatable or something to work with.
I get the values from the extract Document data step.
In the cross platform activities you are using it should actually generate a specific document type, based on the extractor that you use, which means you dont need to mess around with that dictionary thing, each field will get a specific property.
Can you share some screenshots and we can guide you abit more.
Ok nice. Toggle that ‘Generate Data Type’ to on.
Then recreate the variables for the Document Data output variable again using ctrl+k so it grabs the new data type that was made.
Once you get that data type you’ll have a property on the out_DocumentData called .Data
and on that property you’ll be able to see your fields of Clientgegevens, Clientnaam etc and be able to work with each.
When i use the docdata.data in the watch panel, it looks like my dictionary is empty: DictionaryData { }
so i get an error when i try to get a specific value.
when i look at my docdata variable as a whole in the watchpanel i see this:
[
Clientgegevens Table data:
Clientnaam
J Wagensveld
Documenttype Table data:
Documenttype
Algemeen – test
]
any suggestions?
Did you follow my instructions to toggle that option on, and then remake the variable? It appears you did not, and as such you still have the data dictionary.
I actually did. I removed the whole variable, toggled the generate data type on and remade the variable with cntrl + K but it keeps coming up as the same variable..