# sqlite3.OperationalError: no such table: ir\_model\_log

**URL:** https://discuss.tryton.org/t/sqlite3-operationalerror-no-such-table-ir-model-log/6487
**Category:** Developer
**Created:** [August 30, 2023, 5:02pm UTC](https://discuss.tryton.org/t/sqlite3-operationalerror-no-such-table-ir-model-log/6487 "2023-08-30T17:02:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![awes7](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@awes7](https://discuss.tryton.org/u/awes7)
#### Post date: [August 30, 2023, 5:02pm UTC](https://discuss.tryton.org/t/sqlite3-operationalerror-no-such-table-ir-model-log/6487/1 "2023-08-30T17:02:53Z")

</div>

Hi, I get this error when I try to party.save().

Thanks in advance.

```auto
>>> en, = Lang.find([('code', '=', 'en')])
>>> party.lang = en
>>> party.save()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/proteus/ __init__.py", line 102, in newfunc
    return self.func(owner, [instance], *args, **kwargs)
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/proteus/ __init__.py", line 866, in save
    proxy.write(*values)
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/proteus/config.py", line 227, in __call__
    transaction.commit()
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/transaction.py", line 326, in commit
    self._store_log_records()
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/transaction.py", line 317, in _store_log_records
    Log.save(self.log_records)
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/model/descriptors.py", line 33, in newfunc
    return self.func(owner, *args, **kwargs)
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/model/modelstorage.py", line 1966, in save
    news = cls.create([save_values[r] for r in to_create])
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/ir/resource.py", line 86, in create
    records = super().create(vlist)
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/model/modelsql.py", line 240, in wrapper
    return func(cls, *args, **kwargs)
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/model/modelsql.py", line 886, in create
    new_ids.extend(db_insert(
  File "/home/awes7/projects/opportunity/.venv/lib/python3.10/site-packages/trytond/model/modelsql.py", line 807, in db_insert
    cursor.execute(*table.insert(cols, [val]))
sqlite3.OperationalError: no such table: ir_model_log

```

---

<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: [August 31, 2023, 7:34am UTC](https://discuss.tryton.org/t/sqlite3-operationalerror-no-such-table-ir-model-log/6487/2 "2023-08-31T07:34:31Z")

</div>

The `ir.model.log` table was added on version 6.8 but it seems your database has been created with and older version. You need to updateit using:

`trytond-admin -d <dbname> --all`

Hope it gelps
