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 Platform Community / Forums / Power Automate / Unable to use variable...
Power Automate
Answered

Unable to use variable in Wait

(0) ShareShare
ReportReport
Posted on by 5

When trying to use input variable (set to "number") with "Wait", I get the following error message:

Timeout values can only be in the range 0 to 2147483 seconds.

 

I am trying to prompt for end user to input duration in seconds, and use that input as a numeric variable for "Wait".

Any examples or work arounds please, thank you.

 

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Looks like a bug.

     

    It would be great if you report it via the option mentioned here.

     

    In the interim you can make use of it as below.

     

    VJR_0-1664018705741.png

     

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @cmerenuk52 ,

     

    The Wait action supports Timeout values range 0 to 2147483 seconds.

    ValueTimeUnit
    2147483Seconds
    35791.38Minutes
    596.5231Hours
    24.85513Days

     

    I think ~24 days as input is sufficient. Better you add validation for input value to avoid the error.

     

    @VJR Set Variable supports > 2147483 input value(i checked it). The error was because of Wait action. 

    The input value must fall within the range 0 to 2147483.

     

    Let me know if any queries.

     

    If you like my response, please give it a Thumbs Up.
    If this helps, please Accept as solution.


    Regards
    Kaif

  • VJR Profile Picture
    7,635 on at

    @Kaif_Siddique 

    The bug does exist.

     

    When asked to the user for an Input and if that Input variable is passed to the Wait action it throws an error.

     

    I entered 5 in the Input dialog which is a valid number between 0 to 2147483 and even then throws the below error.

     

    VJR_0-1664074863207.png

     

  • Zave Profile Picture
    88 on at

    I get this, note that it is not a runtime error:

    Zave_0-1664090714573.png

    Maybe you have an older version where that was possible, but you had to convert the user's input to a number before using it in the 'Wait' action?

     

  • VJR Profile Picture
    7,635 on at

    I have the latest version.

    Yes, the + 0 I have posted above converts it to a number and does not give the error anymore. 

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Hi @VJR ,

     

    First, I agree bug does exist.

     

    I am not getting the same error which you have mentioned in last post. Please the below screenshot. But it works fine with + 0(after converting to number).

    Kaif_Siddique_1-1664119026858.png

     

    Regards

    Kaif

  • VJR Profile Picture
    7,635 on at

    @Kaif_Siddique 

     

    Declare an Input variable of type number and use it as below and see if you get the below error.

     

    VJR_0-1664162382674.png

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    My guess is that the input box is coming back as text for the variable. Therefore, if you cannot change the variable type in your input box, then have the next action be “convert text to number” and then use that variable (the number variable) instead of the input variable as your Wait parameter. 

    best of luck!

  • cmerenuk52 Profile Picture
    5 on at

    VJR,

    Thanks for your help, this work around is working.

  • VJR Profile Picture
    7,635 on at

    That's great to know @cmerenuk52 . You can now close the thread by marking the post that resolved your issue as a solution.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard