We recently upgraded our environment from CRM 2016, to Dynamics 365. Then we noticed, for some workflows we had exceptions being thrown for various different reasons, and while they used to work, now they are always throwing the very unhelpful, System.AggregateException: One or more errors occurred. I've removed every all other variables and created a custom workflow assembly whose only line of code under the execute method is
throw new Exception("Exception being thrown");
Even just doing that I still get the same AggregateException.
Any thoughts on what's going on?
Some things of note, I use the XrmToolkit to push the code changes. I also tried adding a try catch, and I create an Email with the exception in the catch. This works, but the issue is we want the exception thrown, and if I add a throw exception in the catch it doesn't seem to be getting to it at all....
Totally perplexed with what's going on. Would love any thoughts
*This post is locked for comments