API Error when passing empty first_name last_name

Options

So I was using the constituent api to create or update users from a certain form. But I at certain points my code was returning errors where it did not look like existing users were getting updated at all.

Turns out that I was passing an empty last_name (where a last name already existed) and the message I got back from Convio did not seem complete -- there was no message that I could discern in the XML. This seemed to be all I was getting back. When users were new, or I was passing back all the info, the responses I got back were fine:



<?xml version="1.0" encoding="UTF-8"?>
<errorResponse xsi:schemaLocation="http://convio.com/crm/v1.0 http://service.convio.net/xmlschema/crm.public.v1.xsd" xmlns=&quot;http://convio.com/crm/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

But the record was updated -- at least so far as adding the user to a specific group.

I easily corrected the problem by only passing last_name when there was something there. But I would like to know if there is something further wrong with my code -- in how I am parsing the XML response (i.e. what should the response be for this particular situation), or if this is a bug with Convio in this particular case.

Tagged:

Comments

  • Adrian,

    That XML doesn't look valid. Would you mind opening this through support? That way I can be sure we capture the information we need to reproduce it and, if need be, get it fixed.

    Thanks,

    Steve

Categories