cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

 

 

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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Users online (8,701)