Sometimes the data is imported successfully, but very often i get this error, for same settings, same CSV file, same website
SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'title' at row 1
Title is somewhat like this
54365;laptop;new;1;4500;This is a laptop for sale
whereas it should be just laptop

CommentFileSizeAuthor
feeds_bug.png35.25 KBbankim22

Comments

franz’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Please check if your CSV is correct, this looks like some quote issue, or you misconfigured the separator (which can be either ',' or ';')

Please attach your CSV file and importer config.

extexan’s picture

I got this same error importing from an XML file. The field in question looked like this:

<published>Yes</published>

The DB field it is going into is VARCHAR(5). I had run this import successfully *many* times, but had to delete and recreate the import definition due to another issue. That's when this error came up.

When I recreated the import definition, I used the same name, thinking that all traces of the original definition must have been deleted. That must not be the case, though, because I then deleted the import again and created it with a different machine name. The error went away.

I did not modify my XML file at all during this process, so that seems to indicate an actual bug in feeds import, not a problem with the data being imported.

Also, when removing mappings and/or deleting an import definition entirely, ALL traces of the item(s) being deleted should be removed. I've noticed that, even just deleting a single mapping and adding it (or another mapping) back, it keeps the old info when I go to the parser settings.

puagardian’s picture

have the same problem with feeds

twistor’s picture

Component: Feeds Import » Code
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (fixed)