Skip to main content

Notifications

Create Power Automate cloud flows
Suggested answer

simple flows takes hours to run

Posted on by 10
Hi,
 
We work with Devops, Sharepoint and, of course, Powerautomate. In Devops, I created 2 tags: change and release. I have a flow in Powerautomate that daily checks all work items on Devops to see if any have been tagged change or release. The flow then checks whether the work item has the target date filled in. If it hasn't, the person who created the item gets a nice adaptive card saying that they forgot to fill in a target date. Indeed, the ultimate goal of the flow is for him to tag the work items with those tags on a change calendar on Sharepoint so that everyone can see what is going to happen when. Quite a nice idea, if I do say so myself :-)

The flow takes 10 hours and then gives up, and that while there are (only) 8 work items with the said tags. I set another tag to test, and gave 1 feature that tag. The flow takes over an hour to check whether 1 the only work-item with that tag has a target date or not!
 
set var targetdate:
 
if(empty(outputs('get_details_of_features')?['body/fields']?['Microsoft_VSTS_Scheduling_TargetDate']), 'notfilledin', outputs('get_details_of_features')?['body/fields']?['Microsoft_VSTS_Scheduling_TargetDate'])
after that a switch:
 
if var targetdate equals notfilledin
= true -> send adaptive card
= false -> put on calendar
 
Surely it's not that hard ... does anyone have an idea why it takes so long?
Categories:
  • Default Profile Picture
    Default 10 on at
    simple flows takes hours to run
    Problem solved. It is an extended flow with many if...then-constructions, and at the very end adaptive cards were built. One of them had an error in the JSON. But the error message was always at the parent swith-construction, and not at the step that sent the adaptive card. 
    I only found out when I rebuilt the whole flow and made it send emails instead of cards.
    Thnx!
  • Suggested answer
    FLMike Profile Picture
    FLMike 23,361 on at
    simple flows takes hours to run
    Please share the flow, anything else is not enough, with all inputs and outputs into the actions
     
    Do you have lots of retries?

Helpful resources

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,745

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics