Skip to main content
Post a question

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

CRM Dynamic 365 Plugin InvalidPluginExecutionException

Posted on 11 Jan 2021 15:58:48 by 25

Hello All Expert,

How to show plug-ins custom error message without this line "Microsoft Xrm Sdk InvalidPluginExecutionException: " on the pop-up Business Process Error screen.

I need to show my custom error without this line.

7635.Plugin-Error.png

Code Line:-

throw new InvalidPluginExecutionException("Sorry, you cannot update this request because it isn't approved yet.");

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on 13 Jan 2021 at 14:10:35
    RE: CRM Dynamic 365 Plugin InvalidPluginExecutionException

    Hello Mahmoud,

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

  • Mahmoud Fahmy Profile Picture
    Mahmoud Fahmy 25 on 13 Jan 2021 at 08:04:58
    RE: CRM Dynamic 365 Plugin InvalidPluginExecutionException

    Thank you Pravin for your response and your suggestions.

  • Mahmoud Fahmy Profile Picture
    Mahmoud Fahmy 25 on 13 Jan 2021 at 07:59:29
    RE: CRM Dynamic 365 Plugin InvalidPluginExecutionException

    Thank you Andrew for your response.

  • Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on 12 Jan 2021 at 06:25:04
    RE: CRM Dynamic 365 Plugin InvalidPluginExecutionException

    Unfortunately we can't modify this error in ms crm plugin. In case if you want to show customized error you can use custom action to return error and using JS you can show error to the user.

    Please refer below url for more details:

    pravinpawarweb.wordpress.com/.../

    pravinpawarweb.wordpress.com/.../

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on 11 Jan 2021 at 16:24:16
    RE: CRM Dynamic 365 Plugin InvalidPluginExecutionException

    Hello,

    I'm afraid it's not doable. It works the way it works and can't be customized.

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans