SharePoint - Failed to delete document library file

Ching Song Lim 41 Reputation points
2022-08-25T03:30:30.863+00:00

Problem

Encountered error "Cannot complete this action. Please try again" when trying to delete a file from document library.

Troubleshoot

  • Tried user Administrator/Farm account with highest privileges to delete file, but still encountered the same error.
  • Checked the "Minimal Download Strategy" is not enabled.
  • No useful information from ULS logs and no correlation ID is provided on the error page.

Screenshot

234668-image.png

Microsoft 365 and Office SharePoint Server For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jinwei Li-MSFT 4,736 Reputation points Microsoft External Staff
    2022-08-25T07:20:30.877+00:00

    Hi @Ching Song Lim ,

    I tried bypassing the load balancer by logging into individual WFEs and verified that the above errors were not happening in both scenarios.

    Temporary Fix: Disable the “Minimal Download Strategy” feature from site settings >> Manage site features page.
    234812-image.png

    Permanent fix:
    Compared response headers from SharePoint WFEs and Load balancers using fiddler – Found load balancer response missing the response header “Accept-Encoding” field!


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.