Re: Error from person.get

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
On Sep 9, 2004, at 12:03, Thomas Kriener wrote:
> result=server.person.get( { 'name' : "Kriener", } )
...
> I always get back:
> xmlrpclib.Fault: <Fault 0: 'Invalid argument: Nil object to be added 
> in array'>
>
> BTW: There are more than one Person with name Kriener.

Yes, "person.get" is for retrieving a unique person record, so you can 
only specify something like "login", "number" or "companyId" as fields. 
(well, this is not strictly correct for the implementation, but use it 
like that).

If you need to fetch multiple persons, use person.fetch.

Besides the fault is of course misleading and should be corrected.

Greets,
   Helge
-- 
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.