Error on an assign activity - Object reference not set to an instance of an object

I’m getting error on my assign…

Assign
LocationName = CType(in_Config(“Location”), Dictionary(Of String, String))

Location Name is a Directory of (String, String)

i do not understand why its giving me error - Assign: Object reference not set to an instance of an object.

Check your in_Config dictionary. It may not be passed correctly as an argument and is therefore null/nothing. If you’re using this in Main.xaml, it should just be Config and not in_Config.

Hi @Latif,

This issue occurs when one of your variables is null. Run your code in debug with the locals panel open, you can see which variables are blank when the code throws an exception