#349 — [Bug]: ‘Integration is already added’ error, while adding one after a cleanup

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2025-05-19 · Updated: 2025-09-15

Description

Steps to reproduce

No dedicated steps to reproduce Under some circumstances it’s become impossible to add an integration with the type that previously was used even if all integrations were removed previously (with pause between steps)

Take a look at trace in trace-reader

UI_smoke_logOut-user_can_log_out_from_the_homepage-trace.zip

Expected behavior

It should allow to add an integration

Actual behavior

it returns an error

{
  "detail": "Failed to create integration '{'source_type': 'Quickbooks Online', 'mediator_type': 'Rutter', 'public_token': None, 'start_job_type': 'reload', 'name': 'Dummy integration 5', 'link_url': 'https://dashboard.rutterapi.com/connections/9c1b07e1-cb22-4211-b686-440b94ce1edd/progress'}' for tenant 'Dmmytnnt5x' on BusinessData service via 'http://ca-stg-businessdata-eastus/api/v1/tenants/Dmmytnnt5x/integrations': {\"detail\":\"Rutter c4587451-207a-4825-8721-0e427f1173f7 integration is already added.\"}"
}

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets