cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
WilliamL
Level: Powered On

Operations using variables show wrong values

Hello everyone,

 

I started using Flow to basically create a new row in a SQL table every time an item is created in a SharePoint list (I am using SharePoint Online).

The principle is to get the higest value from the identifier in the SQL table and to increase by 1. Simple.

 

To do so, I initialize 2 variables, 1 to store the highest identifer found and another one to define the step (equals to 1).

I am having very inconsistent results after a simple increment. I also tried to use add() with the same errors.

Incrementing by 1 does nothing, it returns the same value as before.

Incrementing by 100 adds 90.

2017-10-18 16_33_16-Manage your flows _ Microsoft Flow - Internet Explorer.png

Incrementing by 1000 adds 990 etc.

2017-10-18 16_31_50-Manage your flows _ Microsoft Flow - Internet Explorer.png

Another issue is that the Flow does not start if 1 item is created in SharePoint. It does most of the time when I create 2 items or more.

 

Does anyone encountered the same issues as me?

 

Thanks

 

William

1 ACCEPTED SOLUTION

Accepted Solutions
WilliamL
Level: Powered On

Re: Operations using variables show wrong values

Hi everybody,

 

Sorry my bad, I didn't check all the rules from my SQL table.

I created a brand new one without any rule and it works well.

 

Cheers

 

William

View solution in original post

1 REPLY 1
WilliamL
Level: Powered On

Re: Operations using variables show wrong values

Hi everybody,

 

Sorry my bad, I didn't check all the rules from my SQL table.

I created a brand new one without any rule and it works well.

 

Cheers

 

William

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,102)