Error when modifying the Extraction Result before sending it to validation station

Hi ,

My requirement is , I have to empty the field value from the extraction result after data extraction scope based on few conditions like comparing with field from other source and if not match, i need to empty the field value and then update in extraction result and send to validation station.

This is the error.

I am assigning the empty string in assign as below:

io_ExtractionResults.ResultsDocument.Fields(7).Values(0).Value=“”

Thanks.

@Nikhil_V ,

Please try this.

io_ExtractionResults.ResultsDocument.Fields(7).SetValue(new ResultsValue("Yes",nothing,1,1))

Refer this post for more details.
Present Validation Station: The value must either contain a textual value or have components, not both - Help / Document Understanding - UiPath Community Forum

Thanks,
Ashok :slight_smile:

Hi @ashokkarale ,

Thanks for the suggestion.

But I am facing this error when using it

image

Please use Invoke Code activity to run this line of code.
Pass io_ExtractionResults as In/Out argument to Invoke code.

Hi @ashokkarale ,

That code is working but facing other error.

So, Basically I want to highlight the fields which are having less confidence so that user can only validate those fields instead of checking all fields.

I got to know about Rules column in Taxonomy Manager where we can display fields like “Fields To Validate”.

But I think there is no option yet to highlight based on confidence. For empty fields I am able to highlight it. So, for few fields with less confidence I thought to empty the value so that it will highlight.

To empty the field value, I am using this in the invoke code .

io_ExtractionResults.ResultsDocument.Fields(7).SetValue(new ResultsValue(" ",nothing,1,1))

Here, It is not throwing any error but issue in Action Center. For empty , it should highlight field but it is not .

Please let me know there is any solution for this.

Thank you!!

Found a solution by connecting with UiPath Technical Team.

io_ExtractionResults.ResultsDocument.Fields(7).SetValue(new ResultsValue(" ",nothing,0,0))

Here, last two variables 0,0 used for Confidence and OCR Confidence and we need to use the filter in the action center.

Regards,
Nikhil.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.