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 9

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 11 (11)

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 9

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
909 23 184

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 9

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

 

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
6 0 1

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.

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.

Ashish_Shah
Shopify Staff
22 7 9

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