“Unhandled Exception: Microsoft.Crm.CrmException: Cannot create the given type without the required parameters” while sending email in MS CRM 2011


Yesterday we started getting a strange issue in one of our MS CRM online organization, where we have workflow to send notification in case of customer approval, but suddenly the workflow stopped working and we were getting below error

“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(ActivityInstanceinstance, ActivityExecutor executor, BookmarkManager bookmarkManager)   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutorexecutor, BookmarkManager bookmarkManager, Location resultLocation)”

In order to resolve this issue we have to recreate our workflow and it started working.

Advertisements

3 Comments

Filed under MS CRM 2011, Uncategorized

3 responses to ““Unhandled Exception: Microsoft.Crm.CrmException: Cannot create the given type without the required parameters” while sending email in MS CRM 2011

  1. Hi there

    There is actually a slightly easier workaround for this issue where you don’t need to delete the whole workflow and start again. Check out the following for details:

    http://rule30.wordpress.com/2014/04/10/fix-microsoft-crm-crmexception-cannot-create-the-given-type-without-the-required-parameters/

    Hope this helps someone!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s