Good news: the invalid data error is easy to solve. You may come across this error when you log to history list in a workflow. We came across it when logging the dictionary variable value returned from a HTTP Web Service. The typical error message is: “A text field contains invalid data. Please check the value and try again.”
Details:
A text field may contain invalid data that comes while working with visual studio workflow in SharePoint Online. A “HttpSend” workflow action is used to call the rest API. By using Get Dynamic Value Properties, you can retrieve the values and assign them to different variables, as seen below:
Solution:
To solve this issue simply either reduce the size of the log text to below 255 characters or change the attribute of the “Description” column to “Multi line of text”.
Interested in more Tech Support articles? Check out these: