# Tenants mixup

This FAQ page collects operational notes for **Tenants mixup**.

This should not happen, but I see it is still sometime happening or maybe they are old interface errors coming only now to light. When you are editing a page and in another tab you change the tenant, saving the first page can lead to a mixup because you are saving in a different tenant. Unfortunately the browsers don't allow different security environment for each tab.

To detect if you have any of these mixup, you can run the following query

select count(distinct de\_te\_id),de\_type\_src,de\_type\_id\_src from de\_destinations group by de\_type\_src,de\_type\_id\_src having count(distinct de\_te\_id)&gt;1;

You can obtain the following output:

+--------------------------+---------------+----------------+

```
| count(distinct de_te_id) | de_type_src   | de_type_id_src |
```

+--------------------------+---------------+----------------+

```
|                        2 | FLOW          |             88 |
|                        2 | QUEUE-TIMEOUT |            413 |
```

+--------------------------+---------------+----------------+

You can check what happened, by investigating the records for the queue:

mysql&gt; select qu\_te\_id from qu\_queues where qu\_id=413;

+----------+

```
| qu_te_id |
```

+----------+

```
|      719 |
```

+----------+

1 row in set (0.00 sec)

mysql&gt; select \* from de\_destinations where de\_type\_src='QUEUE-TIMEOUT' and de\_type\_id\_src=413;

+--------+----------+---------------+----------------+-------------+----------------+--------+

```
| de_id  | de_te_id | de_type_src   | de_type_id_src | de_type_dst | de_type_id_dst | de_ord |
```

+--------+----------+---------------+----------------+-------------+----------------+--------+

```
| 185731 |        6 | QUEUE-TIMEOUT |            413 | VOICEMAIL   |             81 |      1 |
| 192043 |      719 | QUEUE-TIMEOUT |            413 | VOICEMAIL   |           4285 |      1 |
```

+--------+----------+---------------+----------------+-------------+----------------+--------+

2 rows in set (0.00 sec)

Here you can see the destination for QUEUE-TIMEOUT with id 413 is both VOICEMAIL in both tenant 6 and tenant 719, but the queue is in tenant 719, so the entry with de\_id 185731 needs to be removed.