Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
gs.addErrorMessage() in Business Rules on the [sys_attachment] table does not work correctly when uploading attachments with the 'Choose file' button - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • gs.addErrorMessage() in Business Rules on the [sys_attachment] table does not work correctly when uploading attachments with the 'Choose file' button
KB0714677

gs.addErrorMessage() in Business Rules on the [sys_attachment] table does not work correctly when uploading attachments with the 'Choose file' button


4970 Views Last updated : Jul 12, 2023 public Copy Permalink
KB Summary by Now Assist

Description

The 'gs.addErrorMessage()' function in Business Rules on the 'sys_attachment' table does not work correctly when uploading attachments with the 'Choose file' button.

 

Steps to Reproduce

1. Log in as administrator.
2. Import the attached XML file 'sys_script_44ab381bdb3ca7008d92e5951b9619c6.xml' which shows an error message on the form while uploading attachments.
3. Navigate to 'incident.list'.
4. Open an incident Record.
5. Click the 'Manage Attachments' button on the form header.
6. Drag an attachment and drop it on the pop-up attachments window.
7. The attachment is uploaded and the error message is showing on the form.
8. Close the error message.
9. Click on the 'Choose Files' button on the pop-up window.
10. Select a file on the file selection window and click 'open' to upload.
11. Observe the attachment gets uploaded successfully, but the expected error message is not showing on the form.
12. Optionally check the system logs and verify the Business Rule was executed.

Workaround

This is expected behaviour. Session messages are not shown unless the page gets refreshed, which in this case does not happen.

 

Related Problem: PRB1309675

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.