Quantcast
Channel: Workflow Manager 1.0 forum
Viewing all articles
Browse latest Browse all 897

Using string.Replace with speical characters

$
0
0

Hello,

I try to replace "\r" or "\n" from my exception message string and write it to the workflow history.

Whenever I try to replace these characters, the workflow get suspended. 

My sample exception is sth like: "System.DivideByZeroException: Attempted to divide by zero.\r\n at SharePoint..."

string.Replace works fine for any letter or number, but not with speical characters. Replacing special characters breaks my workflow.

Anybody knows why / has a solution for this?

Thank you.


Viewing all articles
Browse latest Browse all 897

Trending Articles