You are on page 1of 2

18/2/2014

Troubleshooting import errors

Troubleshootingimporterrors

Category:QuestionsandAnswers PublishedonTuesday,16March2010 12:17

Oftenwhenweimportfileswerunintoerrorsthatthefileisnotbeingreadcorrectly.Wheretostartlookingforthecauseofthe issueandhowtosolvethis?

Checkpoints
Followthesecheckpointstomakesurethatyouhavethebasicsright. 1. UptodateAvailableFields Thelistofavailablefieldsshouldbeuptodatebeforeimportingstarts.Ifthefieldlistisnotuptodatetheimportmay failduetomissingfields.ToupdatethelistofavailablefieldsgotoMaintenance>SelectUpdateAvailableFields> Clickcontinue 2. AcleanCSVfile ACSVfileshouldnothaveanyextracharactersinanyplace.AgoodCSVfilemaylooklikethis: "product_sku","product_name" AbadCSVfilemaylooklikethis: "product_sku,product_name"<The"atthebeginningandendofthelinearewrong or product_sku,product_name,<Thetrailingcommaiswrong 3. Delimiters Thetemplatemustusethesamedelimitersasyourfilehas.Thetypeofdelimitersdoesnotmatter.Toknowwhat delimitersyourfileuseslookatyourfilewithNotepadforexample. Someexamplesofdelimitersare: Sample "product_sku","product_name" ~product_sku~^~product_name~ product_sku|product_name Fielddelimiter Textenclosure , ^ | " ~

Checkthatyouhavethedelimitersfilledinyourtemplatesettings.CSVIneedsthistoknowhowtoreadtheCSVfile. AlternativelyyoucanusetheAutomaticdelimiterdetection. 4. Encoding ThefilemustalwaysbeencodedinUTF8format.Nootherencodingissupported.SeethisSavefileasUTF8using Notepad2videoonhowtosaveyourfileasUTF8usingNotepad2orthistutorialusingLibreOffice/OpenOffice.Thisis importantbecausefilesimportednotinUTF8encodingwillnotimportcorrectlywithspecialcharacterslike. 5. Fieldnames Useonlyfieldnamesthatareavailableforthetypeofimportyouaredoing.Toseewhichfieldnamesareavailablegoto CSVI>AvailableFieldsandfilteronthetypeofimportyouwanttodo.Itisnotpossibletouseanyothername.This meansthatifyourCSVfilecontainsthenamessku,price,namethatthesecannotbeused,youhavetotranslatethem toCSVIfieldnames.Yourcolumnnameswillchangelikethis: sku>product_sku price>product_price name>product_name Thisneedstobedoneforallthefieldsinyourfile. 6. Fielddata MakesurethedataisproperlyformattedaccordingtothespecificationsontheAvailableFieldslist. 7. Lineendings YourfilemustuseUnixorWindowslineendings.Machintoshlineendingsarenotsupported.Asofversion3.7youcan choosetoselecttheI'mMacoption,thiswillreadMacintoshlineendings. 8. UsetheCSVIAnalyzertocheckyourfileforanyissues.
http://www.csvimproved.com/frequently-asked-questions/635-troubleshooting-import-errors?tmpl=component&print=1&page= 1/2

18/2/2014

Troubleshooting import errors

9. Checkthedebuginformation ThedebugreportshowseverystepCSVItakeswhenimportingthefile.SeetheHowtocollectdebuginformationon howtogetyourdebugreport.Checkthedebuginformationforanythingthatmightbegoingwrongorpostitintheforum. 10. MagicQuotesMUSTbeturnedOFF SeetheMagicQuotesdocumentationfordetails. Afterhavingcheckedthesecheckpointsyourimportshouldberunningsmoothly.CheckoutalsothisPreparingyourCSVfile tutorialonhowtoprepareyourCSVfile.

http://www.csvimproved.com/frequently-asked-questions/635-troubleshooting-import-errors?tmpl=component&print=1&page=

2/2

You might also like