stevenvd
(stevenvd)
March 4, 2019, 4:17pm
1
Hello
Browsing through the forums I encountered this error a fair few times, but none of the solutions seem to work in case of merging Data.Tables.
[image]
Hi everyone!!
I ask you, kindly, a hand for a problem I have encountered but which I can not understand.
As you can see from the image, I’m trying to add a value of type String.String to a list value inside a dictionary. But UiPath gives me an error with the following words: The expression does not produce a value.
I can not understand why you give me such an exception, neither how to solve this exception.
If someone can help me, I kindly ask you to come forward
Thanks in advance…
Below is the code
ds.tables(“kitti”).rows.tostring — Output —> System.Data.DataRowCollection
and ds.tables(0).tablename.tostring() – Output —> Kitti (unless you are creating anaother DataTable with name TableName before Kitti)
[image]
When I try to use the ‘Invoke Method’ activity I get the following error:
“‘DataTable’ does not have a public instance method named ‘Merge’ matching the parameter types, generic type arguments, and generic type constraints supplied to InvokeMethod ‘Invoke Method’.”
This is what it looks like in UiPath
Thanks for your time.
Have you considered using the “Merge Data Table” activity?
1 Like
Also, I think you are getting that error because your Parameters are wrong. You should have one datatable as an In argument of type DataTable.
1 Like
stevenvd
(stevenvd)
March 5, 2019, 2:05pm
4
Thanks for your reply!
I forgot to input the parameters indeed.
The parameters should look like this:
Where the value (ExtractDataTable ) is the DataTable that will be added.
And the TargetObject (FinalTable ) is the DataTable that will be updated.
I’ll try out the ‘Merge Data Table’ activity as well.
1 Like
system
(system)
Closed
March 8, 2019, 2:05pm
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.