# How to Fix MINIMUM_VALUE_REQUIRED and MAXIMUM_VALUE_REQUIRED Errors in WhatsApp Flow Builder

Author: Prashant Jangid
Author URL: https://www.heltar.com/blogs/author/prashant-jangid
Published: 2025-06-25
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-minimumvaluerequired-and-maximumvaluerequired-errors-in-whatsapp-flow-builder-cmcc1kr49000kx7xn8fj38dem

If you're seeing **MINIMUM\_VALUE\_REQUIRED** or **MAXIMUM\_VALUE\_REQUIRED** errors in your Flow JSON, it means you've set a property value that falls outside the allowed range. The fix is simple: set values within the documented limits for each component.

For example, in a PhotoPicker, the min-uploaded-photos must be between 0 and 30. If you set it to -1 or 40, the validator will throw these errors:

```
{
  "type": "PhotoPicker",
  "name": "ID_Proof",
  "min-uploaded-photos": -1,
  "max-uploaded-photos": 40
}
```

## Why This Happens?

Some attributes are required to stay within a defined minimum and maximum range—and this range is enforced strictly. In the case above:

- min-uploaded-photos: -1 → too low (minimum is 0)

- max-uploaded-photos: 40 → too high (maximum is 30)


These constraints ensure that the user experience is safe and predictable. Meta defines these limits based on what the WhatsApp client can reliably support.

## How to Fix It?

Always refer to theofficial flow schema or documentation for valid ranges. For PhotoPicker, update your code like this:

```
{
  "type": "PhotoPicker",
  "name": "ID_Proof",
  "min-uploaded-photos": 1,
  "max-uploaded-photos": 5
}
```

This keeps both values within the \[0, 30\] boundary.

## Pro Tip

If you're dynamically generating Flow JSON, add a validation layer to check these ranges before deployment. It'll save you from unnecessary debug cycles and publishing failures.

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.
---

