Breaking off repeater loop (yes I am using the error method)

Hi

I have a loop that reads from an Excel file as seen on the screenshot below

The error method using the JSON module works well and triggers an error which is then handled by Commit. But Commit ends the scenario.

I need it to “restart” the flow and read the next row on the Excel file.

I’ve tried Ignore, resume, rollback and break but seems they don’t seem to work well. Only Commit triggers an end, and it triggers an end for the scenario. The scenario should continue reading the next bundle from the Excel file.

Repear is a very ugy method for this, and a “While” like module should be added.

Welcome to the Make community!

That is because you did not “close”/“end” the loop.

Have you seen these previous discussions?

Your question may have already been answered here:

You can search this forum for existing answers, and also use the documentation in the Help Centre to get to a solution faster, and also help keep the forum organised. Thanks for your cooperation!

Still require assistance?

If the previous threads above does not answer your question, please edit your question and provide additional details to demonstrate the difference between your question and the duplicate discussions.

If you require help implementing the answers in the previous threads linked above, please reply with more details of what you have tried, including screenshots.

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Hi, doesn’t the loop close when the parse error kicks in?

Nope.     

Also, instead of a Commit directive, try using Ignore.

You can also learn more about this in these Make Academy units:

Error handling

  • Errors Overview
  • Error handling directives - Ignore, Rollback, and Commit
  • Retrying automatically - the Break directive
  • Error handling using routers and filters

Hope this helps! If you are still having trouble, please provide more details.

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Then how do I close a repeater loop? previously I tried to set the i value higher than the max number of repeats as there’s no “break” module that works for this.

Ignore module seems ot get it stuck on the loop, as it continues running the sleep module.

Hey Alberto,

do you mind explaining the flow a little bit? What data are you trying to process and what are you trying to achieve with this repeater and error causing json module?

1 Like

We’d love to help, however, you have not provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue/s and/or error/s.

To allow others to assist you with your scenario, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are extremely important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario,
  • the zoomed in section of the scenario that you are referring to (if your scenario is huge),
  • a full scenario run/execution (showing output “speech” bubbles),
  • any error messages,
  • individual module fields,
  • relevant filter settings (conditions), and
  • each module’s output bundles
  • any external services (spreadsheet headers, sample data, regex101.com, etc.)

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and avoid tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Module Output Bundles

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
Here are some ways to provide text content in a way that it won’t be modified by the forum.

  • Method 1: Type code fence manually
    Add three backticks ``` in a separate line before and after the content, like this,

    ```
    text goes here
    ```
    
  • Method 2: Highlight and click the “preformatted text” button in the editor

  • Method 3: Upload your file and share the public link
    (this method is only recommended for large files exceeding the forum upload limit)

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

Sharing these details will make it easier for others to assist you.