Issue with Logic Apps running MANY times after enabling it

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3165537%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EIssue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3165537%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EHey%20guys!%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EAnyone%20seen%20this%20problem%20before%3F%20This%20has%20happened%20to%20me%20a%20lot.%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI'll%20build%20out%20some%20logic%20(most%20of%20the%20time%20a%20schedule%20trigger%20that%20might%20run%20either%20every%205%20mins%20or%201%20hour)%20-%20go%20to%20enable%20it%20then%20it%20runs%20a%20million%20times%20over.%26nbsp%3B%20Some%20of%20them%20I've%20just%20noticed%20have%20returned%20to%20a%20normal%20state%20after%20they've%20all%20run.%20There's%20enough%20runs%20to%20use%20a%20lot%20of%20resources%20that%20trying%20to%20edit%20another%20logic%20app%20fails!%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EBut%20I%20have%20no%20idea%20why%20it's%20doing%20this%3F!%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348191i8860E15242363C41%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22cyberengineer_0-1644881202829.png%22%20alt%3D%22%5C%26quot%3Bcyberengineer_0-1644881202829.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThe%20trigger%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348192i1E7496307C7AF7DF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22cyberengineer_1-1644881233582.png%22%20alt%3D%22%5C%26quot%3Bcyberengineer_1-1644881233582.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EAny%20help%20appreciated!%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EThanks%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EDan%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3165537%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3ELogic%20Apps%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EPlaybooks%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3165537%22%20slang%3D%22en-US%22%3EIssue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3165537%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20guys!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20seen%20this%20problem%20before%3F%20This%20has%20happened%20to%20me%20a%20lot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20build%20out%20some%20logic%20(most%20of%20the%20time%20a%20schedule%20trigger%20that%20might%20run%20either%20every%205%20mins%20or%201%20hour)%20-%20go%20to%20enable%20it%20then%20it%20runs%20a%20million%20times%20over.%26nbsp%3B%20Some%20of%20them%20I've%20just%20noticed%20have%20returned%20to%20a%20normal%20state%20after%20they've%20all%20run.%20There's%20enough%20runs%20to%20use%20a%20lot%20of%20resources%20that%20trying%20to%20edit%20another%20logic%20app%20fails!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20have%20no%20idea%20why%20it's%20doing%20this%3F!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cyberengineer_0-1644881202829.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348191i8860E15242363C41%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cyberengineer_0-1644881202829.png%22%20alt%3D%22cyberengineer_0-1644881202829.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20trigger%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cyberengineer_1-1644881233582.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348192i1E7496307C7AF7DF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cyberengineer_1-1644881233582.png%22%20alt%3D%22cyberengineer_1-1644881233582.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3165537%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPlaybooks%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3167244%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3167244%22%20slang%3D%22en-US%22%3ECan't%20say%20I%20have%20seen%20this%20exact%20issue%20before.%20I%20have%20seen%20multiple%20instances%20running%20if%20the%20first%20one%20has%20not%20finished%20running%20before%20the%20second%20one%20kicked%20off%20but%20not%20having%20all%20of%20them%20kick%20off%20at%20the%20same%20time.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3167250%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3167250%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20pretty%20crazy.%26nbsp%3B%20I%20left%20this%20on%20over%20night....%20This%20is%20from%20literally%20just%20clicking%20enable%20once...%3C%2FP%3E%3CP%3ESeems%20to%20have%20gone%20back%20to%20normal%20now%2C%20but%20for%20the%20life%20of%20me%20can't%20find%20an%20answer%20to%20this%20one.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cyberengineer_0-1644926699722.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348326i49090473246A0975%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cyberengineer_0-1644926699722.png%22%20alt%3D%22cyberengineer_0-1644926699722.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3168912%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3168912%22%20slang%3D%22en-US%22%3EThat%20may%20require%20a%20ticket%20with%20MS%20to%20figure%20out%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3172903%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3172903%22%20slang%3D%22en-US%22%3E%3CP%3ERight%2C%20I%20think%20I've%20found%20the%20culprit...%20Running%20normal%20now.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cyberengineer_0-1645017205450.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348689iF6D896F1D693858B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cyberengineer_0-1645017205450.png%22%20alt%3D%22cyberengineer_0-1645017205450.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESwapped%20out%20my%203%20minute%20sliding%20window%20trigger%20for%203%20minute%20recurrence%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cyberengineer_1-1645017243252.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348690iE10F7E5F726B0826%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cyberengineer_1-1645017243252.png%22%20alt%3D%22cyberengineer_1-1645017243252.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHit%20the%20enable%20button%20and%20it%20seems%20to%20be%20normal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20were%20no%20other%20values%20or%20attributes%20attached%20to%20the%20sliding%20window%20but%20I%20regularly%20shift%20logic%20apps%20around%20via%20ARM%20templates.%20I%20think%20maybe%20this%20can%20cause%20some%20issues.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThought%20I'd%20update%20here%20just%20in%20case%20anyone%20else%20gets%20this%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3319470%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20Logic%20Apps%20running%20MANY%20times%20after%20enabling%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3319470%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20facing%20same%20issue%20after%20enabling%20the%20logic%20app.%20I%20am%20using%20Logic%20app%20consumption%20and%20trigger%20is%20Recurrence%20set%20to%20once%20a%20day.%3CBR%20%2F%3EAccording%20to%20MS%20doc%20-%3CBR%20%2F%3EFor%20the%20Recurrence%20trigger%20when%20you%20are%20setting%20the%20concurrency%20as%20one%20for%20every%20one%20hour%20it%20means%20that%20your%20workflow%20will%20be%20triggered%20every%20one%20hour.%20If%20the%20trigger%20misses%20recurrences%2C%20for%20example%2C%20due%20to%20disruptions%20or%20disabled%20workflows%2C%20the%20Recurrence%20trigger%20doesn't%20process%20the%20missed%20recurrences%20but%20restarts%20recurrences%20with%20the%20next%20scheduled%20interval.%3CBR%20%2F%3E%3CBR%20%2F%3EWhereas%20when%20you%20use%20Sliding%20Window%20trigger%20it%20will%20trigger%20every%20one%20hour.%20If%20recurrences%20are%20missed%20for%20any%20reason%2C%20for%20example%2C%20due%20to%20disruptions%20or%20disabled%20workflows%2C%20this%20trigger%20processes%20those%20missed%20recurrences.%20Let's%20say%20if%20you%20have%20disabled%20the%20trigger%20for%205%20hr%20then%20there%20will%20be%20five%20misses%20but%20as%20soon%20as%20you%20have%20enabled%20the%20trigger%20again%20the%20logic%20app%20starts%205%20times%20simultaneously.%3CBR%20%2F%3E%3CBR%20%2F%3EBecause%20of%20this%20reason%2C%20I%20started%20with%20Recurrence%20trigger%20only%20and%20now%20this%20issue%20is%20different.%20It%20is%20hard%20to%20figure%20out%20the%20root%20cause%20though%20trigger%20is%20Recurrence.%3C%2FP%3E%3CP%3EHas%20anyone%20able%20to%20figure%20out%20the%20reason%20for%20this%20behaviour%20%3F%20I%20have%20various%20batch%20jobs%20run%20using%20recurrence%20and%20after%20enabling%20any%20logic%20app%20it%20is%20showing%20same%20behavior.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20re-deployed%20the%20ARM%2C%20I%20have%20deleted%20and%20created%20a%20new%20logic%20app%20but%20the%20issue%20still%20persists.%20Any%20help%20is%20appreciated.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hey guys!

 

Anyone seen this problem before? This has happened to me a lot.

 

I'll build out some logic (most of the time a schedule trigger that might run either every 5 mins or 1 hour) - go to enable it then it runs a million times over.  Some of them I've just noticed have returned to a normal state after they've all run. There's enough runs to use a lot of resources that trying to edit another logic app fails! 

 

But I have no idea why it's doing this?!

 

cyberengineer_0-1644881202829.png

 

The trigger

cyberengineer_1-1644881233582.png

 

 

Any help appreciated!

 

Thanks

 

Dan

6 Replies
Can't say I have seen this exact issue before. I have seen multiple instances running if the first one has not finished running before the second one kicked off but not having all of them kick off at the same time.

@Gary Bushey 

 

It's pretty crazy.  I left this on over night.... This is from literally just clicking enable once...

Seems to have gone back to normal now, but for the life of me can't find an answer to this one.

cyberengineer_0-1644926699722.png

 

That may require a ticket with MS to figure out

Right, I think I've found the culprit... Running normal now.

cyberengineer_0-1645017205450.png

Swapped out my 3 minute sliding window trigger for 3 minute recurrence 

cyberengineer_1-1645017243252.png

 

Hit the enable button and it seems to be normal.

 

There were no other values or attributes attached to the sliding window but I regularly shift logic apps around via ARM templates. I think maybe this can cause some issues.

 

Thought I'd update here just in case anyone else gets this issue.

 

I am facing same issue after enabling the logic app. I am using Logic app consumption and trigger is Recurrence set to once a day.
According to MS doc -
For the Recurrence trigger when you are setting the concurrency as one for every one hour it means that your workflow will be triggered every one hour. If the trigger misses recurrences, for example, due to disruptions or disabled workflows, the Recurrence trigger doesn't process the missed recurrences but restarts recurrences with the next scheduled interval.

Whereas when you use Sliding Window trigger it will trigger every one hour. If recurrences are missed for any reason, for example, due to disruptions or disabled workflows, this trigger processes those missed recurrences. Let's say if you have disabled the trigger for 5 hr then there will be five misses but as soon as you have enabled the trigger again the logic app starts 5 times simultaneously.

Because of this reason, I started with Recurrence trigger only and now this issue is different. It is hard to figure out the root cause though trigger is Recurrence.

Has anyone able to figure out the reason for this behaviour ? I have various batch jobs run using recurrence and after enabling any logic app it is showing same behavior.

 

I have re-deployed the ARM, I have deleted and created a new logic app but the issue still persists. Any help is appreciated. 

Hey spnelli,

You've made it a lot clearer to me on how that sliding window works. It actually sounds like a very good idea and I feel like I should be using this instead... although I've just removed all of them and replaced with a Recurrence trigger.

So my cure before was to delete the logic app and create a new one with a new resource name. I didn't have that issue after that.

Have you tried this?

Dan