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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 58 members 3,523 guests
Please welcome our newest community members: