Since you are using a script, the issue may also lie with data types used.
For instance, do you have an auto increment ID in your table, and if so, what is the data type and size you set for it?
Also, inside the script you use to populate the data, make sure that the variable types do not have inherent size limits.