How to continue the process without exception even if Key not present in dictionary

I need to update a status column as “Value not found” if the key is not found in the dictionary.

Since I’m getting “The given key was not present in the dictionary” exception I can’t able to perform the process as requirement.

Is there any way how to proceed on this even if the exception occurs?

Hi @priyanka_raja

Use a try catch around it and it will catch the exception or use continue on error property

Cheers

you can check defensive e.g. within an IF Activity with YourDictionaryVar.ContainsKey(YourKey)

This will be best solution.

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