4401 Unable to populate data, please check if mandatory value is entered correctly.

4401 Unable to populate data, please check if mandatory value is entered correctly.

Hello Fellow nerds,

I have a custom module based off the Leads module and I keep getting the 4401 error. I've gone in and removed all required fields except the one I couldn't (it's populated), I tried http and https, checked the API key even tried the same code in a different area of my site.

I can't get it to work. I'm an Enterprise customer and I'm well within my daily limits



PHP Code (That works in every other part of the site)

$url = " https://crm.zoho.com/crm/private/xml/CustomModule1/insertRecords?authtoken=<<<AUTH TOKEN REMOVED>>>&scope=crmapi&wfTrigger=true";
$post=array("newFormat"=>'1',"xmlData"=>$xmlData);
//================= start curl ===================
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSLVERSION,1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
$result = curl_exec($ch);
curl_close($ch);



The only required field is: "Franchise Lead Name" and it's clearly populated



Data Sent


XML Sent: <CustomModule1>
<row no="1">
<FL val="First Name">John</FL>
<FL val="Last Name">Smith</FL>
<FL val="Franchise Lead Name">John Smith</FL>
<FL val="Phone">5555551212</FL>
<FL val="Mobile">5555551212</FL>
<FL val="Email"> email@email.com</FL>
<FL val="Date Added">01/14/2016</FL>
<FL val="Franchise Lead Source">PGX</FL>
<FL val="Franchise Lead Status">New</FL>
<FL val="Street">123 Main Street</FL>
<FL val="Province">Manitoba</FL>
<FL val="Postal Code">R0B0L0</FL>
<FL val="City">Anywhere</FL>
<FL val="Country">Canada</FL>
<FL val="First Choice">The beach</FL>
<FL val="Second Choice">Riverview</FL>
<FL val="Time Frame">1 year</FL>
<FL val="FL Comments">Test Comments</FL>
<FL val="Available Capital">Yes</FL>
<FL val="Franchise Lead Owner">Franchise Team</FL>
</row>
</CustomModule1>


Response: Franchise Leads: <?xml version="1.0" encoding="UTF-8" ?>
<response uri="/crm/private/xml/CustomModule1/insertRecords"><error><code>4401</code><message>Unable to populate data, please check if mandatory value is entered correctly.</message></error></response>


Any help would be appreciated.

Cheers