Add to dictionary: The Dictionary has not been initialized

I have initialized it with strings while add the Add Dictionary activity. But still while running its showing me error.
Can anybody help.

Hi @Yashaswi_R,

In variable panel, please provide default value as below:
New Dictionary(Of object, object)

NewDict.xaml (4.7 KB)

Thanks!

2 Likes

I changed it to Object,Object but still not working.

Initialize the dictionary within variables panel on default value with:
New Dictionary(Of String, Object)
Ensure that the variable scope is on sufficient level

2 Likes

I have put the a excel application scope then read range->for earch row of read range->Add to dictionary.

Not working.

share details (e.g. screenshots on edited implementation) with us. thanks


This is the outline, I am finding error in add to dictionary.

please show us the variable panel when:

  • reply_particular sequence is activated
  • Body sequence containing the add to dictionary is activated

screenshot of the the property panel from add to dicitionary
share withus the latest error message

Also ensure that the datataype of dictionaty is Dictionary and not IDictionary:
grafik


I am adding Dictionary like this

we do see following:

  • MasterDictionary existing on reply_particular scope and sequence scope
    → ensure that MasterDictionary is defined only one time on right scope
  • MasterDictionary was not initialized as mentioned above
    → new Dictionary(Of String, Object)
  • Dictionary Datatype to change as mentioned above
    → Set Datatype to Dictionary (Of String, Object)

Changing the Datatype to Dictionary (Of String, Object) did not work. Same error message occurred.