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.
Software Asset Management: Error "Please attach a valid content file." received when using "Import Software Library Content File" - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Software Asset Management: Error "Please attach a valid content file." received when using "Import Software Library Content File"
KB0752175

Software Asset Management: Error "Please attach a valid content file." received when using "Import Software Library Content File"


1126 Views Last updated : Apr 29, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Beginning with the London release of ServiceNow, the feature "Manage Software Library" was added to provide self-hosted instances with the ability to manually upload Software Library data to their instance.

An issue can be observed when following the upload of a Content Library file and clicking the "Run Import" button to initiate the import/upload of Software Library files, that the import does not start and the error, displayed as an InfoMessage banner displays stating "Please attach a valid content file."

Release

Self-hosted/on-premise instances on London and onward releases.

Cause

This is caused by the "Content type" (content_type) field on the uploaded file's associated attachment (sys_attachment) record being set to something other than 'application/zip' (such as 'application/x-zip-compressed').
This may be caused by a change to the file's MIME file type after being downloaded to the customer's environment from our FTP (in our FTP, the MIME file type for Content Library files is set to 'application/zip' as expected).

When "Run Import" is clicked, the script include (sys_script_include) record 'SAMPContentFileManagerUtil' (sys_id: f3226d1c0b90130083d305c137673ab3) performs a check against the sys_attachment record of the file attached to the "Manage Software Library" (samp_manage_software_library) record for 'Import', and if the content_type value for the record is set to anything other than 'application/zip', the import will not run and the mentioned error message will be displayed.

Resolution

  1. Using the filter navigator, navigate to the Attachments table (sys_attachment) by typing in 'sys_attachment.list'
  2. From the list view of the Attachments table, filter for the Content Library you attached and run the filter to locate it.
    • Example: If the file you uploaded was 'Content_Library_June_2019.zip', filter the 'Name' field for this value.
  3. Double-click the "Content type" field for the Content Library file and change it to (without quotes) 'application/zip' and click the green checkbox to save the change.

Provided that there are no additional errors, clicking "Run Import" on the "Manage Software Library" record for 'Import' will now work as expected.

Related Links

Manage Software Library


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.