Loading

Rogue Query Timeouts in B2C Commerce

Udgivelsesdato: Jul 30, 2026
Beskrivelse

The B2C Commerce platform restricts rogue queries that produce 200,000 results or more when configured in Business Manager or using the customer_search and order_search APIs. This restriction protects customer instances and their associated services from outages and was introduced in the 23.10 release as outlined in Rogue Query Limits in B2C Commerce.

Starting with the 24.6 release in June 2024, the allowed offset value was reduced from 200,000 to 10,000 to further protect platform stability.

Error Message

When using the customer_search or order_search APIs with an offset value greater than 10,000, you will see an error similar to the following:
Search request offset <value> is greater than offset limit 10000 for tenant '<GroupID>_<Instance>', type 'order'
Business Manager calls will fail silently — no error message appears in the UI, similar to the experience for standard timeouts.

Real-World Example

A B2C Commerce developer is building a nightly job that exports all orders placed in the past 30 days for a high-volume merchant. The job uses the order_search API with a large offset and starts failing silently in Business Manager after the 24.6 release. After reviewing the error logs, the developer sees the offset limit error. They refactor the job to use processOrders with a targeted date filter, which processes the full order set in batches without hitting the offset limit.

Løsning

What will the experience be for customers who generate a rogue query?

API calls return an error message specifying that the offset value must be set below 10,000 (the limit as of the 24.6 release). Business Manager calls fail without a visible UI error, behaving similarly to a standard timeout.

How can I reduce the risk of generating a large query?

Make your query more targeted by applying filters and reducing offset values. For example, instead of retrieving all orders in a date range at once, filter by order status, customer group, or a narrower date window to keep result sets under the 10,000 offset limit.

What batch APIs can I use to retrieve large datasets?

I still need help from Support — what will I be asked to provide?

In addition to the data requested in Gathering Details for B2C Commerce Support Cases, please be ready to:

  • Explain why you need to run queries with a large offset
  • Confirm that your queries are correct and intentional
  • Share the full error message and the API or Business Manager flow used
Yderligere ressourcer
Vidensartikelnummer

000396932

 
Indlæser
Salesforce Help | Article