cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cmerenuk52
New Member

Unable to use variable in Wait

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
VJR
Super User
Super User

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

 

View solution in original post

10 REPLIES 10
VJR
Super User
Super User

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
Impactful Individual
Impactful Individual

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

@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

 

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?

 

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
Impactful Individual
Impactful Individual

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

@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
Super User
Super User

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!

VJR,

Thanks for your help, this work around is working.

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

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (5,414)