Reputation: 1
I'm trying to update and insert Leads using the Zoho CRM API and I sometimes get the following error:
<response><error><code>4600</code><message>Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter.</message></error></response>
My problem is that sometimes everything works fine and sometimes I get this error, but I'm struggling to see any difference between 'good' XML and 'bad' XML. I'm enclosing all values in CDATA tags.
Upvotes: 0
Views: 1470
Reputation: 23
the standard xml format for zoho api is following, Please update your xml format according to this.
$xmlData=
<Leads>
<row no="1">
<FL val="Lead Source">Web Download</FL>
<FL val="Company">Your Company</FL>
<FL val="First Name">Hannah</FL>
<FL val="Last Name">Smith</FL>
<FL val="Email">[email protected]</FL>
<FL val="Title">Manager</FL>
<FL val="Phone">1234567890</FL>
<FL val="Home Phone">0987654321</FL>
<FL val="Other Phone">1212211212</FL>
<FL val="Fax">02927272626</FL>
<FL val="Mobile">292827622</FL>
</row>
</Leads>
Upvotes: 1
Reputation: 190
as the response 4600 indicates that the xml was not in readable form, you should check your xml values closely and see if any special character is causing the issue. In my case, apostrophe was breaking the xml.
Upvotes: 1