SharePoint online visual studio workflow issue The ExpressionTranslationBuildTask task failed unexpectedly

The ExpressionTranslationBuildTask task failed

In this post we will discuss how we can resolve the below issue which comes while developing workflow using visual studio 2015 for SharePoint online sites. In one of our requirement we have developed a workflow using visual studio 2015. Here we were trying to send email using Email workflow activitity.

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

SharePoint deveopment training course

The “ExpressionTranslationBuildTask” task failed unexpectedly….

SharePoint online visual studio workflow
SharePoint online visual studio workflow

Solution:
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:

SharePoint online visual studio workflow The ExpressionTranslationBuildTask task failed
SharePoint online visual studio workflow The ExpressionTranslationBuildTask task failed

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

 SharePoint online visual studio workflow issue The ExpressionTranslationBuildTask task failed unexpectedly
SharePoint online visual studio workflow issue The ExpressionTranslationBuildTask task failed unexpectedly

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

The ExpressionTranslationBuildTask task failed
The ExpressionTranslationBuildTask task failed

Read some sharepoint online tutorials:

Now the error will not come. Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

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

envelope
envelope

About 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"

View all posts by Bhawana Rathore →