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.
Users With user_name Over 40 Characters Cannot Download Exported Excel Files - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Users With user_name Over 40 Characters Cannot Download Exported Excel Files
KB0678177

Users With user_name Over 40 Characters Cannot Download Exported Excel Files


1995 Views Last updated : Mar 23, 2023 public Copy Permalink
KB Summary by Now Assist

Description

When users have a user_name longer than 40 characters they cannot download lists exported to Excel. When attempting to download, they are taken to a blank sys_attachment page.

Error message:

Security restricted: Unable to read attachment sys_poll.45d8b8cf2b4202006c59ae6219da15d4 

You will identify the problem because:

  • The user_name's (on sys_created_by column) is truncated on the sys_poll table when over 40 characters
  • This is due to the size of the column in the database is VARCHAR(40)
  • Increasing the size of the username field is not recommended. If increasing the size, the affected users will remain affected as missing characters will not re-populate on the related tables.
  • The report downloads are blocked by a sys_poll table level read ACL

Steps to Reproduce

With a user with an username longer than 40 characters, attempt to export to Excel from a list view using the UI

Workaround

Please note this is working as expected. There are no plans to modify the current restriction on the username length. The solution is to manually change the username to a value of 40 characters or less.

Alternatively, (not recommended) you can modify the read ACL for sys_poll:

Change the script from:

answer = (current.sys_created_by == gs.getUserName());

To:

answer = (current.sys_created_by == gs.getUserName().substring(0,40));

 


Related Problem: PRB645055

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.