"Requested Attachment Does Not exist" on Service Portal

kevinthury
Tera Guru

We have a Catalog Item that allows a user to download file from the sys_attachment table, complete, and attach back prior to submitting.   The spreadsheet can be downloaded and *seemingly* attached to the record prior to submitting. Immediately after hitting the Submit button, a white screen appears with "Requested Attachment Does Not exist"

Despite this "error", the RITM record does contain the attachment.   While the end result is providing the intended result with the file, the message of "Requested Attachment Does Not Exist" visible to the end user is not acceptable.

Here is link to access spreadsheet:

find_real_file.png

I complete the spreadsheet and save back to my desktop. I then attach to the catalog item before submitting

find_real_file.png

After I click Submit:

find_real_file.png

I found this older discussion at Attachments are missing but it did not provide the details I need.   Any suggestions?

1 ACCEPTED SOLUTION

kevinthury
Tera Guru

I opened a HI case on this and was informed it is a know issue and set to be fixed in a future release (KINGSTON).   As a workaround, we configured the link to open the Excel template in a new tab.   We accomplished this by modifying the Widget to include target="_blank".  



This resulted in a split-second jump to a new browser tab, but it quickly returned to the main one allowing the form to be completed and submitted.


View solution in original post

16 REPLIES 16

Michael Fry1
Kilo Patron

After clicking Submit, are you redirected to the RITM or some place else?


After I click submit, the URL is still the Catalog Item, but I only see what you see in my third image from my original post.


I would try adding a redirect to the ticket that's getting created. You're attaching an attachment to the sys_attachment table, but landed on the catalog item which I'm thinking is causing the message.


I was mistaken when I said the URL after submitting was for the Catalog Item.   It is, in fact, for the RITM record.  




      1. Here is URL when onLoad of form:   https://myemployer.service-now.com/it?id=sc_cat_item&sys_id=b47b43dddb7543c0844bd79b5e961951


      2. Selected 6+ item to have the download link appear


      3. When I clicked the link, the URL changed to:   https://myemployer.service-now.com/sys_attachment.do?sys_id=c9d41e91db86c700844bd79b5e9619b8


              a. That is the sys_id of the attachment


      4. Added the attachment to the catalog item.   URL remained https://myemployer.service-now.com/sys_attachment.do?sys_id=c9d41e91db86c700844bd79b5e9619b8


      5. After I hit submit, the URL then changed to https://myemployer.service-now.com/sys_attachment.do?id=ticket&table=sc_req_item&sys_id=a1cfa609dbda...


                a.   The sys_id of the RITM record that was created is also a1cfa609dbda4340844bd79b5e96190b


   


find_real_file.png




The RITM record looks fine and the attachment is there, but that message of "Requested attachment does not exist" is not acceptable for us.