r/copilotstudio • u/Bfinkeldei • 8d ago
Copilot Studio: SharePoint knowledge file shows "Error" with no details? Check if it's published
I was adding knowledge to an agent in Copilot Studio (standard harness) using Add knowledge › Upload file › SharePoint, picking individual files from a document library. Some files went in fine. Others spun for a while, timed out, and then just showed Error in the Knowledge list. No message, no details, nothing to click for more info.
The SharePoint connection was fine, and other files pulled the same way showed Ready.
What I found
I captured a browser network log during the upload. The status check returned SharepointDocsNotPublished (error code 102405).
The library was set to Create major and minor (draft) versions, so the failing files were only drafts (0.1, 1.2, etc.) and had never been published.
The Fix
In the SharePoint specific file and publish that file.. go to … › More › Publish
Delete and re-add the file in Copilot Studio. When I did the file went to Ready.
Optional: if the library is mainly a Copilot source, change Library settings › Versioning settings to Create major versions only so you don't hit this again.
Why this matters
Files added this way stay synced with SharePoint (Microsoft says roughly every 4–6 hours). Files uploaded from your PC never update. Based on the error, it looks like the sync only reads published versions. So if your library uses drafts, edits saved as drafts probably won't reach the agent until you publish them.
Hope this saves someone some time, since the UI gives you nothing to go on.