Monday 4 November 2019

Show Plugin Error Message on Dynamics Portals - Site/EnableCustomPluginError Setting

Hi Everyone,

Today I was working something on Portal and we do have some validation at the plugin and throwing an InvalidPluginException based on some business logic. However on the Portal, we were not seeing the same message. It was saying something as "An unknown failure has occureed. Error ID ...".


After some quick search, was able to figure it out that there is a Site Setting which needs to be created to get the same messages from plugin to be shown on the Portal UI.

Navigate to Portal -> Site Settings and create a new record as below.

Name - Site/EnableCustomPluginError
Website - Whatever you have like Partner Portal, Customer Self-Service etc..
Value - true
Try to do the operation which triggers the plugin that throws the error and you will see the same on Portal UI.
Hope this helps.

--
Happy 365'ing
Gopinath

3 comments:

  1. Hello, an amazing Information dude. Thanks for sharing this nice information with us. Pallet Transport from Sydney to Perth

    ReplyDelete
  2. This is what exactly I was looking for, thanks much

    ReplyDelete
  3. any idea on how to clear the message the second time I click Submit?

    ReplyDelete