--- title: productSet mutation now validates 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/productset-limit-for-inventory-quantities md: https://shopify.dev/changelog/productset-limit-for-inventory-quantities.md --- [Back to Developer changelog](https://shopify.dev/changelog) October 1, 2025 Tags: * Admin GraphQL API * 2025-10 # `productSet` mutation now validates `inventoryQuantities` limits ## What's changing? The [`productSet`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/productSet) mutations now enforces 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": { "productSet": { "userErrors": [{ "code": "INVENTORY_QUANTITIES_LIMIT_EXCEEDED", "field": ["input", "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-productset-mutation), providing both cost optimization and input validation for the `productSet` mutation to handle complex products efficiently. * 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 `inventoryQuantities` limits](https://shopify.dev/changelog/inventoryquantities-limit-in-mutations) as well.