Hi,<div><br></div><div>I&#39;m trying to create a new entity module (from the book vtiger CRM Beginner&#39;s Guide), for learning purpose, using the following script:</div><div><br></div><div><div>&lt;?php</div><div>// Just a bit of HTML formatting</div>

<div>echo &#39;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//</div><div>EN&quot; &quot;<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>&quot;&gt;&#39;;</div><div>

echo &#39;&lt;html&gt;&lt;head&gt;&lt;title&gt;vtlib Module Script&lt;/title&gt;&#39;;</div><div>echo &#39;&lt;style type=&quot;text/css&quot;&gt;@import url(&quot;themes/softed/style.css&quot;);br { display: block; margin: 2px; }&lt;/style&gt;&#39;;</div>

<div>echo &#39;&lt;/head&gt;&lt;body class=small style=&quot;font-size: 12px; margin: 2px; padding: 2px;&quot;&gt;&#39;;</div><div>echo &#39;&lt;a href=&quot;index.php&quot;&gt;&lt;img src=&quot;themes/softed/images/vtiger-crm.gif&quot; alt=&quot;vtiger CRM&quot; title=&quot;vtiger CRM&quot; border=0&gt;&lt;/a&gt;&lt;hr style=&quot;height: 1px&quot;&gt;&#39;;</div>

<div><br></div><div>// Start by turning on debugging and including necessary PHP files:</div><div>$Vtiger_Utils_Log = true;</div><div>include_once(&#39;vtlib/Vtiger/Menu.php&#39;);</div><div>include_once(&#39;vtlib/Vtiger/Module.php&#39;);</div>

<div><br></div><div>// Then create your module instance and save it. Finally, the call to initWebservice() will initialize the webservice setup for our new module instance:</div><div>$module = new Vtiger_Module();</div><div>

$module-&gt;name = &#39;Location&#39;;</div><div>$module-&gt;save();</div><div>$module-&gt;initWebservice();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div>// Now initialize, or create, the tables required for your new module:</div>

<div>$module-&gt;initTables();</div><div><br></div><div>// Now add the module to the menu system. </div><div>// We&#39;re going to add it to the Sales dropdown menu in the main menu bar:</div><div>$menu = Vtiger_Menu::getInstance(&#39;Sales&#39;);</div>

<div>$menu-&gt;addModule($module);</div><div><br></div><div>// Now add a block for the basic module information:</div><div>$block1 = new Vtiger_Block();</div><div>$block1-&gt;label = &#39;LBL_LOCATION_INFORMATION&#39;;</div>

<div>$module-&gt;addBlock($block1);</div><div><br></div><div>// Now add a block for custom fields, so you can extend it in the future through the user interface:</div><div>$block2 = new Vtiger_Block();</div><div>$block2-&gt;label = &#39;LBL_CUSTOM_INFORMATION&#39;;</div>

<div>$module-&gt;addBlock($block2);</div><div><br></div><div>// Now let&#39;s create the fields for the module. First we&#39;ll create the Location Name field.</div><div>$field1-&gt;table = $module-&gt;basetable; // indicates that the field will reside in the base table of your new custom module.</div>

<div>$field1-&gt;uitype = 2; // means a required text box. See here for more UI types: <a href="http://wiki.vtiger.com/index.php/Ui_types">http://wiki.vtiger.com/index.php/Ui_types</a></div><div>$field1-&gt;typeofdata = &#39;V~M&#39;; // indicates that the field is Varchar and is Mandatory. See here for more data types: <a href="http://wiki.vtiger.com/index.php/INV...~ON">http://wiki.vtiger.com/index.php/INV...~ON</a></div>

<div>$field1 = new Vtiger_Field();</div><div>$field1-&gt;name = &#39;locationname&#39;;</div><div>$field1-&gt;label = &#39;Location Name&#39;;</div><div>$field1-&gt;table = $module-&gt;basetable;</div><div>$field1-&gt;column = &#39;locationname&#39;;</div>

<div>$field1-&gt;columntype = &#39;VARCHAR(255)&#39;;</div><div>$field1-&gt;uitype = 2;</div><div>$field1-&gt;typeofdata = &#39;V~M&#39;;</div><div>$block1-&gt;addField($field1);</div><div><br></div><div>// Set the name field as the field identifier:</div>

<div>$module-&gt;setEntityIdentifier($field1);</div><div><br></div><div>// Now add the Location Address field:</div><div>$field2 = new Vtiger_Field();</div><div>$field2-&gt;name = &#39;locationaddress&#39;;</div><div>$field2-&gt;label = &#39;Location Address&#39;;</div>

<div>$field2-&gt;table = $module-&gt;basetable;</div><div>$field2-&gt;column = &#39;locationaddress&#39;;</div><div>$field2-&gt;columntype = &#39;VARCHAR(255)&#39;;</div><div>$field2-&gt;uitype = 2;</div><div>$field2-&gt;typeofdata = &#39;V~O&#39;;// Varchar~Optional</div>

<div>$block1-&gt;addField($field2); // table and column are automatically set</div><div><br></div><div>// Now add the Location Address 2 field:</div><div>// Location address 2 field</div><div>$field3 = new Vtiger_Field();</div>

<div>$field3-&gt;name = &#39;locationaddress2&#39;;</div><div>$field3-&gt;label = &#39;Location Address 2&#39;;</div><div>$field3-&gt;table = $module-&gt;basetable;</div><div>$field3-&gt;column = &#39;locationaddress2&#39;;</div>

<div>$field3-&gt;columntype = &#39;VARCHAR(255)&#39;;</div><div>$field3-&gt;uitype = 2;</div><div>$field3-&gt;typeofdata = &#39;V~O&#39;; // Date~Mandatory</div><div>$block1-&gt;addField($field3);</div><div><br></div><div>

// Now add the Location City field:</div><div>$field4 = new Vtiger_Field();</div><div>$field4-&gt;name = &#39;locationcity&#39;;</div><div>$field4-&gt;label= &#39;Location City&#39;;</div><div>$field4-&gt;table = $module-&gt;basetable;</div>

<div>$field4-&gt;column = &#39;locationcity&#39;;</div><div>$field4-&gt;columntype = &#39;VARCHAR(255)&#39;;</div><div>$field4-&gt;uitype = 2;</div><div>$field4-&gt;typeofdata = &#39;V~O&#39;;</div><div><br></div><div>// Now add the Location State field:</div>

<div>$field5 = new Vtiger_Field();</div><div>$field5-&gt;name = &#39;locationstate&#39;;</div><div>$field5-&gt;label = &#39;Location State&#39;;</div><div>$field5-&gt;table = $module-&gt;basetable;</div><div>$field5-&gt;column = &#39;locationstate&#39;;</div>

<div>$field4-&gt;columntype = &#39;VARCHAR(255)&#39;;</div><div>$field5-&gt;uitype = 2;</div><div>$field5-&gt;typeofdata = &#39;V~O&#39;;</div><div>$block1-&gt;addField($field5);</div><div><br></div><div>// Add the Location Zip field:</div>

<div>$field6 = new Vtiger_Field();</div><div>$field6-&gt;name = &#39;locationzip&#39;;</div><div>$field6-&gt;label = &#39;Location Zip&#39;;</div><div>$field6-&gt;table = $module-&gt;basetable;</div><div>$field6-&gt;column = &#39;locationzip&#39;;</div>

<div>$field6-&gt;uitype = 2;</div><div>$field6-&gt;typeofdata = &#39;V~O&#39;;</div><div>$block1-&gt;addField($field6);</div><div><br></div><div>// Add common vTiger fields such as Assigned To, Created Time, and Modified Time:</div>

<div>$field7 = new Vtiger_Field();</div><div>$field7-&gt;name = &#39;assigned_user_id&#39;;</div><div>$field7-&gt;label = &#39;Assigned To&#39;;</div><div>$field7-&gt;table = $module-&gt;basetable;</div><div>$field7-&gt;column = &#39;assigned_user_id&#39;;</div>

<div>$field7-&gt;table = &#39;vtiger_crmentity&#39;;</div><div>$field7-&gt;column = &#39;smownerid&#39;;</div><div>$field7-&gt;uitype = 53;</div><div>$field7-&gt;typeofdata = &#39;V~M&#39;;</div><div>$block1-&gt;addField($field7);</div>

<div>$field8 = new Vtiger_Field();</div><div>$field8-&gt;name = &#39;createdtime&#39;;</div><div>$field8-&gt;label= &#39;Created Time&#39;;</div><div>$field8-&gt;table = &#39;vtiger_crmentity&#39;;</div><div>$field8-&gt;column = &#39;createdtime&#39;;</div>

<div>$field8-&gt;uitype = 70;</div><div>$field8-&gt;typeofdata = &#39;T~O&#39;;</div><div>$field8-&gt;displaytype= 2;</div><div>$block1-&gt;addField($field8);</div><div>$field9 = new Vtiger_Field();</div><div>$field9-&gt;name = &#39;ModifiedTime&#39;;</div>

<div>$field9-&gt;label= &#39;Modified Time&#39;;</div><div>$field9-&gt;table = &#39;vtiger_crmentity&#39;;</div><div>$field9-&gt;column = &#39;modifiedtime&#39;;</div><div>$field9-&gt;uitype = 70;</div><div>$field9-&gt;typeofdata = &#39;T~O&#39;;</div>

<div>$field9-&gt;displaytype= 2;</div><div>$block1-&gt;addField($field9);</div><div><br></div><div>// Now let&#39;s add some related fields. vTiger uses related fields</div><div>// to show one-to-one relationships between entities as well as</div>

<div>// one-to-many and many-to-one, such as contacts and accounts.</div><div>// These fields will show in the basic information section, </div><div>// along with the previous fields. We&#39;ll add a related account field, </div>

<div>// so as to know which customer this location belongs to:</div><div><br></div><div>$field11 = new Vtiger_Field();</div><div>$field11-&gt;name = &#39;relatedaccount&#39;;</div><div>$field11-&gt;label= &#39;Related Account&#39;;</div>

<div>$field11-&gt;table = &#39;vtiger_location&#39;;</div><div>$field11-&gt;column = &#39;relatedaccount&#39;;</div><div>$field11-&gt;columntype = &#39;VARCHAR(100)&#39;;</div><div>$field11-&gt;uitype = 10;</div><div>$field11-&gt;typeofdata = &#39;V~O&#39;;</div>

<div>$field11-&gt;helpinfo = &#39;Relate to an existing account&#39;;</div><div>$block1-&gt;addField($field11);</div><div>$field11-&gt;setRelatedModules(Array(&#39;Accounts&#39;));</div><div><br></div><div>// Now let&#39;s create a default filter, or view, for our module. It will just show all records:</div>

<div>$filter1 = new Vtiger_Filter();</div><div>$filter1-&gt;name = &#39;All&#39;;</div><div>$filter1-&gt;isdefault = true;</div><div>$module-&gt;addFilter($filter1);</div><div><br></div><div>// Let&#39;s add some fields to the filter:</div>

<div>$filter1-&gt;addField($field1)-&gt;addField($field2,</div><div>1)-&gt;addField($field3, 2)-&gt;addField($field4, 3)-&gt;addField($field5,</div><div>4)-&gt;addField($field7, 5)-&gt;addField($field10,</div><div>6)-&gt;addField($field11, 7);</div>

<div><br></div><div>// Now, let&#39;s say we want to see a list of multiple contacts under the </div><div>// record for a single location. We can associate multiple records of another module. </div><div>// Here&#39;s the code for associating multiple other contacts with this location. </div>

<div>// You can see that the code gives the user the ability to either add a new contact </div><div>// record while associating it with this location, or selecting a contact that&#39;s already in vTiger:</div><div>$module-&gt;setRelatedList(Vtiger_Module::getInstance(&#39;Contacts&#39;),</div>

<div>&#39;Contacts&#39;, Array(&#39;ADD&#39;,&#39;SELECT&#39;));</div><div><br></div><div>// Now, set the sharing access for the Locations module to Private. </div><div>// You&#39;ll be able to change it later in the Settings section:</div>

<div>$module-&gt;setDefaultSharing(&#39;Private&#39;);</div><div><br></div><div>// Now, let&#39;s enable the Import/Export tool, but disable merging:</div><div>$module-&gt;enableTools(Array(&#39;Import&#39;, &#39;Export&#39;));</div>

<div>$module-&gt;disableTools(&#39;Merge&#39;);</div><div><br></div><div>// Finally, let&#39;s enable this module for use with web services:</div><div>$moduleInstance = Vtiger_Module::getInstance(&#39;Location&#39;);</div>

<div>$moduleInstance-&gt;initWebservice();</div><div><br></div><div>// Close up the PHP file with some HTML:</div><div>echo &#39;&lt;/body&gt;&lt;/html&gt;&#39;;</div><div>?&gt;</div><div><br></div></div><div>The response when executing the script is:</div>

<div><br></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Module Location ... STARTED</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Initializing module permissions ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Updating tabdata file ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Setting up sharing access options ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Module Location ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Initializing webservices support ...DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Added to menu Sales ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Updating parent_tabdata file ... STARTED</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Updating parent_tabdata file ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Block LBL_LOCATION_INFORMATION ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language entry for LBL_LOCATION_INFORMATION ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Block LBL_CUSTOM_INFORMATION ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language entry for LBL_CUSTOM_INFORMATION ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field locationname ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Location Name ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Setting entity identifier ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field locationaddress ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Location Address ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field locationaddress2 ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Location Address 2 ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field locationstate ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Location State ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field locationzip ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Location Zip ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field assigned_user_id ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Assigned To ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field createdtime ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Created Time ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field ModifiedTime ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Modified Time ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Field relatedaccount ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Module language mapping for Related Account ... CHECK</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Setting relatedaccount relation with Accounts ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Creating Filter All ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">
<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Setting Filter All to status [0] ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Adding locationname to All filter ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Adding locationaddress to All filter ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Adding locationaddress2 to All filter ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Adding locationcity to All filter ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Adding locationstate to All filter ... DONE</span><br style="display:block;margin:2px;font-family:Arial,Helvetica,sans-serif;font-size:12px">

<span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">Adding assigned_user_id to All filter ... DONE</span>
</div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px"><br></span></div><div><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px">The module will run Ok, but when I try to save a record, I have the following error message:</span></div>

<div><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px"><br></span></div>Record you are trying to access is not found. Go Back.<div><br></div><div><br></div><div>Looking at vtigercrm.log I found this:</div>

<div><br></div><div><div>Sat Jul 14 00:15:00 2012,224 [30517] INFO VT - PearDatabase -&gt;ADODB error  Query Failed:SELECT vtiger_location.locationname, vtiger_location.locationaddress, vtiger_location.locationaddress2, vtiger_location.locationstate, vtiger_crmentity.smownerid, vtiger_location.locationid FROM vtiger_location  INNER JOIN vtiger_crmentity ON vtiger_location.locationid = vtiger_crmentity.crmid LEFT JOIN vtiger_users ON vtiger_crmentity.smownerid = <a href="http://vtiger_users.id">vtiger_users.id</a> LEFT JOIN vtiger_groups ON vtiger_crmentity.smownerid = vtiger_groups.groupid  WHERE vtiger_crmentity.deleted=0 AND vtiger_location.locationid &gt; 0 LIMIT 0, 20::-&gt;[1054]Unknown column &#39;vtiger_location.locationstate&#39; in &#39;field list&#39;</div>

</div><div><br></div><div><br></div><div>Checking on vtiger_location table:</div><div><br></div><div><div><br></div><div>mysql&gt; desc vtiger_location;</div><div>+------------------+--------------+------+-----+---------+-------+</div>

<div>| Field            | Type         | Null | Key | Default | Extra |</div><div>+------------------+--------------+------+-----+---------+-------+</div><div>| locationid       | int(11)      | YES  |     | NULL    |       |</div>

<div>| locationname     | varchar(255) | YES  |     | NULL    |       |</div><div>| locationaddress  | varchar(255) | YES  |     | NULL    |       |</div><div>| locationaddress2 | varchar(255) | YES  |     | NULL    |       |</div>

<div>| relatedaccount   | varchar(100) | YES  |     | NULL    |       |</div><div>+------------------+--------------+------+-----+---------+-------+</div><div>5 rows in set (0.00 sec)</div></div><div><br></div><div>I discovered that the following columns were not created:</div>

<div><br></div><div>locationcity</div><div>locationstate</div><div>locationzip</div><div><br></div><div>I checked on vtiger_fields table and all fields appears there:</div><div><br></div><div><div>mysql&gt; select  tabid,fieldid,columnname,tablename,generatedtype,uitype,fieldname,typeofdata  from vtiger_field where tabid=78;</div>

<div>+-------+---------+------------------+------------------+---------------+--------+------------------+------------+</div><div>| tabid | fieldid | columnname       | tablename        | generatedtype | uitype | fieldname        | typeofdata |</div>

<div>+-------+---------+------------------+------------------+---------------+--------+------------------+------------+</div><div>|    78 |     980 | locationname     | vtiger_location  |             1 | 2      | locationname     | V~M        |</div>

<div>|    78 |     981 | locationaddress  | vtiger_location  |             1 | 2      | locationaddress  | V~O        |</div><div>|    78 |     982 | locationaddress2 | vtiger_location  |             1 | 2      | locationaddress2 | V~O        |</div>

<div>|    78 |     983 | locationstate    | vtiger_location  |             1 | 2      | locationstate    | V~O        |</div><div>|    78 |     984 | locationzip      | vtiger_location  |             1 | 2      | locationzip      | V~O        |</div>

<div>|    78 |     985 | smownerid        | vtiger_crmentity |             1 | 53     | assigned_user_id | V~M        |</div><div>|    78 |     986 | createdtime      | vtiger_crmentity |             1 | 70     | createdtime      | T~O        |</div>

<div>|    78 |     987 | modifiedtime     | vtiger_crmentity |             1 | 70     | ModifiedTime     | T~O        |</div><div>|    78 |     988 | relatedaccount   | vtiger_location  |             1 | 10     | relatedaccount   | V~O        |</div>

<div>+-------+---------+------------------+------------------+---------------+--------+------------------+------------+</div><div>9 rows in set (0.00 sec)</div></div><div><br></div><div><br></div><div>I could not find any errors. With someone could give some help, will be very appreciated.</div>

<div><br></div><div>Thanks in advance,</div><div><br></div><div>Fernando Possebon</div><div><br></div><div><br><div><br></div></div>