---
title: >-
  productVariantsBulkCreate and productVariantsBulkUpdate mutations now validate
  inventoryQuantities limits - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: 'https://shopify.dev/changelog/posts/inventoryquantities-limit-in-mutations'
  md: >-
    https://shopify.dev/changelog/posts/inventoryquantities-limit-in-mutations.md
metadata:
  effectiveApiVersion: 2025-10
  affectedApi:
    - displayName: GraphQL Admin API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2025-09-17T13:12:33-04:00'
  postedAt: '2025-10-01T00:00:00-04:00'
  updatedAt: '2025-09-29T19:21:31-04:00'
  effectiveAt: '2025-09-18T12:00:00-04:00'
---

October 1, 2025

# `productVariantsBulkCreate` and `productVariantsBulkUpdate` mutations now validate `inventoryQuantities` limits

DateOctober 1, 2025

Version[2025-10](https://shopify.dev/changelog?api_version=2025-10)

FlagsNew

SurfacesAPI

Affected APIs[GraphQL Admin API](https://shopify.dev/changelog?api_type=admin-graphql)

## What's changing?

The [`productVariantsBulkCreate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productVariantsBulkCreate) and [`productVariantsBulkUpdate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productvariantsbulkupdate) mutations now enforce validation limits on inventory quantities as part of supporting the increased variant limit from 100 to 2048 variants per product.

### Input Validation Limits

With the increase in maximum variants per product from 100 to 2048, the mutation now enforces a maximum limit of **50,000 inventory quantities** across all variants in a single mutation. This ensures reliable performance when managing products with many variants across multiple locations.

### Error response example

```json
{
  "data": {
    "productVariantsBulkCreate": {
      "userErrors": [{
        "code": "INVENTORY_QUANTITIES_LIMIT_EXCEEDED",
        "field": ["variants"],
        "message": "Input contains 51200 inventory quantities, which exceeds the limit of 50000"
      }],
      "product": null
    }
  }
}
```

## Why are we making this change?

### Support for 2048 Variants

* **Increased variant limit**: Products can now have up to 2048 variants (previously 100)
* **Reliable execution**: Ensures consistent performance when managing complex products

## Handling Large Inventory Updates

If you hit the 50,000 inventory quantity limit, you have several options:

1. **Batch your operations**: Split large operations into multiple smaller mutations
2. **Use `inventorySetQuantities`**: For updating inventory across many locations, use the [`inventorySetQuantities`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventorySetQuantities)
3. **Use bulk mutations**: For very large datasets, consider using [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports)

## Related Changes

* These changes are part of supporting the increased limit of 2048 variants per product. This validation complements the [dynamic complexity calculation](https://shopify.dev/changelog/dynamic-complexity-cost-for-productcreate-and-productupdate-mutations), providing both cost optimization and input validation for the `productSet` mutation to handle complex products efficiently.

* The [`productSet`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productSet) mutation now [enforces `inventoryQuantities` limits](https://shopify.dev/changelog/productset-limit-for-inventory-quantities) as well.
