Hello
I have some trouble with import feature customization in Sugar Community Edition 5.2.
I would like to use a custom field named 'partita_iva_c' created in Accounts module as index to check duplicates to import accounts records from external source (.csv files).
I have added the following line to the /modules/Accounts/vardef.php file in 'indices' => array section:
array('name' =>'idx_partita_iva', 'type' =>'index', 'fields'=>array('partita_iva_c')),
when I go to the Admin section and try to repair Sugar to update it with the new index I receive the following error message:
Executing repair query: Query Failed:ALTER TABLE accounts ADD INDEX idx_partita_iva (partita_iva_c)::MySQL error 1072: Key column 'partita_iva_c' doesn't exist in table
I guess it happens because 'partita_iva_c' is a custom field so it's not allocated in 'accounts' table.
May someone help me to find the solution ?
tks a lot


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks