Forum Discussion

CopilotDeveloper76438372's avatar
CopilotDeveloper76438372
Occasional Reader
Dec 01, 2026

Agent can't read text-based PDFs retrieved from a SharePoint URL

Hi everyone,

 

We built a Copilot Studio agent (generative orchestration, with agent skills) that reads public tender documents and fills in a structured summary. The tender documents are text-based PDFs (selectable text, not scans), stored in SharePoint Online.

 

Setup

- SharePoint connector actions added directly as agent tools: List folder, Get file content and Get file content using path

- Authentication: end-user credentials (Invoker)

- Users give the agent the URL of the SharePoint folder or file that holds the tender documents

- Built with the Github Copilot Harness, not the classic topic-based authoring

 

What happens

- List folder works: the agent finds all the files in the folder.

- Get file content / Get file content using path runs without errors and returns the file.

- But the agent then can't read the text. It says it can't read the document, so it can't extract any information from it.

- It happens with every PDF we tried, small ones (a few pages) included. File size and complexity aren't the issue.

- In this experience the Activity map doesn't trace these tool calls, so we can't see what Get file content actually returns to the orchestrator. Everything above is inferred from the agent's behavior and replies (it finds the files, retrieves them, then says it can't read their content), not from the raw tool output.

 

Minimal comparison

- Same text-based PDF, uploaded as a chat attachment (including through the "+" → SharePoint picker): read correctly.

- Same PDF, retrieved by the agent from its SharePoint URL through the connector: not readable.

 

So the PDF itself is fine and the platform can extract its text. We think the connector returns the file as binary content (a File output), and this output doesn't go through the text extraction that applies to chat attachments and knowledge sources. The orchestrator only receives binary data, with no usable text.

 

What we ruled out / why the usual workarounds don't fit

- Permissions, paths, authentication: List folder and Get file content both succeed.

- Scanned PDFs: all the test files have selectable text.

- SharePoint as a Knowledge source: every tender is in a different folder, chosen at request time, and the agent needs the full text of the documents, not search snippets.

- Attaching files with "+": it works, but a tender often has 10–30 files, so attaching them one by one isn't practical. Pasting the folder URL is the natural workflow.

- AI Builder / extra paid services in an agent flow: we'd rather not add AI Builder or other paid services just to convert a PDF to text, when the platform already does it for attachments.

 

Related threads (no official answer yet)

- https://techcommunity.microsoft.com/discussions/copilot-studio/copilot-studio-agent-unable-to-retrieve-usable-docxxlsx-content-from-onedrive-an/4551010 (in that thread a test.pdf also came back as raw binary only)

- https://techcommunity.microsoft.com/discussions/copilot-studio/copilot-studio-%E2%80%9Cget-file-content-using-path%E2%80%9D-fails-for-table-heavy-docx-files/4546702

 

Questions

1. Can Microsoft confirm this is by design, i.e. that a file returned by a connector action is not converted to text the way chat attachments and knowledge files are? Is it documented anywhere?

2. Is there a supported way, with no AI Builder or extra paid services, for an agent to read the full text of a PDF given its SharePoint URL?

3. If not, is it on the roadmap to: (a) apply the same text extraction to File outputs from connector tools, or (b) let an agent take a SharePoint file or folder URL as if it were an attachment?

4. In the new experience, how can we inspect tool calls and their outputs (inputs, returned content, errors) when the Activity map shows nothing? Is that a known gap?

Thanks!

 

1 Reply

  • Thanks for raising your issue. We will check this at our end and will update you accordingly.