web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Newline in Invalidpluginexception - C# - plugin

(0) ShareShare
ReportReport
Posted on by

is it possible to output a new line in a plugin exception (InvalidPluginExecutionException)?

I have tried this:

throw new InvalidPluginExecutionException("line1 \n line2");

And this:

 throw new InvalidPluginExecutionException("line1 \r\n line2");

Both options show that exception:

:2313.JPG

Also have tried this:

throw new InvalidPluginExecutionException("line1 
line2");

2656.JPG

Any suggestions?

I have the same question (0)
  • Suggested answer
    Torrado Profile Picture
    1,270 on at
    RE: Newline in Invalidpluginexception - C# - plugin

    Hello,

    I believe that the usage of HTML within the error message text is not supported, please check this official article: docs.microsoft.com/.../use-invalidpluginexecutionexception-plugin-workflow-activities

    Please mark the answer as verified if helpful.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 107 Super User 2025 Season 2

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 89

#3
#ManoVerse Profile Picture

#ManoVerse 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans