Follow in Twitter & Facebook


Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools


Sunday, July 16, 2017

SharePoint online visual studio 2015 workflow Error Cannot cast LValue expression to type Microsoft.Activities.DynamicValue

The below error comes when working with visual studio 2015 workflow for SharePoint online sites. The workflow we were developing for SharePoint online site using visual studio 2015 and we were attaching it to a SharePoint list which was there in the host web.

The error comes as:
Failed to translate expression <variable name> because of the following error:
Cannot cast LValue expression to type 'Microsoft.Activities.DynamicValue'

See pics below for the error message.
Cannot cast LValue expression to type Microsoft.Activities.DynamicValue

Here in this workflow we have used one variable as string type like below:

Sharepoint online workflow Cannot cast LValue expression to type Microsoft.Activities.DynamicValue

We have used this variable in calling in the rest api in HttpSend activitity. The error was coming because in the HttpSend it was expecting a variable of type Microsoft.Activities.DynamicValue<T>.

So to resolve the issue, change the data type of the variable from String to Microsoft.Activities.DynamicValue<T> like below:

visual studio 2015 workflow Cannot cast LValue expression to type Microsoft.Activities.DynamicValue Sharepoint online

This might solve your issue too.




0 on: "SharePoint online visual studio 2015 workflow Error Cannot cast LValue expression to type Microsoft.Activities.DynamicValue"