Re: Import Question
mtfrog77,
Do you use Navicat at all or just heard about it? I could do with a hand with some more data imports.
I have all my data back in sugar but need to update the records in there with newer details.
My sales team use an application called ACT so I exported there ACT data to CSV format. I imported the CSV into the Leads module of a cloned sugar (which contains no previous data). I then exported the Leads table in Navicat to a txt file.
I then imported this Leads table (which contains only the new leads) into my original sugar database in Navicat using the import wizard. I ticked the "Primary Key" field next to "Account_name" so it would match all the accounts up with the "account name" and not the "id" as I noticed the "id" column for each lead is different from the ones in the original sugar database.
I then chose "Append/Update" and got the following error:
[2007-04-18 16:35:13] [Msg] Import start
[2007-04-18 16:35:13] [Msg] Import type - Text file
[2007-04-18 16:35:13] [Msg] Import from - C:\Documents and Settings\administrator.CCM-CA\Desktop\leads_hellenmilson.TXT
[2007-04-18 16:35:13] [Msg] Import table [leads]
[2007-04-18 16:35:13] [Err] 1406 - Data too long for column 'primary_address_postalcode' at row 1
[2007-04-18 16:35:13] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('10fd1444-e6d1-2418-f4b5-46262fc06ee6','0','0','0','0','2007-4-18 14:45:24','2007-4-18 14:45:24','1','1','ee85d1d4-87ed-15c8-dda2-456c4b2c4f3c','Lynn','Diplock','New','020 - 77158000','11 Westferry Circus',' Canary Wharf',' London',' E14 4HE Canary Wharf London',null,null,null)
[2007-04-18 16:35:13] [Err] 1292 - Incorrect datetime value: '0' for column 'date_entered' at row 1
[2007-04-18 16:35:13] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('','0','0',null,null,'0','0',null,null,null,null, null,null,null,null,null,null,null,null,null,null)
[2007-04-18 16:35:13] [Err] 1292 - Incorrect datetime value: '0' for column 'date_entered' at row 1
[2007-04-18 16:35:13] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('Accounting Date = 19-04-2007','0','0',null,null,'0','0',null,null,'0141 - 2255900',null,null,'G2 2SD','Group engaged in the rental of temporary power',null,null,null,null,null,null,null)
[2007-04-18 16:35:13] [Err] 1406 - Data too long for column 'primary_address_postalcode' at row 1
[2007-04-18 16:35:13] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('19c989ee-6ffe-8dcf-c6ac-46262f490c98','0','0','0','0','2007-4-18 14:45:24','2007-4-18 14:45:24','1','1','ee85d1d4-87ed-15c8-dda2-456c4b2c4f3c','Phil','Carr','New','0870 - 608 2372','Sovereign House',' Rhosili Road',' Brackmills',' Northam Rhosili Road Brackmills',null,null,null)
[2007-04-18 16:35:14] [Err] 1406 - Data too long for column 'primary_address_postalcode' at row 1
[2007-04-18 16:35:14] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('37025c87-aa3c-37e0-8a53-46262f301029','0','0','0','0','2007-4-18 14:45:24','2007-4-18 14:45:24','1','1','ee85d1d4-87ed-15c8-dda2-456c4b2c4f3c','Catherine','Williams','New','020 - 78733000','Number One',' Southwark Bridge',' London',' SE1 9HL Southwark Bridge BERMONDSEY',null,null,null)
[2007-04-18 16:35:15] [Err] 1406 - Data too long for column 'primary_address_postalcode' at row 1
[2007-04-18 16:35:15] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('9973bbbc-90d5-4b3f-0412-46262fdbe16c','0','0','0','0','2007-4-18 14:45:24','2007-4-18 14:45:24','1','1','ee85d1d4-87ed-15c8-dda2-456c4b2c4f3c','Steven','Kidd','New','01923 - 233366','Axis 1 Rhodes Way',' Watford',' Herts',' WD24 4FD Watford Herts',null,null,null)
[2007-04-18 16:35:15] [Err] 1406 - Data too long for column 'primary_address_postalcode' at row 1
[2007-04-18 16:35:15] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('ee83cac2-c836-168d-3686-46262f6d0e2f','0','0','0','0','2007-4-18 14:45:23','2007-4-18 14:45:23','1','1','ee85d1d4-87ed-15c8-dda2-456c4b2c4f3c','Steve','Barrow','New','01935 - 414141','Mead Avenue',' Houndstone Business Park',' Yeovil',' Som Houndstone Business Park ',null,null,null)
[2007-04-18 16:35:15] [Err] 1406 - Data too long for column 'account_name' at row 1
[2007-04-18 16:35:15] [Err] insert into `leads` (`id`,`deleted`,`converted`,`do_not_call`,`email_o pt_out`,`date_entered`,`date_modified`,`modified_u ser_id`,`created_by`,`assigned_user_id`,`first_nam e`,`last_name`,`status`,`phone_work`,`primary_addr ess_street`,`primary_address_city`,`primary_addres s_state`,`primary_address_postalcode`,`description `,`account_name`,`account_description`) values ('ef37d35a-292d-a289-3b98-46262f0d54ae','0','0','0','0','2007-4-18 14:45:24','2007-4-18 14:45:24','1','1','ee85d1d4-87ed-15c8-dda2-456c4b2c4f3c','Anthony','Robin','New','020 - 72166800','Fourth Floor 130 Wilton Road London','London','England','SW1V 1LQ','Building',' building management and services; civil and specialist engineering and services; rail engineering and services and the management of parent company investments and developments.','BALFOUR BEATTY GROUP LIMITED')
[2007-04-18 16:35:16] [Msg] Processed:126, Added:118, Updated:0, Deleted:0, Errors:8
[2007-04-18 16:35:16] [Msg] Finished - Unsuccessfully
I've tried so many different ways of importing the data but it all seams to error in some way.
Any suggestions?
Sugar Version - 4.5.0h
Sugar Edition - SugarSuite
OS - Win 2003 Server Std
PHP Version - 5.2.0
Database - MySQL Server 5
Web Server - Apache 2.0.59
Bookmarks