View Single Post
  #1 (permalink)  
Old 05-21-2009, 02:31 PM
nida nida is offline
Member
 
Join Date: Mar 2009
Posts: 14
Rep Power: 0
nida is on a distinguished road
Default Import error for csv file in outlook
Hi,
I have exported my contacts in a csv file , file is created but when i import it into outlook following error message is displayed:

File error has encountered in csv(window) translator while initializing translator to build field map .

But when i open the csv file and save it as in CSV format again , it is imported without any error,

Following is the code to create csv File:

CSVWriter writers = new CSVWriter(new FileWriter("c:\\Contacts.csv"), ',');
writers.writeNext(header);
writers.writeAll(pda.getContacts(login_id), false);
writers.close();
can any one help me?
Thanks.

Last edited by nida; 05-21-2009 at 02:45 PM.
Reply With Quote