<div dir="ltr">Thanks Lucia for the info!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>Christophe Humbert<br><i>IT Program Manager</i><br>+352 691 391 974<br>+33 6 50 09 48 88<br>Skype: chris.e.humbert<br><br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Mar 30, 2016 at 2:17 PM, lucia digirolamo <span dir="ltr"><<a href="mailto:l.digirolamo@websonica.net" target="_blank">l.digirolamo@websonica.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I found it! I'll share my solution in case it can be useful to somebody else.<br>
<br>
During migration the field 'forecast_amount' got doubled. As a result I had two forecast_amount fields in vtiger_field table. I deleted one of them and now doCreate works.<span class=""><br>
<br>
<br>
<br>
<br>
On 30/03/2016 11:52, Alan Lord wrote:<br>
</span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 30/03/16 10:46, lucia digirolamo wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$recorddata = array(<br>
         'potentialname' => 'test',<br>
         'related_to' => '3x95460', // (moduleId x recordId) such as<br>
3x95460<br>
         'closingdate' => date('Y-m-d'),<br>
         'sales_stage' => 'Closed Lost',<br>
         'amount' => '2000',<br>
         'contact_id'=>'4x97106',<br>
     );<br>
</blockquote>
<br>
<br>
Are your wsids correct? "3" in some of my systems is for the FAQ module and "4" is for Quotes. Check your table vtiger_ws_entity - these are *not* the same as the tabid.<br>
<br>
<br>
Also you have no assigned_user_id field - which is _always_ mandatory.<br>
<br>
Al<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
</blockquote>
<br></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>