Fix Power Automate SQL Server Trigger Dynamic Content Error
Question details
The user needs to resolve an issue where a Power Automate trigger does not populate table names or dynamic content, leading to a key-matching failure.

- Product
- Power Automate / SQL Server
- Device & OS
- not provided
- Scenario
- Configuring a SQL Server trigger in Power Automate to fetch dynamic content using a gateway connection.
- Observed behavior
- A SQL Server gateway connection produces a trusted-source URI error. Entering a custom table name manually causes a 'key didn't match any rows in the table' error, and dynamic content fails to load.
Ensure you have administrative access to your Power Platform environment and verify that your on-premises SQL Server data gateway is online and updated to the latest version.
Recreate the SQL Server Connection and Trigger
Resolving connection corruption and selecting the table directly from the UI dropdown typically fixes the key-matching failure.
The 'key didn't match any rows in the table' error often occurs when a custom table name is entered manually, or when the underlying SQL Server gateway connection has become desynchronized from the environment.
Navigate to the Data > Connections menu in the Power Automate portal, locate your SQL Server connection showing the trusted-source URI error, and delete it.
Click 'New connection', select SQL Server, and re-enter your valid credentials and gateway details to establish a fresh connection.
Open your problematic flow in Edit mode, delete the broken SQL Server trigger, and add a new 'When an item is created' (or similar) SQL Server trigger.
Instead of typing a custom table name, click the dropdown arrow in the Table field and select the target table. This ensures the schema loads correctly and populates the dynamic content.

Enhance Your Daily Workflow with WPS Office
While WPS Office does not manage Microsoft Power Automate flows or SQL server triggers, it is an exceptional, lightweight alternative to Microsoft Office for your daily documentation and data management needs. Experience a seamless and familiar interface without the heavy subscription fees.
- 1. Download the software: Visit the official WPS Office website and download the free installation package for your device.
- 2. Install and launch: Follow the simple on-screen instructions to install the application, then open the WPS Office desktop client.
- 3. Open existing files: Drag and drop your existing .docx, .xlsx, or .pptx files directly into the workspace to start editing immediately.

Frequently Asked Questions
Why does Power Automate show 'The key didn't match any rows in the table'?
This error is typically triggered when you manually enter a custom table name that the system cannot validate against the database schema, or if the connection metadata in your environment is outdated.
How do I fix the trusted-source URI error in a SQL Server connection?
Recreating the connection entirely within the Power Automate portal and ensuring your on-premises data gateway software is running the newest version usually resolves trusted-source URI errors.
Why is dynamic content missing from my SQL trigger?
Dynamic content relies on Power Automate successfully reading the table schema. If the table name is unverified or the gateway connection fails, the system cannot fetch the columns to display as dynamic content.




