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.
Attachments are showing as Null when first attached to a record - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Attachments are showing as Null when first attached to a record
KB0760215

Attachments are showing as Null when first attached to a record


2232 Views Last updated : Apr 19, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

When a file is attached to any form, irrespective of the file name, it is showing the attachment name as null within the manage attachment popup as well as on the form(initially).

After reloading the form, attached filename shows up correctly.

Cause

The issue may occur if there is a "gr" variable being used (that is not wrapped in a function) within an ACL on the sys_attachment table or on the affected table (e.g. incident, change etc.).

This conflicts with the attachment code which uses a gr variable as well. 

Resolution

Change the variable name from 'gr' to any nonreserved(not used by the system at the backend) word.

Note: As a best practice, do not use "gr" are your glide record variable. Make a custom variable name that you know will not be in the system or wrap your script in a function and then that gr variable will not impact others. 


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?

Attachments

Attachments

  • Attachments showing as Null.png
  • Attachments showing as Null.png

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.