krayin/laravel-crm · error · InvalidArgumentException
wrong_columns_number
wrong_columns_number
Error message
wrong_columns_number
What it means
Error "wrong_columns_number" thrown in krayin/laravel-crm.
Source
Thrown at packages/Webkul/DataTransfer/src/Helpers/Sources/AbstractSource.php:66
* Checks if current position is valid.
*/
public function valid(): bool
{
return $this->currentRowNumber !== -1;
}
/**
* Read next line from source.
*/
public function current(): array
{
$row = $this->currentRowData;
if (count($row) != $this->totalColumns) {
if ($this->foundWrongQuoteFlag) {
throw new \InvalidArgumentException(AbstractImporter::ERROR_CODE_WRONG_QUOTES);
} else {
throw new \InvalidArgumentException(AbstractImporter::ERROR_CODE_COLUMNS_NUMBER);
}
}
return array_combine($this->columnNames, $row);
}
/**
* Read next line from source.
*/
public function next(): void
{
$this->currentRowNumber++;
$row = $this->getNextRow();
if ($row === false || $row === []) {
$this->currentRowData = [];
View on GitHub (pinned to 13d6988cda)
When it happens
Trigger: Thrown at packages/Webkul/DataTransfer/src/Helpers/Sources/AbstractSource.php:66 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of krayin/laravel-crm@13d6988cda (2026-08-17).
Data as JSON: /api/errors/d6f8228499e6144e.
Report an issue: GitHub.