unopim/unopim · error · UnprocessableEntityHttpException

Parent filter value "%s" is not a valid configurable product

Error message

Parent filter value "%s" is not a valid configurable product SKU.

What it means

Error "Parent filter value "%s" is not a valid configurable product SKU." thrown in unopim/unopim.

Source

Thrown at packages/Webkul/AdminApi/src/ApiDataSource/Catalog/ProductDataSource.php:244

    /**
     * Retrieves the ID of a product based on its code.
     *
     * The lookup must match a configurable product AND the given SKU: matching on type
     * alone returns any configurable product and masks an invalid SKU.
     *
     * @return int|null
     *
     * @throws ModelNotFoundException If a product with the given code is not found.
     */
    protected function getParentIdByCode(Builder $queryBuilder, string $sku)
    {
        $parentQuery = clone $queryBuilder;
        $parentQuery->where('products.sku', $sku)
            ->where('products.type', config('product_types.configurable.key'));
        $parentId = $parentQuery->first()?->id;

        if (! $parentId) {
            throw new UnprocessableEntityHttpException(
                sprintf('Parent filter value "%s" is not a valid configurable product SKU.', (string) $sku)
            );
        }

        return $parentId;
    }

    /**
     * Filters the product query builder by the attribute family code.
     *
     *
     * @return Builder
     */
    protected function filterByFamily(Builder $scopeQueryBuilder, string $operator, array $code)
    {
        $scopeQueryBuilder->whereHas('attribute_family', function ($query) use ($operator, $code) {
            if ($this->operators['IN_LIST'] == $operator) {
                $query->whereIn('attribute_families.code', $code);

View on GitHub (pinned to c27a402253)

When it happens

Trigger: Thrown at packages/Webkul/AdminApi/src/ApiDataSource/Catalog/ProductDataSource.php:244 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/fee60f7a3a89aeee. Report an issue: GitHub.