Unable to change “Save action failed” error message while creating report – sys_ui_message not work

tmallipudi
Kilo Contributor

Hi Team,

I am facing an issue while creating a report in ServiceNow. When I try to save the report, I receive the following generic error message: save action failed 

  • Navigating to Reports → Create New Report
  • Filling the required details (Report Title, Table: Incident)
  • Clicking on Save
  • System throws a red banner error: "Save action failed"
    1. Business Rule approach

      • Attempted to use gs.addErrorMessage() and setAbortAction(true)
      • Not working, as the error seems to occur before/after BR execution
    2. sys_ui_message approach

      • Tried to locate and override the message in:
        System UI → Messages (sys_ui_message)
      • Searched for keys like:
        • save action failed
        • save_action_failed
        • action_save_failed
      • Also tried creating a new message with similar keys
      • Result: No change in the UI message
        • Is the "Save action failed" message coming from a system-level handler instead of sys_ui_message?
        • How can we override or customize this error message in Report creation?
        • Is there any client script / UI script / widget involved for this message?
        • Has anyone successfully changed this message using sys_ui_message or another method?
          outcome: 
          • Replace "Save action failed" with a custom message or Show a more meaningful validation error to users

            Any guidance or pointers would be really helpful.

            Thanks in advance!

2 REPLIES 2

GlideFather
Tera Patron

ahoy @tmallipudi,

 

The message "Save action failed" looks like a custom error the wording and lowercase isn't typical for OOTB messages and I don't have it in my PDI either.. That makes it hard to tell what is the cause of that

 

What you can try is to install the SN Utils browser extension and run the slash command /code. It searches for all scripts in your environment, so using "save action failed" as a keyword may help you locate where that message is coming from.

 

GlideFather_0-1779867220191.png

 

 

_____
On a break from this Community, too much collusion and self-boosting to handle... RIP

Tanushree Maiti
Tera Patron

Hi @tmallipudi 

 

Check this KB: KB0959405 Unable to 'Save' Report 

 

Cause

The issue is due to missing records in the sys_report_users_groups table. Whenever a report is created/shared, it will create a corresponding record in sys_report_users_groups. This table contains information on who can access the report (including who created the report and to whom the report is shared to).

Note: Investigate the reason why the records in sys_report_users_groups were deleted.

 

Resolution

The solution is to Save a copy of the report by clicking Insert & Stay. This will generate a new record in sys_report_users_groups, allowing user to Save the report.

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti