cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tosin
Frequent Visitor

When an item is modified (v2) trigger. Flow is not triggering

I have a flow that connects to an SQL database.  Using the Trigger - "When an item is modified (v2)".

 

 

The problem is the flow doesn't even trigger even though the:

- Server name is correct

- Database name is correct

- Table name is correct.

 

PictureX.png

Tosin_1-1637056702414.png

 

 

We have another flow that uses the same SQL trigger "When an item is modified (v2)" but for a different database and table name which does get triggered when the corresponding trigger event occurs and it works fine.

 

So could it be the database itself? I really need help.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

I figured it out with some research. That trigger "When an Item is modified" will only work or trigger if the SQL Table in this context has a column that could be called anything. But as a data type of "timestamp".

 

So In my sql table i need to add a column called anything i.e. "RowVersion" and datatype of "timestamp

 

Code snippet here:

 

ALTER TABLE TableName

ADD ColumnName Datatype;

So for me ALTER TABLE abc
ADD RowVersion timestamp;

View solution in original post

5 REPLIES 5
gabibalaban
Dual Super User
Dual Super User

@Tosin ,

Please be aware about known issues and limitations of the SQL - When an item is modified (V2) action. Does your table meet the RowVersion column condition?

gabibalaban_0-1637057787964.png

https://docs.microsoft.com/en-us/connectors/sql/

 

Hope it helps !

But I don't understand it works for our other flows which use SQL as a connect and "When an item is modified" as a trigger. 

We get this error when I drill into this particular flows analytics

With error details as Bad Gateway.

Tosin_0-1637059090558.png

 

@Tosin ,

Let's first solve the problem.

Can you create a rowversion column on your SQL table (use a new created one, not to alter existing data by doing something wrong) ?

I can't edit the table or alter any information as to it's from a 3rd party company.

I figured it out with some research. That trigger "When an Item is modified" will only work or trigger if the SQL Table in this context has a column that could be called anything. But as a data type of "timestamp".

 

So In my sql table i need to add a column called anything i.e. "RowVersion" and datatype of "timestamp

 

Code snippet here:

 

ALTER TABLE TableName

ADD ColumnName Datatype;

So for me ALTER TABLE abc
ADD RowVersion timestamp;

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (6,985)