Hi,
I’m experiencing something that looks like a bug to me. It looks like we can’t create a product with an sku that has been previously deleted.
- I have created an order with that payload :
RequestId : 616eb23533b3cb30c90cda34
{
"barcode": "321874127",
"name": "My product to demonstrate a bug",
"price": "19.00",
"productNote": "This product is just here to demonstrate a bug",
"shipHeroCustomerId": "{{ _.shipHeroCustomerId }}",
"shipHeroWarehouseId": "{{ _.shipHeroWarehouseId }}",
"sku": "a_fake_sku",
"tags": [
"fake-product"
]
}
-
I have deleted it in the dashboard (Bulk delete action in the UI)
-
The product is still displayed with the query “products” (but is not associated to the warehouse anymore):
{
products(sku: "a_fake_sku") {
complexity
data {
edges {
node {
id
barcode
name
legacy_id
warehouse_products {
id
on_hand
sku
}
}
}
}
}
}
Response:
{
"data": {
"products": {
"complexity": 101,
"data": {
"edges": [
{
"node": {
"id": "UHJvZHVjdEluZm86Mjg0Mzg0MzEw",
"barcode": "321874127",
"name": "My product to demonstrate a bug",
"legacy_id": 284384310,
"warehouse_products": []
}
}
]
}
}
}
}
-
I can update it
-
I can’t delete it :
{
"errors": [
{
"message": "Not product with sku a_fake_sku exists",
"operation": "product_delete",
"field": "product_delete",
"request_id": "616eb54e7599828c4dfc182f",
"code": 5
}
],
"data": {
"product_delete": null
}
}
- I can’t create a new one:
{
"errors": [
{
"message": "A product with sku a_fake_sku already exists",
"operation": "product_create",
"field": "product_create",
"request_id": "616eb23533b3cb30c90cda34",
"code": 6
}
],
"data": {
"product_create": null
}
}
- I can’t change the sku of an other product to this one in the UI:
It looks like I can’t use that sku anymore.
Is there a way to create again a product with a sku that has existed in the past ?
Thank you