cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tejaswini1234
Helper IV
Helper IV

how to solve error of add days when selected current date and add 30 days to it?

i got following error when selected todays date in date picker while adding 30 days in flow using  

addDays(triggerBody()?['DatePickercontrol'],30,'yyyy-MM-ddThh:mm:ssZ')

 

 

"BadRequest. The provided 'Wait' action 'until' value '9/5/2019 12:00:00 PM' (UTC) is not supported for the 'Consumption' SKU. The maximum wait duration supported for this SKU is '30' day(s)."

3 REPLIES 3

Hi @Tejaswini1234 

 

Looks like it has something to do with the UTC and time zone stuff. I did this in my flow and it worked fine for me. 

dd.PNG

Expression: 

addDays(body('Convert_time_zone'),30)
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Tejaswini1234 

 

Flows run has period is maximum of 30 days which is a hard limit and hence the error

Better option would be to run a Flow on a schedule(may be once a day) and check to see if it is 30 days past the date and then accordingly take action

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-litu-msft
Community Support
Community Support

Hi @Tejaswini1234,

 

Has your problem been solved?

If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,
Community Support Team _ Lin Tu

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,233)