Getting action object variable (DocumentValidationActionData) using Get Task Data Activity

Hello,

Is it at all possible to get the action object variable (DocumentValidationActionData) using Get Task Data Activity?

When I look at the task data variable from the get task data activity I see this in there: Data=JObject(15)

I assume it must be in there. When I inspect Data=JObject(15) , I see a file named \output_results.zip]

In the zip file it is a json file. I’m wondering if this can be converted into the DocumentValidattionActionData variable that I need. Please note this variable is created when using the “Create Document Validation Action”. It is then an input for “Wait for Document Validation Action And Resume”.

I essentially want to be able to pull this data from old completed actions. We have a trained model now and I want to run the latest version of the model against all completed actions and then compare how the model maps against mappings completed by people.

Let me know!

had you checked DU Rest API as well

yes but unsure how to grab it and convert to the variable type i want

as we get returned JSON we can use it / partly use it for deserialization within corresponding the DataTypes

But can output_results.zip be deserialized for the data type i want? is that actually the data I need?

Lets try to be clear and separate:

  • Get Task Data Activity - Data - different zips
    • We had (maybe wrongly) understood, that you dont want to do extraction, unzipping…

So we mentioned the DU REST API

For RnD purpose have check on expanding: ValidatedExtractionResultPath zip

where is this: For RnD purpose have check on expanding: ValidatedExtractionResultPath zip

Willing to use the DU rest API. Just not sure how to pull the data is all

this we mentioned:

we will use the JSON and deserialize it. Here we can you help as well e.g. woking with you on your sample data

how do i know what the call should be? Like what is the url?

I can also download the zip file. Any method is okay if you show me

just give us some crosscheck time. Thanks

We verified and it was working

  • From Get Task Data Output following information can be retrieved:
    • the used Storage Bucket
    • the path to the zip when checking ValidatedExtractionResultPath

This Zipfile can be downloaded and unzipped - output_results.json

  • Read Text File Activity - Path to the output_results.json - strJson
  • Deserialize JSON - strJson, TypeArgument: ExtractionResult, out: myER
    (we can condensed, when doing it on code level)

And you can further work with eg. feeding the Export Extraction Result Activity and getting back the DataSet


Side check Rest API - getting the extracted fields
Endpoint:
/projects/{projectId}/extractors/{extractorId}/validation/result/{operationId}

grabbing: “validatedExtractionResults” value

same as above we can deserialize the JSON in the needed Datatype and postprocess

Can you send me an example xaml file so i can review?

unfortunately we dont have the complete XAML as we crosschecked in split environments and partly within immediate panel

Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

But first of all: your case is similar to below, which was solved as well

Also we will guide you. Start with:

grafik
myExtractZip =
myTO.GetDataJsonObject("ValidatedExtractionResultsPath").toString

for unzipping have a look here:

Assign Activity:
strJSON = File.ReadAllText(PathToTheExtractionZiP)

grafik

Newtonsoft.Json.JsonConvert.DeserializeObject(Of ExtractionResult)(strJSON)

thanks for this i will give it a try!

Also, when using the activity Create Document Validation Action, the action object (output) of variable type DocumentValidationActionData is given to us.

Is there a way to pull this variable? The one you gave me pulls the extractionresult variable.

Let me know!

From

we would assume that the returned Object is not reflecting the already user end processed result (Create, will make a new one)

But we refered also to

where it sounds that you are interessted on results from the past.

We recommend to follow up one idea and implement it till end (at least for training purpose)… Afterwards you can still explore alternates, as we mentioned e.g. REST API.

As this thread also increase as by ping-pong communication, so lets focus on the finalization as it is doable at least within one approach

Hey so I am trying the download storage file and I get this error:

Download Storage File: Access to the path 'C:' is denied.

I put C: as the destination. Not sure why its not working. I always set downs to this folder and it always works with UiPath

show screenshot from the details. thanks