Closed (outdated)
Project:
Importer
Version:
6.x-1.31
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Nov 2011 at 08:12 UTC
Updated:
26 Mar 2026 at 11:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kartelusm commentedI wasn't able to reproduce a bug. Would you be able to send me a file and an sql export of the table, so I can try with them?
Comment #2
fister_drupal commentedThanks for your immediate help very much, I have upload the table's sql file and excel file as attach, and it only report the warning with the selected option 'Insert into existing table' of 'Desired operation' when upload file to import.
Comment #3
kartelusm commentedHi, I've tried it with your data on MySQL DB (the only thing I changed were the names of the columns in the xls, but that has absolutely no relevance) and the module added the new row without a problem. I'm guessing that it has maybe something to do with the database you're using or the version of it. The relevant code that counts the number of columns (minus PK) in the table is this:
If this is incompatible with your database, maybe that's the problem. You can tweak it yourself (and share a patch for me to include) or alternatively tell me what are you using as a database so I can look into it.
Comment #4
fister_drupal commentedHi, I also use MySQL as database, and the 'importer' module detect the columns of DB table correctly, so I think the question is in the 'excel_reader2.inc', and it report wrong columns of excel file when I select the 'Insert into existing table' option on my drupal site. I will check the code of 'excel_reader2.inc', Thanks again!
Comment #5
rupertj commented