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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s