Adding DataTable to Dictionary

Hi, I am having trouble adding multiple data tables to a dictionary (new Dictionary(of string, DataTable). I am able to add the key just fine but the Datatables are coming back empty after using the Dictionary.Add(“key”, datatable) function.

@aschape,

The dictionary type should be Dictionary<String, DataTable> … Have you created the same?

Can I have a screenshot of the variables pane i.e, your dictionary?

Hi @aschape

Try this

Write datatable from a dictionary to Excell

Thanks
Ashwin.S

Thank you for the help! I was just failing to specify the DataTable schema.