Macro stops randomly

Hi,
I’m completely new to this app but have managed to create my automation as I like. The only problem is that it randomly stops after a while. I would prefer it to continue until stopped manually. I can’t see why it’s acting like this.

It’s quite simple. Reload a website, wait 40sec, scroll, click, wait 15sec, refresh page, run the automation again..

You'll need to post your macro so that people can try and help. See the instructions at How to Post/Upload your Macros and Scripts

I agree, we need to see the macro to be sure, but I already have a theory. When you said "run the automation again" are you using the "Execute Macro" action to re-run the macro? If so, that could be the problem, because there is a 50 maximum depth on calling macros. After the 50th nested call, all macros immediately terminate. That's how KM works. There are other ways to "run the automation again" such as using a loop instead of calling the macro.

This is just a theory of what may be happening to you, which might not be the cause of your problem, but until we see the macro, it's impossible to know the cause.

1 Like

Sorry guys, I should have read guidelines before posting. I have added a screenshot of the macro. Be advised, I'm a total newb at this.

So it looks like my wild theory was correct, when I said:

In your macro the last action in your macro is a recursive call to the same macro. There are many easy ways to fix that. For example, just remove the last action and place all the remaining actions in an infinite loop. Although I personally don't recommend infinite loops. You may want to give the user a chance to stop the macro. There are many ways to fix that also.

The reason your macro was failing was not "random." It was failing whenever you had 50 macros running concurrently, which typically would mean that when you made your 50th iteration, this macro, and all others, stopped running.

1 Like

Thank you!
I deleted the last bit and added a loop and it now works perfectly fine.