Re: Variant limit still 100?

Solved

Variant limit still 100?

JuusoPalander
Shopify Partner
6 0 1

I'm trying to create a product with 274 variants with Admin GraphQL API version 2024-04, but productVariantsBulkCreate responds with error "message": "Exceeded maximum number of variants allowed" for each input line.

I tried running the mutation in chunks of 250 and 100 but same problem occurs for both as well.

 

I then tried creating variants to the product so that the total number of variants is 100 or less to make sure that the mutation actually works, and it seems to work ok if the total number of variants doesn't exceed 100.

query ShopResourceLimits {
  shop {
    resourceLimits {
      maxProductVariants
      maxProductOptions
    }
  }
}

Still returns

{
	"data": {
		"shop": {
			"resourceLimits": {
				"maxProductVariants": 100,
				"maxProductOptions": 3
			}
		}
	},
}
Accepted Solution (1)
Ashish_Shah
Shopify Staff
22 7 11

This is an accepted solution.

Hello @JuusoPalander 

Currently all shops have a variant limit at 100.   We will be raising the limits for all shops in early 2025.  

Developers have to migrate their apps to the new APIs (breaking changes) released in 2024-04.  At the end of the migration period in early 2025, we will be raising the variant limit for shops.  If we raise the variant limit on shops right now,  lots of apps on previous API versions will face errors.

 

You can try out the higher variant limit on dev stores by setting up a developer preview. See instructions here:

https://shopify.dev/docs/api/release-notes/developer-previews#increased-variants-developer-preview

 

ALIAS | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 26 (26)

JuusoPalander
Shopify Partner
6 0 1

https://shopify.dev/docs/api/admin/migrate/new-product-model#who-needs-to-migrate states that:


"Any merchant using custom apps that are built with these deprecated APIs will not be able to increase their variant limit past 100."

What constitutes as "built with"? Does Shopify track the actual API calls to the deprecated APIs or is there some configuration in custom apps other than webhook API version?


Ashish_Shah
Shopify Staff
22 7 11

This is an accepted solution.

Hello @JuusoPalander 

Currently all shops have a variant limit at 100.   We will be raising the limits for all shops in early 2025.  

Developers have to migrate their apps to the new APIs (breaking changes) released in 2024-04.  At the end of the migration period in early 2025, we will be raising the variant limit for shops.  If we raise the variant limit on shops right now,  lots of apps on previous API versions will face errors.

 

You can try out the higher variant limit on dev stores by setting up a developer preview. See instructions here:

https://shopify.dev/docs/api/release-notes/developer-previews#increased-variants-developer-preview

 

ALIAS | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

jam_chan
Shopify Partner
920 23 188

The partner email stated that some early users would try the 2,000 variants feature in June 2024. There is a resource limit for maximum variants and maximum options. I just wonder if I should store this limit in my database. Will the users only upgrade from 100 to 2,000 variants but not downgrade back to 100 variants?

 

If the resource limit goes up and down, it would be harder to handle this change.

BYOB - Build Your Own Bundles, SPO - SEO App to research keywords & edit social link preview
sdservices
Shopify Partner
12 1 1

Hello @Ashish_Shah 

We created a dev store with Global Nav preview but it doesnt have the 2000 variant limit, still only has 100 variants. Let us know what we should do. We created this store around a month ago, well after the 2000 variant limit for dev preview stores was announced. What can we do to test this out?

Ashish_Shah
Shopify Staff
22 7 11

Can you send me the dev store link xyz.myshopify.com?

ALIAS | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sdservices
Shopify Partner
12 1 1
sdservices
Shopify Partner
12 1 1

I got the 2000 variants by creating a new dev store and selecting the "Extended Variants" preview. I was able to create 2000 variants with just one option but when I open the product page, it just gives a page load error.

sdservices_0-1713971848073.png

 

AsafGitai
Shopify Staff
95 15 37

Hi @sdservices ,

 

Is still the case?

chrismeats
Shopify Partner
1 0 1

This is confusing, the documentation here:

https://shopify.dev/changelog/new-graphql-product-apis-that-support-up-to-2000-variants-now-availabl...

and Here:

https://shopify.dev/docs/api/admin/migrate/new-product-model

states

"These new APIs increase per-product variant support from our historical max of 100 to a new limit of 2000."

But it sounds like now this really isnt available until early 2025? I have been working on switching our app over to graphql so we can take advantage of them but it seems we have to way 6+ months before it is actually available?

Is that correct?

Tozell
Shopify Partner
11 0 4

exactly what I was just discovering...

https://shopify.dev/docs/apps/build/graphql/migrate/new-product-model/add-data

 

"You can create up to 250 variants in a single batch using this mutation"  nowhere at all does it state this is not yet deployed so I only discovered it today when trying to insert more than 100 to be faced with "Exceeded maximum number of variants allowed"

So yes it seems we have to wait 6+ months for Shopify to deploy the working code base to go with the public documentation.. This is a serious fail.

AsafGitai
Shopify Staff
95 15 37

Hi @Tozell & @chrismeats ,

Just to make sure, currently you can test out 2K variants in a dev store.

AsafGitai_0-1723491945538.png

 

 

drycleanonly
Visitor
1 0 0

Have there been any updates on this? Specifically for the new Dawn 15.0 release, that says it will support this (upon release)? I am a jeweler and I work with birthstones a lot. Often, pieces will have so many variants that it would be counterproductive, confusing, and redundant for me to try and do all of my variants in the form of metafields. For example, I have one necklace that I make that is 2 stones in 14k gold, with the option for either yellow or white gold, and then 19 options each for the stone type for top stone and bottom stone (12 birth stones with natural and lab-grown options). This equates to 722 variants. I know that making this feature available to everyone flat out would cause errors for shops that aren't set up for it. Would they maybe consider an option to give shop creators a choice / button to migrate / implement that option now if they are already on Dawn 15.0? Right now I have to make pieces like this in a very inefficient way, because even having 12 birthstone options alone x 2 is too many variants at 144. I currently take a deposit for the necklace and then have customers email me their stone choices. I then have to send them a second invoice after they have chosen their stones. I am sure that this prevents a lot of people from buying that would buy if they were able to just select their options from a drop down and see a price rather that collaborate with me back and forth.

oreoorbitz
Shopify Partner
260 31 132

Btw if you are a Shopify plus user, you can request to have the variant limit increased to 200. The options are still limited to 3 though. They might also stop doing it if too many people ask.

Available for pagespeed consulting
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949
gonzi76
Tourist
4 0 2

why documentation is not saying any word about it? we can only find "

When run in synchronous mode, the productSet mutation has an input limit of 100 variants. If you anticipate any of your use cases requiring support for more than 100 variants, please use the mutation in asynchronous mode (default)."

 

sorry but, looks like a joke

AsafGitai
Shopify Staff
95 15 37
Tozell
Shopify Partner
11 0 4

What about Bulk operations???????????

 

So I updated our code base to 2024-07  altered variant SKUs to now be in the inventoryItem sub set which is all fine, everything works right up to


{"data":{"productVariantsBulkCreate":{"productVariants":[],"userErrors":[{"field":["variants":"0"],"message":"Exceeded maximum number of variants allowed" ~

["date"]=>
 string(29) "Tue, 13 Aug 2024 16:46:51 GMT"
 ["content-type"]=>
 string(31) "application/json; charset=utf-8"
 ["x-sorting-hat-podid"]=>
 string(3) "313"
 ["x-sorting-hat-shopid"]=>
 string(11) "71807500602"
 ["vary"]=>
 string(15) "Accept-Encoding"
 ["referrer-policy"]=>
 string(24) "origin-when-cross-origin"
 ["x-frame-options"]=>
 string(4) "DENY"
 ["x-shopid"]=>
 string(11) "71807500602"
 ["x-shardid"]=>
 string(3) "313"
 ["x-stats-userid"]=>
 string(0) ""
 ["x-stats-apiclientid"]=>
 string(12) "119656742913"
 ["x-stats-apipermissionid"]=>
 string(12) "711775060282"
 ["x-shopify-api-version"]=>
 string(7) "2024-07"
 ["content-language"]=>
 string(2) "en"
 ["strict-transport-security"]=>
 string(15) "max-age=7889238"
 ["x-request-id"]=>
 string(47) "5c49d68a-2d8f-4864-86ae-a92b434a4cae-1723567611"

 

 

 

vinidi33
Shopify Partner
1 0 0

Hello,
It is written in the documentation https://shopify.dev/docs/apps/build/graphql/migrate/new-product-model/sync-data#create-a-product-wit...

" The productSet mutation has an input limit of 2K variants when run asynchronously and only 100 variants when run synchronously "

And here: https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/productSet
"When run in synchronous mode, the productSet mutation has an input limit of 100 variants. If you anticipate any of your use cases requiring support for more than 100 variants, please use the mutation in asynchronous mode (default)."

So I used the asynchronous mutation, but I have this return code:
'Can only specify a maximum of 100 product variants'

How is this possible ?

Tozell
Shopify Partner
11 0 4

because the documentation is wrong and doesn't line up with their early 2025 release (so they say). But nobody at Shopify has bothered to update the documentation to reflect the fact its for testing only and not production.

TK
New Member
6 0 0

We are still waiting for it. And it's annoying, we've started using another platform only because of this variant limit.

AsafGitai
Shopify Staff
95 15 37

Hi @TK ,

 

Am sorry to hear. Just to make sure, currently you can test out 2K variants in a dev store.
For context, we released in dev preview early to allow most partners to have time to update their apps before merchants get access and demand support.

 
 

AsafGitai_2-1723491599853.png

 

TK
New Member
6 0 0

Thank you but testing doesn't work for us. This should be done soon but you are saying it will be available in early 2025.

JoesToes
Excursionist
18 1 6

Which platform please?

 

Galuyoo
Shopify Partner
1 0 0

Can i ask how much the new value of variant limit will be? And when is this update dropping is it still early 2025?

Thank you

Ashish_Shah
Shopify Staff
22 7 11

If a merchant has a custom app installed which is still calling the deprecated APIs, we will take that as a signal that the app is built using deprecated APIs. 

 

 

ALIAS | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

abishekrs
Shopify Partner
25 3 8

How does this work if I am using a Private App on a store and I am using the correct GraphQL API as recommended here https://shopify.dev/docs/apps/build/graphql/migrate/new-product-model/api-updates#deprecated-graphql...

 

Will I still not be able to create 100+ variants?

Tozell
Shopify Partner
11 0 4

Nope,  the live documentation says you can, their newsletter updates to dev's earlier this year said you can.

We use a custom App to a bespoke ERP/WMS system using only graphQL on 2024-07  and we still cannot go beyond 100. The documentation still hasn't been updated to reflect that its not available yet,  saying you can have something then not giving it .. to then say "oh yea sorry you can't" but then still not update the live documentation to prevent others getting confused as well its two major mistakes tripping up devs.

However given the response times of the graphQL API gateway for products information with separate calls to acquire variations already running slower than old AUTH method,  compounding another 900 potential variations onto 1 product would only make it run even slower.

So now most of us suspect in private communities that the load on the API that was meant to be reduced has in fact been in increased multiple times over. 👍 super