# Repeat a module if it generates an error

**URL:** <https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892>\
**Category:** Beginner Questions\
**Tags:** repeater\
**Created:** [May 14, 2026, 11:53am UTC](https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892 "2026-05-14T11:53:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![efquintana](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@efquintana](https://community.make.com/u/efquintana)\
**Post date:** [May 14, 2026, 11:53am UTC](https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892/1 "2026-05-14T11:53:49Z")

</div>

Hi.

I have a scenario with a “Create a user” module from WordPress.

Although it’s not common, sometimes the password doesn’t meet all the requirements set by WordPress, the module generates an error, and the user isn’t created.

How can I make the module repeat until the password is valid and the user is created correctly?

Thanks.

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [May 14, 2026, 11:59am UTC](https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892/3 "2026-05-14T11:59:17Z")

</div>

Hey there,

where are you taking the password from? Repeating the module it self wont work here, you need to restart the flow from the point where the password is getting generated.

---

<div class="post-metadata">

**Author:** ![efquintana](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@efquintana](https://community.make.com/u/efquintana)\
**Post date:** [May 14, 2026, 3:02pm UTC](https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892/4 "2026-05-14T15:02:21Z")

</div>

Hi

The password is generated within the module itself using formulas that select random characters from uppercase letters, lowercase letters, numbers, and special characters.

Almost always, a valid password is generated, and the user is created without issue. However, occasionally a number or a special character is missing, for example, and then user creation fails because the password is invalid.

If this module could be repeated, statistically, a valid password should be generated on the next attempt.

 ![psw](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/6/e626fe49147e5b180a33be76128c7279ff0ff26c.jpeg)

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [May 14, 2026, 4:54pm UTC](https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892/5 "2026-05-14T16:54:38Z")

</div>

Ok, in that case just add a Break error handler and it will retry the module.

Also here is a formula that will give you one uppercase letter, one lowercase letter, one number and one special symbol guaranteed in a 16 symbol password:

```auto
{{join(shuffle(add(emptyarray; first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZ"; ""))); first(shuffle(split("abcdefghijklmnopqrstuvwxyz"; ""))); ceil(random * 10); first(shuffle(split("!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))); first(shuffle(split("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"; ""))))); emptystring)}}

```

I usually use a variation of [this](https://eu1.make.com/public/shared-scenario/Ifbmuu2btVo/integration-tools) though since its easier to manage and modify as needed.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/9786f7887a39f4a0fef4d09346ab5b54ce20222b.svg) [@system](https://community.make.com/u/system)\
**Post date:** [May 16, 2026, 4:55pm UTC](https://community.make.com/t/repeat-a-module-if-it-generates-an-error/108892/6 "2026-05-16T16:55:04Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
