{"record":{"id":"d6f8228499e6144e","repo":"krayin/laravel-crm","slug":"wrong-columns-number","errorCode":"wrong_columns_number","errorMessage":"wrong_columns_number","messagePattern":"wrong_columns_number","errorType":"error_code","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"packages/Webkul/DataTransfer/src/Helpers/Sources/AbstractSource.php","lineNumber":66,"sourceCode":"     * Checks if current position is valid.\n     */\n    public function valid(): bool\n    {\n        return $this->currentRowNumber !== -1;\n    }\n\n    /**\n     * Read next line from source.\n     */\n    public function current(): array\n    {\n        $row = $this->currentRowData;\n\n        if (count($row) != $this->totalColumns) {\n            if ($this->foundWrongQuoteFlag) {\n                throw new \\InvalidArgumentException(AbstractImporter::ERROR_CODE_WRONG_QUOTES);\n            } else {\n                throw new \\InvalidArgumentException(AbstractImporter::ERROR_CODE_COLUMNS_NUMBER);\n            }\n        }\n\n        return array_combine($this->columnNames, $row);\n    }\n\n    /**\n     * Read next line from source.\n     */\n    public function next(): void\n    {\n        $this->currentRowNumber++;\n\n        $row = $this->getNextRow();\n\n        if ($row === false || $row === []) {\n            $this->currentRowData = [];\n","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/krayin/laravel-crm/blob/13d6988cda8d69ece45ee1890effc90a7f21cdc1/packages/Webkul/DataTransfer/src/Helpers/Sources/AbstractSource.php#L48-L84","documentation":"Error \"wrong_columns_number\" thrown in krayin/laravel-crm.","triggerScenarios":"Thrown at packages/Webkul/DataTransfer/src/Helpers/Sources/AbstractSource.php:66 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":"13d6988cda8d69ece45ee1890effc90a7f21cdc1","analyzedAt":"2026-08-17T00:58:29.000Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}