r/copilotstudio • • 15d ago

Issue with Excel file reading in Copilot Studio (Standard harness)

Hi everyone,
I’m currently facing an issue with the Standard Copilot Studio harness: my agent is unable to properly read and retrieve information from Excel files used as knowledge sources.
I’m wondering whether anyone has successfully addressed this limitation by implementing a workflow or Power Automate flow that allows the agent to read and process Excel file contents directly.
A few constraints to keep in mind:
● Using external tools to convert Excel files to CSV is not an option.
● The solution should work with the Standard Copilot Studio harness.
● Ideally, it should rely on Power Automate or another native Microsoft approach.
● It should minimize credit consumption and avoid unnecessarily expensive flows.
Has anyone managed to implement a solution like this successfully? If so, I’d really appreciate hearing about your approach, particularly the connectors, flows, or architecture you used.
Thanks in advance for your insights!

4 Upvotes

11 comments sorted by

2

u/dwilk123 15d ago

There are known challenges around .xlsx ingestion… especially if multi worksheet.

In theory- if you turn on code interpreter at agent settings level it should address the use case of simple excel files.

For the more complex, I had to set up a PA flow that does approx this:

  1. Manually triggers ( this is how you avoid the credits cost)
  2. Reads the worksheets from file
  3. Creates temp file ( this was specific for my use case- to isolate only a subset of the data)
  4. Runs a script ( which is basically to do extraction and transformation)
  5. Creates csv file

And then I attach csv file to agent conversation

1

u/Spare_Accountant8794 15d ago

Thank you for your response.
The thing is when i turn on code interpreter it can’t read the Excel file I don’t know if it’s the complexity of the flow or instruction not made for it.
Ideally it will be used as an example so no need to put in the knowdledge more so for a specific conversation

2

u/redsaeok 15d ago

If your sheets have a set format you might get Power Automate to extract records as JSON, and call Power Automate as a tool with context to explain when/how, what the parameters are, and what it returns. I’ve had luck with that - but I put my data in a SharePoint list.

1

u/Spare_Accountant8794 15d ago

It would explode my token consommation tho thank you

1

u/OptionFront7095 14d ago

Where do you go to create the power automate flow in copilot menu?

1

u/emul0c 15d ago

Is it a specific excel file that it needs to read again and again, or is it many different files?

1

u/Spare_Accountant8794 15d ago

many different files

1

u/emul0c 15d ago

Do you control the files, or are they managed by many different people?

1

u/Spare_Accountant8794 15d ago

They are managed by different people but I have access ideally I would add the excel file directly in the conversation with the agent. It reads it and respond to my question

1

u/ForceBubbly2774 13d ago

I recently just built something that required pulling financial data from an excel sheet. I accomplished this by turning on code gen within the agent. It will essentially execute code to find data within the spreadsheet.