Hi Team,
I’m using Advance Search with single select in constellation where the Search uses a data page with external API integration. Now I would want to display a custom error message on the same UI where Advance Search is configured whenever there is a 500 error from the API.
We are adding message on the data page and also setting some properties for the error message but PEGA always displays “Data view has messages” on UI irrespective of the message we configure on the data page.
Any suggestions on how to display custom error message instead of “Data view has messages”.
Hi @Ramya Thotakura,Error handling is not handled for API errors in pega 23.
@Ramya ThotakuraWere you able to achieve error handling and display custom error messages?
@Kamil Janeczek seeking for your response here. We also have same situation to handle API failures and display user friendly error messages.
Possible scenarios
-
When API is down, a custom message (Service is down or not reachable, please retry after some time)
-
When API does not find relevant details, a custom message (eg: A customer is not found with given id)
@VinodBavandlawhich version of Pega are you using?
Hi @Kamil Janeczek,
I have tried in Pega Infinity (23.1.0) version
@VinodBavandlaWe were not able to achieve this using OOTB component. We just displayed the error in one of the column in grid results as a work around.
@SreenivasuluV16633502my strong advise is to update to latest version. Custom messages on DX API are supported from Pega 24.2 if I am not mistaken
@Kamil Janeczek We are on 24.2.2. Can you please advise how can we achieve to display user friendly error messages when APIs are down/not reachable.
I have attached a document having detailed configured steps; however, it’s not showing custom error message in UI.
