Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8084501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:49:17+00:00 2026-06-05T17:49:17+00:00

I am facing a problem – can not update the price of the variant

  • 0

I am facing a problem – can not update the price of the variant using the ShopifyAPI..

while updating the price of the variant, it is giving the error

@remote_errors=#<\ActiveResource::ResourceInvalid: Failed. Response code = 422. Response message = Unprocessable Entity.>, @validation_context=nil, @errors=#<\ActiveResource::Errors:0x000000029eb1d0 …>>, @messages={:base=>[“Options are not unique”]}

‘\’ after ‘<‘ is required to show the error, otherwise stack overflow is hiding the error.

as required on another question
on production store, the request id is “38f5c3b3b7bdf4433724a845c6df4571”
on test store, the request id is “6050f165586b631e81b840dc0e1e6807”

More Findings

variant price change on test store

p = ShopifyAPI::Product.last  
v = p.variants.first  
v.price = "8.00"  
v.save  

initial price of variant = “9.00”
returns false, with error @messages={:base=>[“Options are not unique”]}
request id 978ad18483f40ff3946df18df0a9d1d8
.
.

variant price change on live store

p = ShopifyAPI::Product.first  
p.variants[0].price = "24.65"  
p.save  

initial price of variant = “25.65”
return true, but price is not changed
request id a9a798b631e3dd10fc81b723f2883af1
.
.

variant price change through product on test store

p = ShopifyAPI::Product.first  
p.variants[0].price = "8.00"  
p.save  

initial price of variant = “7.00”
return true and price is updated
request id 7d995f6f6ed3bf515e69a1640f27f44a
.
.

variant price change through product on live store

p = ShopifyAPI::Product.last  
v = p.variants.first  
v.price = "4.00"  
v.save  

initial price of variant = “3.00”
returns false, with error @messages={:base=>[“Options are not unique”]}
request id c6aaa5b65576eb4ec0d89715d25b787e

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:49:18+00:00Added an answer on June 5, 2026 at 5:49 pm

    This is a bug in ActiveResource 3.1+.

    I have opened an ActiveResource pull request, but I am still awaiting a response at the moment.

    I have committed a workaround for this bug in shopify_api v3.0.1, so upgrading this gem will fix this issue for you issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing problem while calling the alert box. Can I know what is
I am facing problem while implementing https with webHttpBinding. I am getting below error
I am facing problem while GWT compilation. I am using ANT build file in
I am facing problem While using watch in gdb . I am trying to
I am facing problem while setting focus in EdiText. Below is my EditText property.
I am facing problem with UIPanGestureRecognizer. suppose i am adding 10 button dynamicaly using
I am facing problem in getting Facebook data I am using Facebook SDK for
I am facing problem while aligning two text, one in center and other text
Im facing problem with poor performance of css prompting mechanism. Can I dissable this
Hope you all fine.I am facing some sort of problem while passing multiple parameters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.