Conversation
Infosys
CA
Last activity: 4 Dec 2025 15:56 EST
How to display custom message on Advance Search UI
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".
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Infosys
CA
@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.
ASB
NZ
@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)
Pegasystems Inc.
PL
@VinodBavandlawhich version of Pega are you using?
Wellsfargo
IN
Hi @Kamil Janeczek,
I have tried in Pega Infinity (23.1.0) version
Pegasystems Inc.
PL
@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
ASB
NZ
@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.