Skip to content

DataError: value too long for type character varying(100)

Sentry Issue: ARKINDEX-BACKEND-8N

StringDataRightTruncation: value too long for type character varying(100)

  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)

DataError: value too long for type character varying(100)

(21 additional frame(s) were not displayed)
...
  File "django/db/backends/utils.py", line 66, in execute
    return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
  File "django/db/backends/utils.py", line 75, in _execute_with_wrappers
    return executor(sql, params, many, context)
  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)

A commit was pushed on the horae-exporter repo, triggering the Arkindex webhook which tried to create a new Repository import for this repo. It gave it a 101-character long name ('Import 1fd898d406ebf7754ebab2d0cd75c57e13761417 from https://gitlab.com/teklia/workers/horae-exporter'), but the name field only holds 100 characters, causing this error.