A SharePoint file is checked out and you cannot check it in
Only the person who checked the file out can save it back, unless a site or library admin steps in. Microsoft says someone with the Override Check Out permission can check in or discard a checkout held by another user.
What are people asking?
One Microsoft Q&A asker wanted to know: "How do i delete a file that has been checked out and not checked back in correctly." The short answer is the same as for any checked-out file: the checkout has to be checked in or discarded first, by the holder or by an admin.
What does a checkout actually do?
Microsoft says checking out a file only changes its condition so that only you can edit it. Other people cannot see your edits or change the file until you check it in. While someone holds the checkout, the Check Out command is not available to anyone else.
For Microsoft 365 apps such as Word or Excel, closing the document saves it. If the library needs column values, fill them in before you check in.
Who can check in or discard for someone else?
Microsoft's support article says a site or library administrator can use the Override Check Out permission to check in or discard a checkout held by another user. It warns that you may then need to reconcile two versions, for example with Spreadsheet Compare or by combining revisions.
The accepted Microsoft Q&A answer to that asker gives the same route: discard the checkout with Override Check Out first, then delete the file. Microsoft's article points to another page, "How to check out, check in, or discard changes to files in a SharePoint library", for click-by-click steps. Use that page, because this guide does not repeat them.
What is lost when you discard?
Microsoft says if you check out a file, save it, and then discard the checkout, your saved changes are not copied back to the library. Anything unsaved is gone too. Ask the person who holds the checkout to check in first if their changes matter.
Why does check-in fail even for the right person?
A second Microsoft Q&A thread, "I can't check in or check out files in SharePoint", points to required columns. If the library or content type has required columns beyond Name, check-in and upload can fail with a list data validation error. The community reply says to fill those fields in on the edit form, or in Library Settings open the content type, then its columns, and set unneeded ones to Optional or Hidden.
That thread did not end with a confirmed fix for the person who asked, so treat the steps as one thing to try.
How do you cut down on stuck checkouts?
Our guide on Excel files locked by another user covers a close cousin of this problem. For files that arrive in a library and trigger a flow, see our page on the folder trigger Microsoft deprecated, since flows that touch a file can leave it checked out when they fail.
Want fewer missed check-ins?
Al Davies creates tools that take busywork and missed steps off a team's plate. A short first call, free and 45 minutes long, can show whether a flow or a library setting is behind your stuck files.
FAQ
Can I override another person's checkout?
Only with the Override Check Out permission, which Microsoft says a site or library admin can use.
Are my changes kept if I discard the checkout?
No. Microsoft says saved changes are not copied back to the library after a discard.
Why can't I check in a file I checked out?
Required columns can block it. Fill them in, or ask a site owner to review the content type columns.
Sources
- Top questions about check out, check in and versions - Microsoft Support
- I can't check in or check out files in SharePoint - Microsoft Q&A
- Deleting checked out files in SharePoint - Microsoft Q&A
Related guides
- Excel File Locked by Another User: Fix It for Good
- When a File Is Created in a Folder (Deprecated): Replacement
- How to open a SharePoint file in the desktop app, not the browser
- SharePoint files duplicated with the computer name at the end
- SharePoint File Size Limit: 250 GB per File, 250 MB in Lists