# 6.2 -\> 6.4 Upgrade: ParsingError: in record 'account\_statement.journal\_statement'

**URL:** https://discuss.tryton.org/t/6-2-6-4-upgrade-parsingerror-in-record-account-statement-journal-statement/5330
**Category:** System Administrator
**Created:** [June 6, 2022, 10:07am UTC](https://discuss.tryton.org/t/6-2-6-4-upgrade-parsingerror-in-record-account-statement-journal-statement/5330 "2022-06-06T10:07:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)
#### Post date: [June 6, 2022, 10:07am UTC](https://discuss.tryton.org/t/6-2-6-4-upgrade-parsingerror-in-record-account-statement-journal-statement/5330/1 "2022-06-06T10:07:53Z")

</div>

After upgrading from 6.2 to 6.4, database upgrade fail to complete.

```auto
trytond-admin -c trytond.conf -d luthierio --all 
Traceback (most recent call last):
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/convert.py", line 464, in parse_xmlstream
    self.sax_parser.parse(source)
  File "/usr/lib/python3.7/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.7/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/usr/lib/python3.7/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
  File "../Modules/pyexpat.c", line 471, in EndElement
  File "/usr/lib/python3.7/xml/sax/expatreader.py", line 336, in end_element
    self._cont_handler.endElement(name)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/convert.py", line 519, in endElement
    self.taghandler = self.taghandler.endElement(name)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/convert.py", line 315, in endElement
    self.model. __name__ , self.values, self.xml_id)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/convert.py", line 695, in import_record
    self.create_records(model, [values], [fs_id])
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/convert.py", line 701, in create_records
    records = Model.create(vlist)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelsql.py", line 161, in wrapper
    return func(cls, *args, **kwargs)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelsql.py", line 718, in create
    field.set(cls, fname, *fargs)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/fields/function.py", line 153, in set
    setter(Model.browse(ids), name, value)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/multivalue.py", line 94, in _multivalue_setter
    Value.save(to_save)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/descriptors.py", line 33, in newfunc
    return self.func(owner, *args, **kwargs)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelstorage.py", line 1910, in save
    news = cls.create([save_values[r] for r in to_create])
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelsql.py", line 161, in wrapper
    return func(cls, *args, **kwargs)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelsql.py", line 726, in create
    cls._validate(sub_records)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelstorage.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelstorage.py", line 1327, in _validate
    validate_domain(field)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelstorage.py", line 1251, in validate_domain
    field, list(sub_records), Relation, sub_domain)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/model/modelstorage.py", line 1309, in validate_relation_domain
    msg, domain=(invalid_domain, field_def))
trytond.model.modelstorage.DomainValidationError: The value for field "Sequence" in "Journal Sequence" is not valid according to its domain. - 

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/tryton/venv_6.4/bin/trytond-admin", line 23, in <module>
    admin.run(options)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/admin.py", line 58, in run
    activatedeps=options.activatedeps)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/pool.py", line 167, in init
    activatedeps=activatedeps)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/modules/ __init__.py", line 438, in load_modules
    _load_modules(update)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/modules/ __init__.py", line 406, in _load_modules
    load_module_graph(graph, pool, update, lang)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/modules/ __init__.py", line 252, in load_module_graph
    tryton_parser.parse_xmlstream(fp)
  File "/root/tryton/venv_6.4/lib/python3.7/site-packages/trytond/convert.py", line 466, in parse_xmlstream
    raise ParsingError("in %s" % self.current_state()) from e
trytond.convert.ParsingError: in record 'account_statement.journal_statement'

```

Later in the client I’ve also few errors but a successful upgrade should be the first step!  
Could you help to fix?

---

<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: [June 6, 2022, 11:08am UTC](https://discuss.tryton.org/t/6-2-6-4-upgrade-parsingerror-in-record-account-statement-journal-statement/5330/2 "2022-06-06T11:08:51Z")

</div>

It sounds like your “Default Account Journal” sequence has a company set. This prevents the creation of the “Statement” journal.  
I guess we should force no company on ‘sequence\_account\_journal’.

---

<div class="post-metadata">

### Author: ![Simon](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/simon/32/1150_2.png) [@Simon](https://discuss.tryton.org/u/Simon)
#### Post date: [June 6, 2022, 12:43pm UTC](https://discuss.tryton.org/t/6-2-6-4-upgrade-parsingerror-in-record-account-statement-journal-statement/5330/3 "2022-06-06T12:43:22Z")

</div>

Indeed the upgrade is successfull after I remove the company from these sequences. Not sure to understand implications but it works now.

---

<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: [July 6, 2022, 12:43pm UTC](https://discuss.tryton.org/t/6-2-6-4-upgrade-parsingerror-in-record-account-statement-journal-statement/5330/4 "2022-07-06T12:43:57Z")

</div>

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