When I search the catalog via the API, I only find one ITEM_VARIATION with sku value listed, not two.
When I retrieve the ITEM via the API, I only see each unit variation appear once, not duplicated.
I am running an automated process that updates unit variations based on changes in an external database, but it is designed only to update attribute values and should not be adding any unit variations.
I am reluctant to make changes via the dashboard without understanding what is going on, but I did test with a similar item and was able to delete the apparently duplicate instance. The behavior was weird in that deleting the second variation made both disappear from the edit screen, but when I exited the edit screen and clicked the Discard Changes button, the duplicated variation disappeared and the original remained.
This is unexpected and disturbing behavior and I am eager to understand where the problem is.
Please let me know if you need any additional details.
Did this happen to only the one item or have you seen this with multiple items. I haven’t been able to replicate the issue. Also if you inspect the page are their any console errors or messages?
Okay, great! What are the steps to reproduce. Do you have the item open on the Dashboard then programmatically update the item and then you see the duplicates? Or do you update the item then go to Dashboard and when you click on the item you see the duplicate?
Actually I have a lot of plates spinning, so I haven’t had time to replicate the steps.
I discovered this by spot checking items, which I do periodically. The updates are event driven off changes to the other database and just happen when something changes.
When I first noticed this problem on Sunday, it seemed to correct itself about an hour after I noticed it. Today the duplicates seem to be sticking around, and I haven’t messed with them in case that aids your research.
I am happy to do any sequence that might be helpful.