web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : MmRFspWGsgUVDXpFdwcpWV
Power Automate - Building Flows
Unanswered

Azure SQL modified trigger - table names not visible

Like (1) ShareShare
ReportReport
Posted on 31 Oct 2017 11:52:38 by

Hi everyone,

 

I've got an Azure SQL database and I want new or modified records to trigger an approval email using Flow. I've successfully done this for new items using the "When an item is created" trigger, where I can select the table I'm interested in from the "Table names" drop down, see below.

 

Created.PNG

 

Problem is, when I use the "When an item is modified" trigger using the same connection as before, I do not get a list of available tables in the drop down, and I have to enter the table name manually.

 

Modified2.png

 

This does not run but instead I get a series of "failed checks" - bad request. Details below.

 

{
  "status"400,
  "message""Invalid Mashup Expression using supplied values.\r\n     inner exception: The key didn't match any rows in the table.\r\nclientRequestId: e1172451-d371-43b7-bbbb-620d55a8f059",
  "source""sqlconnectionprovider-northeurope.db3-ase-001.p.azurewebsites.net"
}

 

Anyone have any ideas? Is the error linked to my inability to select the correct table?

 

Thanks, Adam.

  • Community Power Platform Member Profile Picture
    on 12 Feb 2018 at 20:29:46
    Re: Azure SQL modified trigger - table names not visible

    They may have uses PowerBI Gateway for Powerapps.... Any way triggers for update are not yet supported for on premise sql server, this may be the cause. To be sure try with Azure Cloud SQL server, you get one month free. I have no idea to help more.

     

    If you are desperate you could create a SQL Server "on update" trigger on your table within the SQL Server Database that would create a copy of the updated record table into another temporary table and then use a "flow" on create looking at this temporary table ... May be :))

  • jehrenfeld Profile Picture
    43 on 12 Feb 2018 at 20:15:13
    Re: Azure SQL modified trigger - table names not visible

    I did try typing the name but then I do not get any dynamic fields to use in Step 2. This is not for PowerBI. This is a workflow to send a text message to a user when the status in the table changes.

  • Community Power Platform Member Profile Picture
    on 12 Feb 2018 at 20:11:41
    Re: Azure SQL modified trigger - table names not visible

    Why powerBI comes into this ??? DId you try to type the table name ?

  • jehrenfeld Profile Picture
    43 on 12 Feb 2018 at 20:08:01
    Re: Azure SQL modified trigger - table names not visible

    SQL Server 2012

    2-12-2018 2-06-41 PM.jpg

  • Community Power Platform Member Profile Picture
    on 12 Feb 2018 at 20:01:36
    Re: Azure SQL modified trigger - table names not visible

    So you confirm that it still does not work with on premise sql server, what is the error message, do you have, what is the SQL server version (some utilities does not work with 2017) 

  • jehrenfeld Profile Picture
    43 on 12 Feb 2018 at 19:53:31
    Re: Azure SQL modified trigger - table names not visible

    I tried all of that and I still get an exception error when I try to connect to that table. Very frustrating as the Created trigger is working nicely, however, the workflow is useless without the ability to trigger a step when the status changes in my table.

  • Community Power Platform Member Profile Picture
    on 11 Feb 2018 at 09:46:58
    Re: Azure SQL modified trigger - table names not visible

    I tried the turnaround to SQL Server connector limitation for UPDATES

     

    The IDENTITY columns  iD int ALSO MUST BE THE PRIMARY KEY or the connector tries to update the row with the primary key field = the ID Number..... (That is NOT yet written in the SQL Server limitations page)

     

    You also need a ROWVERSION timestamp but it is not used in the generated sql for updates.

     

    I did not try the On premise but I will definitly need it in the real world.

     

    If you do not see the tables, just type the Table name, sometimes the list comes, sometime not but it works.

    Best regards

     

     

  • Community Power Platform Member Profile Picture
    on 24 Nov 2017 at 14:40:37
    Re: Azure SQL modified trigger - table names not visible

    Thanks @jehrenfeld, I will give this a try and report back.

  • jehrenfeld Profile Picture
    43 on 22 Nov 2017 at 15:19:18
    Re: Azure SQL modified trigger - table names not visible

    I found the issue. Your table must a column with a timestamp datatype. I added a column called tRowVersion and set the datatype to timestamp and now it shows up in my dropdowlist of table.

  • jehrenfeld Profile Picture
    43 on 22 Nov 2017 at 15:09:24
    Re: Azure SQL modified trigger - table names not visible

    I just came across this. I am using a gateway to connect to my database, but some table show up but a whole bunch do not.

    https://flow.microsoft.com/en-us/blog/introducing-triggers-in-the-sql-connector/ Near the bottom of the page:

    Limitations

    The triggers do have the following limitations:

    • It does not work for on-premises SQL Server
    • Table must have an IDENTITY column for the new row trigger
    • Table must have a ROWVERSION (a.k.a. TIMESTAMP) column for the modified row trigger

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete