Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Can I change the text "Business Process Error" in a Plugin Error?

Posted on by 1,258

I would like to change the "Business Process Error" message to something meaningful. 

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I change the text "Business Process Error" in a Plugin Error?

    You cannot change the Business Process Error header in the title of the Plugin Error, however, the error that is being displayed can be controlled. The reason you are getting the error is due to an exception in your plugin.

    I hope this Helps!

    Lewis

  • Suggested answer
    RE: Can I change the text "Business Process Error" in a Plugin Error?

    Hello,

    You can append you custom message along with this .. but can not remove this.

    Regards

    Ambar

  • Suggested answer
    arif imteyaz Profile Picture
    arif imteyaz 375 on at
    RE: Can I change the text "Business Process Error" in a Plugin Error?

    No you can not change.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Can I change the text "Business Process Error" in a Plugin Error?

    Hi partner,

    Unfortunately we could not custom the lable of error meesage caused by plug-in/processes.

    But we could custom the error details below the "Business Process Error".

    pastedimage1572336320434v1.png

    pastedimage1572336336063v2.png

    Use "try```catch```" format in your  code and add the custom message in "InvalidPluginExecutionException" function.

    Hope it helps.

    Best Regards,

    Leo

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Can I change the text "Business Process Error" in a Plugin Error?

    Hi Marjorie,

    You cannot change the Business Process Error header in the title of the Plugin Error, however, the error that is being displayed can be controlled.

    The reason you are getting the error is due to an exception in your plugin. If you capture the error in your plugin (using a try catch block or checking custom logic), you can throw you own exception back from the plugin:

    throw new InvalidPluginExecutionException("My custom error message will come here");

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans