If you use CRM workflows to create and send notification emails you may come across this error, usually after just having changed the workflow definition in some way:
Microsoft.Crm.CrmException: Cannot create the given type without the required parameters
The full ungodly error message will be something like:
Plugin Trace: [Microsoft.Crm.Workflow: Microsoft.Crm.Workflow.Activities.EvaluateExpression][EvaluateExpression] Error Message: Unhandled Exception: Microsoft.Crm.CrmException: Cannot create the given type without the required parameters. at Microsoft.Crm.Workflow.Services.ExpressionServiceBase.CreateCrmType(WorkflowPropertyType type, Object values) at Microsoft.Crm.Workflow.Services.ExpressionServiceBase.EvaluateExpression(ExpressionOperator expressionOperator, Object parameters, Type targetType) at Microsoft.Crm.Workflow.Activities.EvaluateExpression.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
When does it happen?
This message has been driving me crazy. Complex workflows that were working perfectly well one minute break after making insignificant changes. At work we have so many workflows sending notifications that even the thought of changing some of them can bring me out in a cold sweat. This is because the only…
View original post 318 more words