Shopify Product API - Resoureced based limit considering previously deleted products.

Solved
CoreWix
Shopify Partner
11 0 2

We are using API to migrate data from our Magento platform and we deleted previously deleted around 39k product as wrong data.

Now we only imported 29k but reached to API resoureced based limit.

"Daily variant creation limit reached. Please try again later. See https://help.shopify.com/en/api/getting-started/api-call-limit for more information about rate limits and how to avoid them."

But this should be not applicable as we dont have active product more than 29k, so seems like Shopify API feature considering previously deleted products as well.

Looking forward for your reply.

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 134

Hi @CoreWix ,

 

The API resource limit starts at 50,000 product variants, not 50,000 products. Since you can have up to 100 variants per product, it is plausible that your store can have 29,000 products and well over 50,000 product variants. At which point, your store will definitely qualify for this resource based API limit and you will be restricted to making only 1000 new product variants per day.

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
CoreWix
Shopify Partner
11 0 2
We dont have any varient to products. So we only have 29k products so 29k
varient right now.

Seems something wromg with API resource limit calculation glitch.
0 Likes
CoreWix
Shopify Partner
11 0 2

We don't have need any variant to products. So 1 product to 1 varient, so we only have 29k products so 29k variant right now.

Seems something wrong with API resource limit calculation glitch. It may be considering deleted variant as well. We previously deleted 39k products.

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 134

Hi @CoreWix ,

 

Would you mind sending me the name and the 'myshopify.com' URL of the store in question here? That way I can check myself to see why this store is reaching this resource based limit. If you don't feel comfortable sharing this information via this thread, feel free to DM me this information.

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
CoreWix
Shopify Partner
11 0 2

Thank you @hassain  I found the issue, script created duplicated products. so product count reached to over 50k and thats why reached resource limit.

So I think if Shopify show product count somewhere then it would be easy to track such things. Please advise if there is something in backend.

If not then may be shopify development team have to consider so help to figure out things and store owner get idea howmany product they have right now.

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 134

This is an accepted solution.

Hi @CoreWix ,

 

That's great that you found the source of your issue!

 

It is simple to tell how many products are made on your store at any given time. If you are on the front-end and logged into the Shopify Admin, you can go to the URL of `https://store-name.myshopify.com/admin/products/count.json`. If you want to find out this information from your app running on the back-end, make the following GET request: `GET https://store-name.myshopify.com/admin/api/2020-04/products/count.json`. This information is documented clearly in our docs: https://shopify.dev/docs/admin-api/rest/reference/products/product?api[version]=2020-04#count-2020-0...

 

Also, if you find that your app is getting the error message of "Daily variant creation limit reached" and are being throttled by our API's resource rate limit, that is a good indicator that your store has more than 50,000 product variants. 

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes