# How to Fix MIN_VALUE_GREATER_THAN_MAX Error in WhatsApp Flow JSON
Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-06-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/how-to-fix-minvaluegreaterthanmax-error-in-whatsapp-flow-json-cmbzb4wqi0002reycqqabiwjj

## Quick Fix

Ensure the value of min-selected-items is less than or equal to max-selected-items for components like CheckboxGroup.

If you're building flows for WhatsApp experiences using the Meta platform, you might run into this error:

**MIN\_VALUE\_GREATER\_THAN\_MAX**

**min-selected-items cannot be greater than max-selected-items for component\_type CheckboxGroup cbg.**

This usually happens when you're setting validation ranges - like minimum and maximum selected items—on UI components such as checkboxes, dropdowns, or sliders.

## What Went Wrong?

Here’s the problematic config:

```
{
  "type": "CheckboxGroup",
  "name": "cbg",
  "min-selected-items": 3,
  "max-selected-items": 2,
  ...
}
```

In the above code:

- min-selected-items is set to 3

- max-selected-items is set to 2


That’s logically invalid. A user cannot be required to select at least 3 options when only 2 are allowed at most.

## The Fix

Simply reverse or adjust the values so that min-selected-items <= max-selected-items. For example:

```
{
  "type": "CheckboxGroup",
  "name": "cbg",
  "min-selected-items": 1,
  "max-selected-items": 3,
  ...
}
```

Now, the form allows users to select at least 1 and at most 3 items which is a valid range.

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


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

