Skip to content

Polygon size constraint violated by valid polygons

Sentry Issue: ARKINDEX-BACKEND-81

Zone.DoesNotExist: Zone matching query does not exist.
  File "arkindex/documents/serializers/elements.py", line 443, in create
  File "django/db/models/query.py", line 431, in get
    self.model._meta.object_name

CheckViolation: new row for relation "images_zone" violates check constraint "zone_polygon_size"
DETAIL:  Failing row contains (4b44ce28-1866-4b22-87ae-7a3d255ed4b7, 2021-02-02 11:49:32.024293+00, 2021-02-02 11:49:32.024317+00, 0d4da02b-7049-4b00-8081-df9efe71d874, 0102000000A500000000000000009880400000000000B081400000000000B881...).

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

IntegrityError: new row for relation "images_zone" violates check constraint "zone_polygon_size"
DETAIL:  Failing row contains (4b44ce28-1866-4b22-87ae-7a3d255ed4b7, 2021-02-02 11:49:32.024293+00, 2021-02-02 11:49:32.024317+00, 0d4da02b-7049-4b00-8081-df9efe71d874, 0102000000A500000000000000009880400000000000B081400000000000B881...).

(23 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)