user928
(User)
December 28, 2022, 5:18am
1
Hi Everyone, I want to store the output of **Create Document Validation Activity ** output in excel and in Queue item, when i try to do that it is not allowing this data type UiPath.IntelligentOCR.Actions.Models.DocumentValidationActionData
Now i want to read the stored input from Excel or Queue want to pass that data to Wait for Validation Activity to get my output values.
Can anyone guide me how to solve this
Anil_G
(Anil Gorthi)
December 28, 2022, 5:41am
2
@user928
Did you happen to try this
@user928
So …if you want to add each output to the queue after creating validation task use as below
[image]
I am converting the actOut which is the extraction result and that output(String) will be added to queue
And when you retreive again you can convert(String to Required out) like this
CType(Jsonconvert.DeserializeObject(str),Uipath.IntelligentOCR.Actions.Models.DocumentValidationActionData)
This can be passed to wait for resume later
Hope this helps
cheers
Cheers
user928
(User)
December 28, 2022, 6:35am
3
Hi @Anil_G I’m using C# here how to write that code Ctype is not available i used Covert but it have still some issues.
CType(Jsonconvert.DeserializeObject(str),UiPath.IntelligentOCR.Actions.Models.DocumentValidationActionData)
I used – Convert[JsonConvert.DeserializeObject(val),UiPath.IntelligentOCR.Actions.Models.DocumentValidationActionData]
it is showing DocumentValidationActionData is not valid in given context and **Convert ** also showing same not valid
Anil_G
(Anil Gorthi)
December 28, 2022, 7:21am
4
@user928
For C# please use convert like this
(UiPath.IntelligentOCR.Actions.Models.DocumentValidationActionData) Newtonsoft.Json.JsonConvert.DeserializeObject(val)
Hope this helps
cheers
user928
(User)
December 28, 2022, 7:57am
5
Hi @Anil_G I’m getting below error
Anil_G
(Anil Gorthi)
December 28, 2022, 8:46am
6
@user928
Did you pass the serialized string of action output?
Cheers
user928
(User)
December 28, 2022, 11:48am
8
This issue is resolved i will make a sample code and will post here after sometime.
Thanks @Anil_G for the help
1 Like
Hello can you share the sample code, if this was resolved at your end.
Anil_G
(Anil Gorthi)
February 27, 2024, 8:46am
10
@Ankit_Jain3
Above one is the sample code already
if you have any further issue please raise a topic with detailed description
cheers