Why the same product shows up twice in one email, and how to stop it

Programming

Dart hitting a bullseye with a second in flight, selecting catalog items by ID so no product appears twice in one email.
Dart hitting a bullseye with a second in flight, selecting catalog items by ID so no product appears twice in one email.
No headings found on page

A featured row at the top and a "more to explore" row below can show the same product twice in one email. It happens when both rows pull from the same catalog and neither knows what the other already used. Selecting items by id and not by position stops the overlap, and a single read of the catalog keeps the rows consistent. This post uses Braze as the example and covers why the overlap happens, how one shared read and two independent reads differ, and how to switch a row off.

Why do two content blocks show the same item?

Many dynamic content setups choose items by position. The first block takes items one through four, and the second starts at item five. That holds only while both blocks read from one result set.

Braze's documentation on catalog selections states that "by default, results are returned in no particular order," and a selection can be sorted by turning off Randomize Sort Order and specifying a sort field and direction. The page does not describe a way for one selection to see what another returned. Two rows that each use a selection can therefore return the same items.

With id-based logic, each row records the ids it shows and skips the ids the other row shows. Both can then read the same data without overlapping.

Should both rows share one read?

A shared read and two independent reads are the two setups, and the catalog configuration decides which is available.

One shared read. A single selection feeds both rows. Braze's selections page caps a selection at 50 results, which leaves room for a featured row of 2 or 4 items and a lower row of 8 or 16.

A Braze community answer describes capturing item values with {% capture %} at the top of the email and then referencing them further down, and confirms that "the code gets executed sequentially." Worth noting the source: that answer comes from a community member, not from Braze's documentation, and the thread frames the technique as mixing items within one section rather than across two rows. Extending it to a featured row and a lower row is a reasonable application of the same mechanism, but it is an application rather than documented behavior — test it on a real send before you build a template family on it.

With that caveat, the rows stay in step, and each can change size without touching the logic. Our post on designing email layouts for dynamic content covers the layout side.

Independent reads. Each row has its own selection or its own Connected Content call. This works only if the second row can leave out the first row's items. Selections filter with operators such as "does not equal" and allow up to 10 filters per selection, and Braze notes that "using any Liquid in catalogs, such as custom attributes and custom events, can result in different results returned for each user in your selection."

Two constraints shape what this setup can actually do. The documentation does not describe excluding items already shown in another row, so this needs a test with real sends. It also does not say whether the results limit applies before or after the filters — if the limit came first, a row could return fewer items than the template asked for. And the same page states that Connected Content Liquid isn't supported in these filter settings, which rules out some of the combinations the approach seems to invite.

Independent reads carry a second risk. If the ranking changes between the two reads, each row works from a different ordering. Braze caches Connected Content GET responses by default, with a cache age of up to five minutes, and its caching page says caching "isn't guaranteed to always result in a single Connected Content call per user."

The cache key makes that looser still: it is built from the URL, content type and request body — not the user ID — so identical requests share a cached response across users and campaigns in a workspace. The page also notes that cache settings are not guaranteed, meaning cached data can be evicted early. Two calls to the same URL in one email could therefore see different rankings. A shared read avoids that, and it is the setup we would start with.

How do you turn one row off?

The using catalogs page states that "if you type in an ID that doesn't exist, Braze will still return an items array without objects," and recommends error handling "such as checking the size of the array" with an if statement. A row wrapped in that check renders nothing when its selection returns no items. A campaign that only needs the featured row leaves the lower selection empty.

Either row can be added or removed without disturbing the other, which also makes it easy to test a one-row email against a two-row email.

One preview caveat: Braze's personalization preview "displays up to three catalog selections regardless of the results limit you set," while "the actual message sent to users respects your configured results limit." A test send is the check that counts. Our post on centralized content blocks covers how to manage reusable blocks.

The bottom line

Overlap comes from rows that choose by position and cannot see each other, and id-based logic on a shared read removes it. Independent reads are worth the move once a test send shows that exclusions hold when the ranking changes — and once you have confirmed the filter settings support what your template needs.

If you would like a second set of eyes on your Braze templates, our email coding team is happy to take a look.

Author short bio

Scalero logo.

Editorial Team

Background and expertise

Our editorial team is a collaborative engine, blending the strategic vision of the Co-founders with the technical precision of Scalero specialists, enhanced by advanced AI to deliver high-impact content. Through expert lifecycle marketing, we build genuine connections that support our partners’ and community's long-term growth.

Connect with us

Author short bio

Scalero logo.

Editorial Team

Background and expertise

Our editorial team is a collaborative engine, blending the strategic vision of our Co-founders with the technical precision of our specialists, enhanced by advanced AI to deliver high-impact content. Through expert lifecycle marketing, we build genuine connections that support our partners’ and community's long-term growth.

Connect with us