I am struggling and failing to do something that seems like it should be very simple. I want to create a custom agent in Copilot Studio that can read data in an Excel file and customize its behavior based on that data. I would be very grateful for any guidance that can help me reach that end state.
I set up dataverse tables for this purpose, but realized I can't actually use Dataverse with Copilot Studio unless I pay for premium connectors. Now I am trying to use an Excel 365 Online Business Connector. When I create this connector action, I am prompted to fill in values for the location/library/file/table. While the UI looks really similar to a "List rows present in a table" action one might create in Power Automate. In Power Automate, I can click on a field and it will give me a list of options to choose from. When I create this connector action node within a topic, that's not the case, which seems very strange. If I click a field, nothing happens at all. If I click the arrow to expand, I can pull from a variable, but I don't see a way to navigate my Onedrive to select the location of the table. Is this expected behavior? I did refresh the connection prior to testing.
Working on the assumption that I just need to be able to provide the appropriate string values, I created a similar Connector action in Power Automate and copied and pasted the values used to target my table. This is what my nodes look like:
- Set Variable Value
- Set Variable : Global.User (string)
- User.PrincipalName (string from System)
- Message
- The chosen User ID is Global.User
- Connector Action - List Rows Present in a Table - Excel Online (Business)
- Inputs
- Location = OneDrive for Business
- OneDrive
- /Copilot Demo Proficiency Data.xlsx
- Table1
- Advanced inputs
- Filter Query = Student ID eq 'Global.UserID'.
- null for other advanced inputs
- Outputs
- Global.StudentUnitProficiency (table)
- Message
- Successfully fetched table
- Set Variable Value
- Set Variable: Global.StudentName
- to Value: Global.StudentUnitProficiency[0]['Student Name']
- Nodes 6 and beyond are similar to node 5. Goal is to create a variable for each column of the selected student's row.
When I try to test my agent, nodes 1 and 2 work as expected. However, instead of making it to my test statement in node 4, I'm getting caught on node 3 and receiving this message: Error Message: The connector 'Excel Online (Business)' returned an HTTP error with code 400. Error Code: ConnectorRequestFailure Conversation Id: 125e8bf6-368b-4212-9ef8-992df2aa239b Time (UTC): 2025-02-19T15:51:31.278Z
It looks like this error can occur within Copilot Studio if it's attempting to move large amounts of data. However, the Excel file is only 12kb. It also looks like it could be a generic "something went wrong with this connection" error.
I am grateful for any suggestions you can provide, or for any information regarding how I can find more detailed information about where exactly the error was encountered. I'd also LOVE IT if there are any resources that have examples of existing custom agents where it's possible to view all of the existing nodes.