Hi everyone,
I created a Copilot Studio agent, connected to my SQL Server, added an excel file - all Stored procedures' definition as Knowledge Source (so that the agent can detect which one to use and how to use), added a tool "Execute stored procedure (V2) with below details:
- Maker-provided creds
- Server name = Use connection string
- DB name = Use connection string
- Procedure name = Dynamically fill with AI
- Parameters list (Disabled - Dynamically fill with AI)
The flow is: agent receives user's query -> check Knowledge source to detect which stored procedure to call and how to use it (params/args to specify) -> call the tool (=execute the stored procedure) -> generate the response.
Last month or early this month (Jun 2026), the agent itself was able to pass input value for Parameters list as Record value, and executed the stored procedure successfully. However, at the moment, the agent inputs Parameters list as a String value and leads to this error:
Error Message: Evaluating PowerFx expression resulted in error while invoking the connector : Expected to get object for property parameters but got StringValue Error Code: ConnectorPowerFxError
Just wonder if there're any changes around this and solution? Can we somehow let the agent behave like before? Any DLP policies can cause this behavior (but I do not have permission to view and/or edit)?
Besides, I have some ideas if cannot tweak the agent to get back to previous behavior:
1. Create Power Automate flow to process Stored procedure execution task, parse for inputs (transform if needed), then execute the stored procedure.
2. Create a topic for Executing stored procedure, parse user's query and transform for input, then call tool to execute the stored procedure.
3. For every stored procedure x params set, add a dedicated Execute stored procedure tool & rename it accordingly (e.g., get records by name, get records by department, get records by name and department, etc). However, the number of tools will grow by time, with some duplicates and performance issue when the agent needs to handle too many tools in the future.
Anyone faces same/similar issue, or has feedback and thoughts on this?