diff --git a/lib/Service/RowService.php b/lib/Service/RowService.php index 954d943bec..5b634a3330 100644 --- a/lib/Service/RowService.php +++ b/lib/Service/RowService.php @@ -877,7 +877,7 @@ public function importRow(Table $table, array $row): int { */ private function validateColumnValueLimits(Column $column, $value): void { $textMaxLength = $column->getTextMaxLength(); - if ($textMaxLength !== null && is_string($value) && mb_strlen($value) > $textMaxLength) { + if ($textMaxLength !== null && $textMaxLength >= 0 && is_string($value) && mb_strlen($value) > $textMaxLength) { throw new BadRequestError('Value for column ' . $column->getTitle() . ' exceeds maximum length of ' . $textMaxLength); } $numberMin = $column->getNumberMin();