The given key was not present in the dictionary when using errorinfo.arguments


I have an project that uses a global exception handler. This handler restarts the application when errorinfo.retrycount = 1. However, I am getting the error “The given key was not present in the dictionary.” when I try to access errorinfo.arguments(“user”).tostring so that I can pass this into the restart.

How do I solve this error without the write to file workaround?


Where would this user key+value value come from?
If I force an error (throw) and capture it with a GEH, and put a breakpoint in the error handler I see all my data here:

If “user” is an argument to your workflow, you would be able to find it here:

Right, so there’s a difference between arguments and workflow arguments. I’ll switch to that and see how that works, thanks.

We don’t use global error handling in our REFramework, so I’m not familiar with all of the errorinfo options. But putting in recognisable input in your workflow, forcing an error and checking that debug data sheet in the GEH will help your track and trace most values I suppose.

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