Hi,
I am getting some issue to update the SKU of product Variant on Akeneo CE 3.0.61 version. i am getting below issue during updating an existing Product Variant.
Cannot set value "[medium]" for the attribute axis "pet_toy_sizes" on variant product "DS-CANTOYPINK-M1", as the variant product "DS-CANTOYPINK-M" already has this value
Please let me know how can we update the existing product SKU's? Please find the attched screenshot and system info file.
akeneo-pim-system-info_2020-01-21_15_03.txt

Is it a bug or Akeneo Didn't allow to update the variant SKu's?
yes, the Same issue we are facing.
Hello
It seems like you are trying to set a medium size on a product that already have a variant with this size. In fact PIM does not allow you to have 2 variants with the same size on the same model color : DS-CANTOYPINK-M and the new one DS-CANTOYPINK-M1
Hope that it is clear for you.
Hi @ZMes ,
No, I am trying to update the SKU of the already created product with Size Medium Variant. Sku DS-CANTOYPINK-M is already there and I just want to update that SKU.
Hi,
Ah ok, this action is not allowed by the PIM, as the SKU is a unique identifier in the database. So to rename it, you need to delete that variant and re-import/re-create it with the new name.
Hi @vmishra341,
If I understand well, you have one variant CANTOYPINK-M(lets call it A) and one variant CANTOYPINK-M1 (B).
And you want to edit B to give him the same sku than A, which is not possible because SKU is a unique identifier. Am i right?
Hi @jmleroux,
The issue is already with the Akeneo demo instance. you can can check on it.
Basically the issue is when you want to update the variant product SKU then you will get an error.
I got the same issue.
I have the variant where the axis is Color and Size. The current variant which SKU is 43656216 looks good. its beige and small. I want to keep the variant axis as it is, but I want to fix the SKU code from 43656216 to 49532016 which is the correct code.
Cannot set value "[beige],[s]" for the attribute axis "color,size" on variant product "49532016", as the variant product "43656216" already has this value
Since the SKU field allow edit, not a readyonly field, I assume it was supposed to allow me to edit it.
My env:
Akeneo CE 3.2.21
PHP 7.2.24