cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AInglis
Advocate III
Advocate III

Error 'An unknown failure has occurred.' on Entity Form when no matching record associated to Current Portal User

I have a Read Only Entity Form linked using the Record Source Type - Record Associated to Current Portal User.

 

The Entity Form displays correctly when there is Data for the Portal Contact in my custom Entity, however when there is no matching record the error "An Unknown failure has occurred. Error ID # [[f5425d2f-9fae-44a0-8910-74b7d293c43d] is displayed.

 

Is there a way to set this to display a 'No Data for your Login' message. 'The Record Not Found Me...' setting has a message entered

 

 

Contact without data on Package Entity

Entity form Error.JPG

 

Contact with data on Package Entity

Entity form No Error.JPG

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
AInglis
Advocate III
Advocate III

This answer on this post may lead to a solution.

 

I have not implemented the conditional Web Template as yet, as the production version of my portal should not have an instance where there is no matching record.

 

https://community.dynamics.com/365/customerservice/f/dynamics-365-for-customer-service-forum/306014/...

View solution in original post

4 REPLIES 4
v-siky-msft
Community Support
Community Support

Hi @AInglis ,

 

Please check this blog, we can show the plug-in error in following portal screens by adding “Site/EnableCustomPluginError” entry in Dynamics CE Portals -> Site Settings.

https://rajeevpentyala.com/2019/03/01/dynamics-portals-display-plug-in-error-messages/ 

Hope this helps.

Sik

 

 

 

Thanks Sik,

 

Adding this setting has changed the message displayed as below. This is a clearer error, however it would still lead to queries from the end user. Is there a way to display a custom error message or have the message in the 'The Record Not Found Me...' option displayed?

 

Thanks

Andrew

Entity form Error1.JPG

 

Hi @AInglis 

 

Please check the first step from the blog.

Snipaste_2020-03-04_09-21-18.png

You should first create and register a plugin with logic so that you can handle exceptions to show the custom error message. It requires the special skills of a developer. Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/handle-exceptions 

Sik

 

 

AInglis
Advocate III
Advocate III

This answer on this post may lead to a solution.

 

I have not implemented the conditional Web Template as yet, as the production version of my portal should not have an instance where there is no matching record.

 

https://community.dynamics.com/365/customerservice/f/dynamics-365-for-customer-service-forum/306014/...

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Users online (43,802)