The ExpressionTranslationBuildTask task failed unexpectedly SharePoint Visual Studio Workflow Error

This SharePoint workflow tutorial, we will discuss how to fix an error The ExpressionTranslationBuildTask task failed unexpectedly which comes while developing a workflow using visual studio 2015 for SharePoint online sites.

In one of our requirement, we have developed a workflow using visual studio 2015 for SharePoint Online. Here we were trying to send email using Email workflow activity.

In that activity, we have declared a variable and we were trying to assign it into the To field of the email. But it gave us error like:

The “ExpressionTranslationBuildTask” task failed unexpectedly….

The ExpressionTranslationBuildTask task failed unexpectedly

The ExpressionTranslationBuildTask task failed unexpectedly

The solution to resolve the issue was to change the data type of the variable from String to Collection<T> type.

We have declared the variable like below:

The ExpressionTranslationBuildTask task failed unexpectedly sharepoint

To change the variable type, click on the variable type and then select Browse for Types… like below:

The ExpressionTranslationBuildTask task failed unexpectedly visual studio workflow

And then choose the System.Collections.ObjectModelCollection<T> type like below:

The ExpressionTranslationBuildTask task failed unexpectedly sharepoint visual studio workflow

Now the error will not come.

You may like following visual studio workflow tutorials:

This tutorial helps to fix error The ExpressionTranslationBuildTask task failed unexpectedly which comes while developing visual studio workflow.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bhawana Rathore

Hello Everyone!! I am Bhawana a SharePoint MVP and having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

>