Odoo Help


XML-RPC via C#

on 4/21/16, 3:28 AM 1,900 views

Hello , 

I'm trying to read some records , involving XML-RPC data exchange via a C# program and I m stuck at some point. I got an error : 


Server returned a fault exception: [1] Traceback (most recent call last):

File "/home/odoo-prod/instance/release/parts/odoo/openerp/service/wsgi_server.py", line 75, in xmlrpc_return

result = openerp.http.dispatch_rpc(service, method, params)

File "/home/odoo-prod/instance/release/parts/odoo/openerp/http.py", line 115, in dispatch_rpc

result = dispatch(method, params)

File "/home/odoo-prod/instance/release/parts/odoo/openerp/service/model.py", line 37, in dispatch

res = fn(db, uid, *params)

File "/home/odoo-prod/instance/release/parts/odoo/openerp/service/model.py", line 167, in execute_kw

return execute(db, uid, obj, method, *args, **kw or {})

TypeError: execute() argument after ** must be a mapping, not list


On this line :

 IEnumerable<string> i_1 = new List<string>() { };

IEnumerable<string> i_2 = new List<string>{ "name", "active", "vat", "ref" };

var v_1 = rpcClient.read(Properties.Settings.Default.Db, userid, Properties.Settings.Default.Password, "res.partner", "read",o_1, o_2);

Here's another version :

XmlRpcStruct[] partners = odooProxyObject.Read(Properties.Settings.Default.Db, userId, Properties.Settings.Default.Password, "res.partner", "read", new int[] { 0, 1, 2, 4, 30 }, new string[] { "id", "name" });

I don't find any solution on the web and i don't know how to proceed to solve this error.

Thank you for your help ! 

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/21/16, 3:28 AM
Seen: 1900 times
Last updated: 4/21/16, 3:33 AM