{"record":{"id":"d8895df9655769ac","repo":"yiisoft/yii2","slug":"namespace-namespace-not-found-in-migrationna","errorCode":null,"errorMessage":"Namespace '{$namespace}' not found in `migrationNamespaces`","messagePattern":"Namespace '(.+?)' not found in `migrationNamespaces`","errorType":"exception","errorClass":"yii\\console\\Exception","httpStatus":null,"severity":"error","filePath":"framework/console/controllers/BaseMigrateController.php","lineNumber":735,"sourceCode":"\n        return [$namespace, $class];\n    }\n\n    /**\n     * Finds the file path for the specified migration namespace.\n     * @param string|null $namespace migration namespace.\n     * @return string migration file path.\n     * @throws Exception on failure.\n     * @since 2.0.10\n     */\n    private function findMigrationPath($namespace)\n    {\n        if (empty($namespace)) {\n            return is_array($this->migrationPath) ? reset($this->migrationPath) : $this->migrationPath;\n        }\n\n        if (!in_array($namespace, $this->migrationNamespaces, true)) {\n            throw new Exception(\"Namespace '{$namespace}' not found in `migrationNamespaces`\");\n        }\n\n        return $this->getNamespacePath($namespace);\n    }\n\n    /**\n     * Returns the file path matching the give namespace.\n     * @param string $namespace namespace.\n     * @return string file path.\n     * @since 2.0.10\n     */\n    private function getNamespacePath($namespace)\n    {\n        return str_replace('/', DIRECTORY_SEPARATOR, Yii::getAlias('@' . str_replace('\\\\', '/', $namespace)));\n    }\n\n    /**\n     * Upgrades with the specified migration class.","sourceCodeStart":717,"sourceCodeEnd":753,"githubUrl":"https://github.com/yiisoft/yii2/blob/66f00d18a29b520f85e8e8f1e32d1e7e7b556cac/framework/console/controllers/BaseMigrateController.php#L717-L753","documentation":"Error \"Namespace '{$namespace}' not found in `migrationNamespaces`\" thrown in yiisoft/yii2.","triggerScenarios":"Thrown at framework/console/controllers/BaseMigrateController.php:735 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":"66f00d18a29b520f85e8e8f1e32d1e7e7b556cac","analyzedAt":"2026-08-17T05:17:23.470Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}