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

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
Highlighted
Frequent Visitor

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
Highlighted
Frequent Visitor

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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (7,088)