Odoo Help

Welcome!

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.

0

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

By
sureshparthasarathy
on 11/29/13, 12:55 AM 3,672 views

i facing the below errors in the log file. can any help me how to solve this error. 2013-11-29 04:52:56,028 2938 INFO erp_demo openerp.modules.module: module base_external_referentials: creating or updating database tables 2013-11-29 04:52:56,173 2938 INFO erp_demo openerp.modules.loading: module base_external_referentials: loading base_external_referentials_view.xml 2013-11-29 04:52:56,198 2938 ERROR erp_demo openerp.tools.view_validation: Invalid XML: A string attribute must be on a form node. 2013-11-29 04:52:56,204 2938 ERROR erp_demo openerp.tools.convert: Parse error in /opt/openerp/server/openerp/addons/base_external_referentials/base_external_referentials_view.xml:4:
Traceback (most recent call last): File "/opt/openerp/server/openerp/tools/convert.py", line 847, in parse self._tagsrec.tag File "/opt/openerp/server/openerp/tools/convert.py", line 814, in _tag_record id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context ) File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 967, in _update res_id = model_obj.create(cr, uid, values, context=context) File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 103, in create return super(view, self).create(cr, uid, values, context) File "/opt/openerp/server/openerp/osv/orm.py", line 4478, in create self._validate(cr, user, [id_new], context) File "/opt/openerp/server/openerp/osv/orm.py", line 1548, in _validate raise except_orm('ValidateError', '\n'.join(error_msgs)) except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') 2013-11-29 04:52:56,205 2938 ERROR erp_demo openerp.netsvc: ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture! Traceback (most recent call last): File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/opt/openerp/server/openerp/osv/osv.py", line 144, in wrapper raise except_osv(inst.name, inst.value) except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') 2013-11-29 04:52:56,207 2938 INFO erp_demo werkzeug: 127.0.0.1 - - [29/Nov/2013 04:52:56] "POST /web/dataset/call_button HTTP/1.1" 200 -

paste here the error message in the log.. :D so that we can see the reason why the error appears :D

Lady Sharmane Udtuhan
on 11/29/13, 1:15 AM

Since you have not provided the XML code that is causing this here is a simple explanation. Your XML has a character that should not be where it is. like the error states a string attribute must be on a form

kaynis
on 11/29/13, 5:59 AM
2

Anil R. Kesariya

--Anil R. Kesariya--
4321
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
-
Technical & Functional Expert
Anil R. Kesariya
On 11/29/13, 6:11 AM

Hello sureshparthasarathy,

If you are creating new form or inheriting existing form than follow the existing those are working. compare your each line of code what you did. Hope You will find solution.

Try compare with existing. You might not give the exact attribute to specific tag.

Regards, Anil

0
abul
On 1/16/14, 1:20 AM

Hello,

first check in .py file and save it after restart your server add refresh site and check

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)

Stats

Asked: 11/29/13, 12:55 AM
Seen: 3672 times
Last updated: 3/16/15, 8:10 AM