# KeyError: 'groups' when opening Sequences or Strict Sequences

**URL:** https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713
**Category:** System Administrator
**Created:** [October 19, 2021, 3:43pm UTC](https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713 "2021-10-19T15:43:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lars\_wuerfel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/lars_wuerfel/32/2794_2.png) [@lars\_wuerfel](https://discuss.tryton.org/u/lars_wuerfel)
#### Post date: [October 19, 2021, 3:43pm UTC](https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713/1 "2021-10-19T15:43:33Z")

</div>

I have a Tryton instance that has been upgraded from 4.8 to 5.0, 5.2, …, 6.0 .  
When I open Sequences or Strict Sequences (“Nummernkreise” bzw. “Strikte Nummernkreise”) the folllowing error comes up:

```auto
5575 140105816360704 [2021-10-19 09:33:49,943] INFO werkzeug 172.16.0.101 - - [19/Oct/2021 09:33:49] "POST /tryton_prod_itsd/ HTTP/1.1" 200 -   
5575 140105816360704 [2021-10-19 09:33:50,218] ERROR trytond.protocols.dispatcher <class 'trytond.pool.ir.sequence'>.read(*([4, 3, 2, 1, 7, 6, 5], ['active', 'company', 'id', 'name', 'sequence_type', 'type', 'company.rec_name', 'sequence_type.rec_name', 'rec_name', '_timestamp', '_write',
'_delete'], {'client': 'bb0e9f58-30f9-41b6-8239-2bad97c02d2f', 'company_filter': 'one', 'company': 1, 'company.rec_name': 'xxx', 'language': 'de', 'language_direction': 'ltr', 'groups': [1, 6, 4, 5, 7, 11, 3, 10, 2, 8, 9]}), **{}) from admin@x.x.x.x/tryton_prod_itsd/
Traceback (most recent call last):
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/protocols/dispatcher.py", line 181, in _dispatch          
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 749, in read                     
    rule_domain, active_test=False, tables=rule_tables)
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1460, in search_domain           
    expression = convert(domain)
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1457, in convert                 
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1456, in <genexpr>               
    return And((convert(d) for d in (
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1454, in convert                 
    return Or((convert(d) for d in domain[1:]))
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1454, in <genexpr>               
    return Or((convert(d) for d in domain[1:]))
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1457, in convert                 
    domain[1:] if domain[0] == 'AND' else domain)))
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1456, in <genexpr>               
    return And((convert(d) for d in (
  File "/home/tryton/tryton/tryton-server-6.0/env/lib/python3.7/site-packages/trytond/model/modelsql.py", line 1446, in convert                 
    field = cls._fields[fname]
KeyError: 'groups'

```

With a completely new installed database, the error does not occur.  
It worked at the beginning of the year, so it may have been introduced with the update 5.8 to 6.0

What can I do?

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [October 20, 2021, 7:33am UTC](https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713/2 "2021-10-20T07:33:43Z")

</div>

It seems you have an access rule which read the groups fields which no longer exist.  
If you remove such rule it should work as expected.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 20, 2021, 7:50am UTC](https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713/3 "2021-10-20T07:50:52Z")

</div>

Maybe it is some XML data that could not be updated by `trytond-admin`. So you probably need to force the update from the `Administration>Models>Models>Data`.

---

<div class="post-metadata">

### Author: ![lars\_wuerfel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/lars_wuerfel/32/2794_2.png) [@lars\_wuerfel](https://discuss.tryton.org/u/lars_wuerfel)
#### Post date: [October 20, 2021, 9:03am UTC](https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713/4 "2021-10-20T09:03:24Z")

</div>

Thank you, it worked.  
There were unsynced entries in Administration\>Models\>Models\>Data.

After manually syncing each entry, I can open the Sequences mask again.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [November 19, 2021, 9:04am UTC](https://discuss.tryton.org/t/keyerror-groups-when-opening-sequences-or-strict-sequences/4713/5 "2021-11-19T09:04:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
