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.
Automated Test Framework "Add Attachment" steps fail when "No attachment" table attribute is set to false - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Automated Test Framework "Add Attachment" steps fail when "No attachment" table attribute is set to false
KB0832273

Automated Test Framework "Add Attachment" steps fail when "No attachment" table attribute is set to false


6157 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Automated Test Framework "Add Attachments to Form" and "Add Attachments to Existing Record" steps will fail if they are used to try to attach something to a table with the "No attachment" attribute explicitly set to "false."

This would be expected behavior when the attribute is set to "true", but when set to "false" the platform UI would allow adding attachments, and ATF is expected to be consistent with the platform.

Steps to Reproduce

This can be reproduced on any table that supports the "no_attachment" attribute, incident is used as an example

Prerequisite: Add "no_attachment" attribute to incident with value "false"
1) Navigate to System Defintion > Dictionary module
2) Find the "incident" collection (Table="incidnet" and Type="collection") and open it
3) Navigate to "Attributes" related list and click "New"
4) For attribute put "No attachment" and for value put "false" then click "Submit"

1) Navigate to Automated Test Framework > Tests module
2) Click "New", input any name and click "Save"
3) Click "Add Test Step", navigate to "Form", select "Open a New Form", and click "Next"
4) Set Form UI to "Standard UI" and Table to "Incident" then click "Submit"
5) Click "Add Test Step", navigate to "Form", select "Add Attachments to Form", and click "Next"
6) On the step form select "Upload attachments", then choose any file to upload (doesn't matter what)
7) Close the attachment pop-up and click "Submit"
8) Click "Run Test", pick any browser or open a new one and click "Run Test" on the pop-up
Expected: Test should succeed because no_attachment attribute is false
Observed: Test fails with output that looks something like this:
User does not have permission to attach to record '64d9d03773351010fe5311d8faf6a7cd' on table 'incident'

Workaround

It is possible to workaround this issue by removing the "No attachment" attribute from the table in question.

However, it is not recommended to remove attributes that were added to a table by default.

For more information see https://docs.servicenow.com/csh?topicname=c_DictionaryAttributes.html 


Related Problem: PRB1414126

Potentially Seen In

There is no data to report.

Fixed In

Orlando Patch 10
Paris Patch 4
Quebec

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.