Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How do I deal with the "Invalid XML for View Architecture!" error?

Dale E. Moore
on 2/12/13, 8:55 AM 2,937 views

Let's just say I hand craft some lovely XML for a view, update the module and am brought to a screeching halt by this error message:

except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

How would you approach resolving this issue?

Is there a way to see more detail about what the complaint is?

Would you cut out everything inside

<field name="arch" type="xml"> </field>

then add it back a piece at a time until the error shows up again?


Guewen Baconnier - Software Developer, Camptocamp

--Guewen Baconnier - Software Developer, Camptocamp--
| 6 7 8
Lausanne, Switzerland
--Guewen Baconnier - Software Developer, Camptocamp--

Guewen works at Camptocamp as an Odoo developer since 2010. He is the lead developer of the Odoo Connector framework and the Magento Connector. He is a delegate member of the OCA, a committer and an active contributor to the OCA projects.


Guewen Baconnier - Software Developer, Camptocamp
On 2/12/13, 9:25 AM

You can see more details about the error (offending view, what is the problem) in the server log file.

It is sometimes more convenient not to work with OpenERP as a service when developing. If you run openerp-server without the --log-file option, it should output to stdout. (/path/to/openerp-server --config=/path/to/openerp-server.conf --debug )

In a general manner, when you develop, you better have to activate the debug logging's level, so you'll have more details about the errors in the logs.

To activate the debug level, you can start your server with the option --debug

More details about the logging options: path/to/openerp-server --help

[EDIT] more information about the log file

service openerp stop

Moore Works, Dale E. Moore
on 2/12/13, 9:33 AM

sudo su openerp

Moore Works, Dale E. Moore
on 2/12/13, 9:34 AM

/usr/bin/python /usr/bin/openerp-server --debug --config=/etc/openerp/openerp-server.conf --logfile=/var/log/openerp-server.log

Moore Works, Dale E. Moore
on 2/12/13, 9:37 AM
On 2/12/13, 9:42 AM

You also see these details in the server log file

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 2/12/13, 8:55 AM
Seen: 2937 times
Last updated: 3/16/15, 8:10 AM