Add a new item into a dictinary<String,Int32> with "Invoke Method" has failed

I am encountering a strange problem, can’t use the “Invoke Method” activities to add a new item into a initialized dictionary<String,Int32>.
The error info is:‘Dictionary`2’ does not have a public instance method named ‘Add’ matching the parameter types, generic type arguments, and generic type constraints supplied to InvokeMethod ‘Invoke Method’.
Please help me,THANKS! :sweat_smile:


Can you check settings of Parameters as the following?


1 Like

Hello, well there is another way to add a element to a Dictionary

You can Use this activit is easier

1 Like

LOVE! Thank you very much master!

1 Like

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