Hi,
I am trying to extract data field from modern DU to UiPath using extract document data activity.
In extraction I can see the data field buyer is extracted but cannot assign it to variable in UiPath.
can anyone help me on this please!
Hi,
I am trying to extract data field from modern DU to UiPath using extract document data activity.
In extraction I can see the data field buyer is extracted but cannot assign it to variable in UiPath.
can anyone help me on this please!
In dev environment there is no issue with this
Check project Version/Tag matches deployed model where Buyer field exists. Dev works because it uses correct version
Use ExtractedDocumentData("Buyer").ToString in Assign activity
I tried this way but not working, as the indexing cannot be accepted.
Set your string variable with ExtractedDocumentData.Data.GetField("Buyer").Values(0).Value.ToString
In Extract Document Data properties, ensure Generate Data Type is True for typed access or False for DictionaryData methods. Mismatch causes errors
Generate data type is enabled.
‘GetField’ doesn’t reflected during search
ok so In the Variables panel, check the exact type and name of the output (e.g. ExtractedInvoicesV6)
Type a dot after it in Assign : If you see a property like Buyer, use:
BuyerVar = ExtractedInvoicesV6.Buyer.ToString
If the field is under Fields, use something like:
BuyerVar = ExtractedInvoicesV6.Fields.Buyer.Value.ToString
the compiler error in your screenshot (“Buyer” is not a member of ExtractedInvoicesV6) means the generated type for that version/document type does not contain a property named Buyer (maybe different name or not published in that version), even though Buyer exists in another environment.
So open the DU project used in this environment and confirm the field’s exact name, re‑publish, then update the activity’s version so the generated class contains that property
That’s the problem arjun.
after the dot buyer is not reflected.
FYI… in the first image of this thread buyer is extracted but for some reason its not coming in assign
Welcome to the UiPath community!
You can try to use below steps:
Remove the field and publish taxonomy and add field again retain extractor and test for couple of documents if this works you can try to check ![]()
Republish DU project with Buyer field → select new Version in Extract activity.
Buyer extracts (UI shows it) but generated class property missing → needs republish to regenerate type.
Workaround (immediate): Disable “Generate data type” → Assign ExtractedDocumentData.Data.GetFieldValue("Buyer", 0).Value.ToString
Thanks Vinod and Arjun for your efforts.
Here the issue is while publishing the DU project I missed to remove the existing project and replace it with new project.
Issue resolved.
Thanks again!
Happy automating!