unopim/unopim · error · ModelNotFoundException

Product with sku ":sku" could not be found

Error message

Product with sku ":sku" could not be found

What it means

Error "Product with sku ":sku" could not be found" thrown in unopim/unopim.

Source

Thrown at packages/Webkul/AdminApi/src/Http/Controllers/API/Catalog/MediaFileController.php:471

        }

        $product->values = $values;
        $product->save();
    }

    /**
     * Finds a product by its SKU and throws a ModelNotFoundException if not found.
     *
     * @param  string  $sku  The SKU of the product to be found.
     * @return Product The found product.
     *
     * @throws ModelNotFoundException If the product is not found.
     */
    protected function findProductOr404(string $sku)
    {
        $product = $this->productRepository->findByField('sku', $sku)->first();
        if (! $product) {
            throw new ModelNotFoundException(
                trans('admin::app.catalog.products.product-not-found', ['sku' => $sku])
            );
        }

        return $product;
    }
}

View on GitHub (pinned to c27a402253)

When it happens

Trigger: Thrown at packages/Webkul/AdminApi/src/Http/Controllers/API/Catalog/MediaFileController.php:471 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of unopim/unopim@c27a402253 (2026-08-21). Data as JSON: /api/errors/c7043924d57f1157. Report an issue: GitHub.