Problem with Event-Import

Dear Indico-Administrators,

i’ve migratet an older event from 2.x to a new server running 3.3.3
Everything worked fine until the user deleted this imported event.

From now on it’s not possible to import the event again, always getting the same error.
It seems there is something left over from the deleted event.

Here is the error message:
Traceback (most recent call last):
File “/opt/indico/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py”, line 1910, in _execute_context
self.dialect.do_execute(
File “/opt/indico/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py”, line 736, in do_execute
cursor.execute(statement, parameters)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint “uq_forms_uuid”
DETAIL: Key (uuid)=(a8efda37-746a-4069-a067-83df4ed7f394) already exists.

Any advice on how to delete the form with the given uuid?

Thanks, Stefan

probably easiest directly in the database.

Problem fixed with Indico Shell.

e = Event.get(“Event-Number”)
e.is_deleted = False
db.session.commit()

Thanks to all!

1 Like