{"record":{"id":"fee60f7a3a89aeee","repo":"unopim/unopim","slug":"parent-filter-value-s-is-not-a-valid-configurab","errorCode":null,"errorMessage":"Parent filter value \"%s\" is not a valid configurable product SKU.","messagePattern":"Parent filter value \"(.+?)\" is not a valid configurable product SKU\\.","errorType":"exception","errorClass":"UnprocessableEntityHttpException","httpStatus":422,"severity":"error","filePath":"packages/Webkul/AdminApi/src/ApiDataSource/Catalog/ProductDataSource.php","lineNumber":244,"sourceCode":"    /**\n     * Retrieves the ID of a product based on its code.\n     *\n     * The lookup must match a configurable product AND the given SKU: matching on type\n     * alone returns any configurable product and masks an invalid SKU.\n     *\n     * @return int|null\n     *\n     * @throws ModelNotFoundException If a product with the given code is not found.\n     */\n    protected function getParentIdByCode(Builder $queryBuilder, string $sku)\n    {\n        $parentQuery = clone $queryBuilder;\n        $parentQuery->where('products.sku', $sku)\n            ->where('products.type', config('product_types.configurable.key'));\n        $parentId = $parentQuery->first()?->id;\n\n        if (! $parentId) {\n            throw new UnprocessableEntityHttpException(\n                sprintf('Parent filter value \"%s\" is not a valid configurable product SKU.', (string) $sku)\n            );\n        }\n\n        return $parentId;\n    }\n\n    /**\n     * Filters the product query builder by the attribute family code.\n     *\n     *\n     * @return Builder\n     */\n    protected function filterByFamily(Builder $scopeQueryBuilder, string $operator, array $code)\n    {\n        $scopeQueryBuilder->whereHas('attribute_family', function ($query) use ($operator, $code) {\n            if ($this->operators['IN_LIST'] == $operator) {\n                $query->whereIn('attribute_families.code', $code);","sourceCodeStart":226,"sourceCodeEnd":262,"githubUrl":"https://github.com/unopim/unopim/blob/c27a402253ed2bcee0f3eb16319fa7fc5eec5ffd/packages/Webkul/AdminApi/src/ApiDataSource/Catalog/ProductDataSource.php#L226-L262","documentation":"Error \"Parent filter value \"%s\" is not a valid configurable product SKU.\" thrown in unopim/unopim.","triggerScenarios":"Thrown at packages/Webkul/AdminApi/src/ApiDataSource/Catalog/ProductDataSource.php:244 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c27a402253ed2bcee0f3eb16319fa7fc5eec5ffd","analyzedAt":"2026-08-21T04:19:34.141Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}