Invalid text value. A text field contains invalid data error in visual studio 2015 workflow in SharePoint Online

This SharePoint tutorial, we will discuss how to solve an error Invalid text value. A text field contains invalid data that comes while working with visual studio workflow in SharePoint Online.

Recently while working with a visual studio 2015 workflow for SharePoint online I got the below error. The error comes as:

Suspend this workflow. Activity in progress.
Retrying the last request. Next attempt scheduled in less than one minute. Details of last request: HTTP InternalServerError to HTTP:URL…

Invalid text value.

A text field contains invalid data. Please check the value and try again.

We have developed as a SharePoint hosted add-in for SharePoint online site. In that workflow, I am trying to retrieve the value from multiple lines of textbox through rest API by using httpsend in SharePoint online.

The error looks like below:

Invalid text value. A text field contains invalid data

In the workflow add-in, we have used HttpSend workflow action to call the rest API. And by using GetDynamicValueProperties I am trying to retrieve the values and assigning to different variables. It looks like below:

Invalid text value. A text field contains invalid data

Here in the above Template_x0020_HTML is a multiline rich textbox field. The error is coming while retrieving this value.

A text field contains invalid data. Please check the value and try again

The issue usually comes when we are trying to deal with data having more than 255 characters. If the data is less than 255 characters then the error usually does not appear.

If anyone has any solution for this, how to retrieve more than 255 characters kindly share the details.

You may like following visual studio workflow tutorials:

This SharePoint tutorial helps us to learn how to solve error Invalid text value. A text field contains invalid data.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SPGuides.com

>