Getting error "Column 'Attachments' does not exist. It may have been deleted by another" for App Requests list

Yuvraj Patil 361 Reputation points
2022-08-29T11:53:28.87+00:00

I am trying to download/save the attachment for list if attachment is enabled for list and item contains attachments using CSOM. I try to load the item.AttachmentFiles and if any attachment is there then try to save.

However, I came across one site "https://<tenantName>.sharepoint.com/sites/appcatalog" AppRequest list. While trying to load item.AttachmentFiles I am getting error "Column 'Attachments' does not exist. It may have been deleted by another".

Even when trying to add Attach file from Sharepoint online. I am getting blank/empty page, nothing happened on click. and in console getting some error. PFA.
235710-attachfile.png

How can I tackle this situation? Should I change my condition and explicitly skip the "AppRequest list"? or is there any way I can load the attachments?

Please help. Thanks in advance!

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,190 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,412 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,617 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,565 questions
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 30,186 Reputation points Microsoft Vendor
    2022-08-30T02:58:12.063+00:00

    Hi @Yuvraj Patil
    Per my test, I can reproduce your error in my appcatalog.
    235961-image.png
    As far as I know, App Catalog is system created site used to upload and store app package not attachment files. We are unable to attach files to AppRequest list and there is no attachment files too. So you can change the condition and skip the "AppRequest list".
    235953-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



0 additional answers

Sort by: Most helpful