# How to resolve this error

**URL:** https://discuss.tryton.org/t/how-to-resolve-this-error/2489
**Category:** Developer
**Created:** [March 26, 2020, 8:34am UTC](https://discuss.tryton.org/t/how-to-resolve-this-error/2489 "2020-03-26T08:34:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![prashasti.sharma](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/p/58f4c7/32.png) [@prashasti.sharma](https://discuss.tryton.org/u/prashasti.sharma)
#### Post date: [March 26, 2020, 8:34am UTC](https://discuss.tryton.org/t/how-to-resolve-this-error/2489/1 "2020-03-26T08:34:49Z")

</div>

```
 16383 139823321327424 [2020-03-26 08:12:20,626] INFO trytond.modules cheque_printing:loading icons.xml
16383 139823321327424 [2020-03-26 08:12:20,686] INFO trytond.modules cheque_printing:loading wizard.xml
16383 139823321327424 [2020-03-26 08:12:20,702] INFO trytond.modules cheque_printing:loading cheque_printing.xml
16383 139823321327424 [2020-03-26 08:12:20,901] INFO trytond.modules cheque_printing:loading menu.xml
16383 139823321327424 [2020-03-26 08:12:20,974] INFO trytond.modules cheque_printing:loading user_access.xml
16383 139823321327424 [2020-03-26 08:12:20,975] ERROR trytond.convert Error while parsing xml file:
Traceback (most recent call last):
  File "/usr/lib/python3.6/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 1

```

During handling of the above exception, another exception occurred:

```
Traceback (most recent call last):
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/convert.py", line 451, in parse_xmlstream
    self.sax_parser.parse(source)
  File "/usr/lib/python3.6/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.6/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/usr/lib/python3.6/xml/sax/expatreader.py", line 221, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib/python3.6/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:1: XML or text declaration not at start of entity
Traceback (most recent call last):
  File "/usr/lib/python3.6/xml/sax/expatreader.py", line 217, in feed
    self._parser.Parse(data, isFinal)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 1

```

During handling of the above exception, another exception occurred:

```
Traceback (most recent call last):
  File "/home/prashasti/workspace/tryton50/bin/trytond-admin", line 4, in <module>
    __import__ ('pkg_resources').run_script('trytond==5.0.20', 'trytond-admin')
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/pkg_resources/ __init__.py", line 658, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/pkg_resources/ __init__.py", line 1438, in run_script
    exec(code, namespace, namespace)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/EGG-INFO/scripts/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/admin.py", line 54, in run
    activatedeps=options.activatedeps)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/pool.py", line 160, in init
    lang=lang, activatedeps=activatedeps)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/modules/ __init__.py", line 418, in load_modules
    _load_modules(update)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/modules/ __init__.py", line 388, in _load_modules
    load_module_graph(graph, pool, update, lang)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/modules/ __init__.py", line 230, in load_module_graph
    tryton_parser.parse_xmlstream(fp)
  File "/home/prashasti/workspace/tryton50/lib/python3.6/site-packages/trytond-5.0.20-py3.6.egg/trytond/convert.py", line 451, in parse_xmlstream
    self.sax_parser.parse(source)
  File "/usr/lib/python3.6/xml/sax/expatreader.py", line 111, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python3.6/xml/sax/xmlreader.py", line 125, in parse
    self.feed(buffer)
  File "/usr/lib/python3.6/xml/sax/expatreader.py", line 221, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib/python3.6/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:1: XML or text declaration not at start of entity
After creating a txt file in xml.

```

---

<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: [March 26, 2020, 9:34am UTC](https://discuss.tryton.org/t/how-to-resolve-this-error/2489/2 "2020-03-26T09:34:07Z")

</div>

The file `user_access.xml` is not a valid XML file.
