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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Increase Variable

(0) ShareShare
ReportReport
Posted on by 80

I created a flow that stores a list as a variable and for each of the list item, extract certain data and export it to excel csv file.   I can't seem to get the variable increment to work and keep getting the error " Argument Value must be Numeric value".  Could you please look at my flow and help? Thank you

GenAi_0-1717181268946.png

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I think the value you are getting for NewVar before the ForEach is text.

     

    Use a Convert Text to Number action to make it a number, then you can increase it.

     

    Good luck!

  • GenAi Profile Picture
    80 on at

    Would the value of the variable cause this error considering that I referred to the index of the variable "DataFromWebPage[0]"?.  I did however tried what you suggested and got the error" Can't convert text'Corporate...8 into a valid number. Below is the information in the DataFromWebPage, if it helps. Thank you

    GenAi_0-1717197239755.png

     

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @GenAi 

     

    The value which you assigned before the for each loop for Newvar is looks like datatable. If you check it, it’s holding your  DataFromWebPage[0] —> it means  which contains your datatable with first column.

     

    So first decide what value you want to assign into Newvar variable and make sure it’s in number format.

     

    In case if you want to assign datatable row count into your Newvar variable you can assign like this

     

    %DataFromWebPage.RowsCount%

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • GenAi Profile Picture
    80 on at

    I couldn't get it to work that work. I ended up changing my logic how to build the entire flow. Thank you

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @GenAi ,

     

    Your Newvar(DataFromWebPage[0]) is in string format ven though you use Convert text to number it wont work as it wont convert the string to a number,so increase variable also dont work.

     

    Instead you need to set a variable as a RowValue and Increase that as shown in below image.

    VishnuReddy1997_0-1718426852980.png

     

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard