Dictionary to datatable

I am trying to write the data from a dictionary type:

of string, int32 to an excel and getting the below mentioned error. Could anyone help identifying the issue


find starter help here:
Dict_to_Datatable.xaml (6.7 KB)

It looks like some DataTypes are in confusion.


Make sure that the TypeArgument for your For Each loop is set to KeyValuePair<String, Int32>


1 Like

Oh, I got it. The issue was I was using the type argument as system.collections.generic.dictionary(key,value).

Thanks for the help.

1 Like

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