Custom Error Message is not displaying for Remote Event Receiver

Lars Kohsel 0 Reputation points
2024-10-14T06:56:00.09+00:00

Custom Error Message is not displaying in Modern UI when a remote event receiver returns a status of SPRemoteEventServiceStatus.CancelWithError and an error message. It works as expected in classic UI.

We use a Remote Event Receiver to determine if a publishing action can complete or should be cancelled.

What we experience is that the modern UI displays a "failed" message instead of the custom error message.

User's image

However, if we switch to classic UI the error message shows as expected.

User's image

It seems like a bug in SP2019. How do we fix this issue?

Our environment is SharePoint server 2019. Build 16.0.10404.20003

This issue resemples the one described in https://learn.microsoft.com/en-us/answers/questions/399885/custom-error-message-is-not-displaying-remote-even

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,626 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.