# Flow "Update Operation" M2O Truncates Large Payloads (~150 Items) Despite Full Preview

**URL:** <https://community.directus.com/t/flow-update-operation-m2o-truncates-large-payloads-150-items-despite-full-preview/1723>\
**Category:** Help\
**Tags:** flows\
**Created:** [December 20, 2025, 1:51am UTC](https://community.directus.com/t/flow-update-operation-m2o-truncates-large-payloads-150-items-despite-full-preview/1723 "2025-12-20T01:51:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdallah](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/abdallah/32/105_2.png) [@Abdallah](https://community.directus.com/u/Abdallah)\
**Post date:** [December 20, 2025, 1:51am UTC](https://community.directus.com/t/flow-update-operation-m2o-truncates-large-payloads-150-items-despite-full-preview/1723/1 "2025-12-20T01:51:17Z")

</div>

**Current Setup & Issue Context:**  
We have an `orders` collection with an M2O relation to `order_items`. Users upload Excel files (~2500 lines) containing order items. A flow processes this:

1. Extracts/parses Excel into 154 unique `order_items`
2. Updates single `order` record with full `order_items` M2O array (visible complete in operation preview/logs)

**The Problem:**  
“Update Data” operation receives full 154-item array but **silently truncates** based on payload complexity:

- Rich data (many fields) → ~100 items saved
- Reduced parameters → All 154 saves successfully
- No errors, no warnings—just partial persistence

Can someone explains why this happening? I can’t find any env variable controls such thing.

---

<div class="post-metadata">

**Author:** ![jonathanwagner](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/jonathanwagner/32/47_2.png) [@jonathanwagner](https://community.directus.com/u/jonathanwagner)\
**Post date:** [December 22, 2025, 3:39pm UTC](https://community.directus.com/t/flow-update-operation-m2o-truncates-large-payloads-150-items-despite-full-preview/1723/2 "2025-12-22T15:39:38Z")

</div>

The env parameter you are looking for is: `QUERY_LIMIT_DEFAULT`

Recommend you don’t change this value as it is there to protect the project for accidental crash with large queries. Better to update your flow to process the data in batches or use the limit parameter to increase the API processing limits.
