Building and customizing solutions using Microsoft 365 Copilot APIs and tools
The table limitation applies to SharePoint content used by an Agent Builder agent, but it is not a blanket limitation on Excel files or all files attached directly to a conversation.
Agent Builder knowledge sources
The Optimize content retrieval guidance covers declarative agents that use SharePoint content and embedded files. It explicitly states that Copilot cannot currently parse tables or other special formatting in SharePoint content and recommends converting that information to plain, structured text before referencing it ^1^.
Therefore, if an Agent Builder knowledge source is:
- A SharePoint site, folder, page, or file containing an important table: do not depend on the table’s row/column structure being preserved.
- A SharePoint list selected directly as knowledge: this is a separately supported structured source. Agent Builder supports one list with up to 20,000 rows and 50 MB of raw text, although list attachments are not indexed ^2^.
- An embedded file uploaded into the agent: Word and Excel formats are supported, but embedded knowledge uses the files’ text content for grounding. For Excel retrieval, Microsoft recommends keeping all relevant data in one worksheet ^1^.
For critical SharePoint table content, convert each row into self-contained text, for example:
Product: Contoso Basic
Maximum users: 25
Support level: Email
Monthly price: $20
Product: Contoso Pro
Maximum users: 100
Support level: Email and phone
Monthly price: $50
This avoids relying on spatial relationships between table cells.
Files attached by the user in chat
Conversation attachments use a different processing path from maker-configured knowledge sources:
- Excel
.xlsand.xlsx: text and tables are extracted for the agent to reason over. - Word
.docand.docx: text is extracted for reasoning. - The attachment is supplied for the conversation rather than becoming a persistent agent knowledge source ^3^.
Consequently:
- Attached Excel tables: explicitly supported.
- Attached Word tables: Microsoft explicitly guarantees text extraction from Word, but the attachment documentation does not explicitly guarantee preservation of the table’s row/column relationships. The words in the cells may be available while the intended table structure is not reliably retained.
- Charts or table screenshots: these are nontextual content and should not be treated as equivalent to a native Excel table. If exact values or relationships matter, provide them as actual cells or structured text.
A precise attachment prompt can reduce ambiguity:
Using the attached workbook, analyze only the “Pricing” sheet. Treat the first row as column headers. For each product, return Product, Monthly price, Maximum users, and Support level. Do not infer missing values.
Practical recommendation
- For permanent agent knowledge, prefer a directly selected SharePoint list, a simple one-sheet Excel workbook, or structured text rather than a formatted SharePoint table.
- For one-off analysis, attach the Excel workbook in the chat and identify the worksheet, headers, and required columns.
- For Word tables, repeat the column meaning in the prompt or convert the table to a simple list when exact row-to-column associations are essential.
- Test persistent sources under Agent Builder → Configure → Knowledge, wait until the source is no longer marked Preparing, and then ask a question with a known table value on the Preview tab ^2^.
References