Software Asset Management: Error "Please attach a valid content file." received when using "Import Software Library Content File"Issue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> 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." ReleaseSelf-hosted/on-premise instances on London and onward releases.CauseThis 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.ResolutionUsing the filter navigator, navigate to the Attachments table (sys_attachment) by typing in 'sys_attachment.list'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. 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 LinksManage Software Library