# INVALID_ROUTING_MODEL – Number of Branches Exceeds the Max Limit of 10 for Screen in WhatsApp Flow JSON
Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-04-16
Category: Troubleshoot
Category URL: https://www.heltar.com/blogs/category/troubleshoot
Tags: WhatsApp Flows Error
Tag URLs: WhatsApp Flows Error (https://www.heltar.com/blogs/tag/whatsapp-flows-error)
URL: https://www.heltar.com/blogs/invalidroutingmodel-number-of-branches-exceeds-the-max-limit-of-10-for-screen-in-whatsapp-flow-json-cm9jteel8008614n57wvfge7n

If you’re building a WhatsApp data channel flow and see this error:

INVALID\_ROUTING\_MODEL: Number of branches exceeds the max limit of 10 for screen: (screenId).

You’ve likely hit a platform limitation—and here's how to fix it.

### What This Error Means

Each screen in your flow can only branch out to a maximum of 10 other screens.

If a screen has more than 10 outgoing connections in the routing\_model, the system throws this error to prevent performance and UX issues.

### Example That Causes the Error

```
{
  "routing_model": {
    "FIRST_SCREEN": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
  }
}
```

Here:

- FIRST\_SCREEN links to 12 different screens.

- This exceeds the limit of 10 → error triggered.


### How to Fix It?

You need to reduce the number of outgoing branches from that screen to 10 or fewer.

#### Option 1: Split Choices Across Multiple Screens

Break down your options into smaller chunks and route users through additional steps.

**Example:**

```
{
  "routing_model": {
    "FIRST_SCREEN": ["CHOICE_SCREEN_1"],
    "CHOICE_SCREEN_1": ["1", "2", "3", "4", "5", "CHOICE_SCREEN_2"],
    "CHOICE_SCREEN_2": ["6", "7", "8", "9", "10", "11"]
  }
}
```

This keeps each screen under the 10-branch limit but still covers all options.

#### Option 2: Use Menus, Carousels, or Pagination

If your UI supports it, show fewer options per screen and let users navigate to more.

For more troubleshooting insights related to WhatsApp Business API, check out [heltar.com/blogs](http://heltar.com/blogs).


---
This blog is powered by Superblog. Visit https://superblog.ai to know more.
---

