Good morning everyone,
I’m working on a B2B website for Decathlon, which is on Legacy, and when we try to access some products they are returning a 500 error with the message: “Something went wrong”. Could this be a product registration issue?
Problematic products:
@guycanella it seems like these products don’t exist in the catalog. Where did you pull those links from?
We took a look at the internal logs related to the 500 error message displayed and saw that the specific error appearing is “Product variation name not found”. As you had suspected, it’s a product registration error, more specifically with some of the product’s SKUs.
This error appears on the Get Product’s SKUs by Product ID endpoint of the Catalog API for product 209, which is the ID corresponding to the first link you shared:
curl --location 'https://decathlonpro.vtexcommercestable.com.br/api/catalog_system/pub/products/variations/209' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'
Which returns the following response:
"Nome da variação do produto não encontrado."
After a category tree reorganization, if any variation is associated with the Product / SKU, this error may appear. See:
https://help.vtex.com/known-issues/ki--738108
Unfortunately, the root cause of the issue is not yet fully understood by our team. Based on what we validated with engineering, it seems to be a matter of removing the saved value from a problematic specification (or a combination of them). That is, removing field by field to see if it’s simply a specification that shouldn’t be there anymore and leaving it blank.
Good afternoon @georgebrindeiro, sorry for the late reply.
Well, we’re evaluating here what the best solution would be, but I’d like to thank you for your response. It helped us a lot. Thank you very much!