I'm using node import 5.x-12 with Drupal 5.5. Everything goes OK until I hit the 'Delete CSV file from server' button as the last step (I'm importing a tsv file into a CCK content type). When I do that, all the nodes I imported are duplicated:
[Pre import]
mysql> select count(*) from node;
+----------+
| count(*) |
+----------+
| 274 |
+----------+
1 row in set (0.00 sec)
[Post 'Apply (import nodes)']
mysql> select count(*) from node;
+----------+
| count(*) |
+----------+
| 617 |
+----------+
1 row in set (0.00 sec)
[Post 'Delete CSV file from server']
mysql> select count(*) from node;
+----------+
| count(*) |
+----------+
| 960 |
+----------+
1 row in set (0.00 sec)
I can repeat this consistently.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | node_import.patch | 317 bytes | xtfer |
Comments
Comment #1
Matthew Davidson commentedAnd in my experience at least, the file isn't deleted.
Comment #2
Matthew Davidson commentedAh, just found this patch for the file deletion problem.
Comment #3
stevryn commentedYes I thought I was nuts....I went to delete the file...and I ended up instead with an extra 1876 nodes :) Thanks for posting the link to the patch!
Comment #4
xtfer commentedThis patch seems to fix it and is easy to apply [thanks David_Rothstein]:
http://drupal.org/node/199694
However, it means that "CSV" is used and a TSV is also possible, so it would be easier to just specify "file", as in the patch attached:
Comment #5
xtfer commentedComment #6
wmostrey commentedNice work xtfer, works as advertised.
Comment #7
Robrecht Jacques commentedCommitted to DRUPAL-5 branch. It will be included in the next release of node_import (v 5.x-1.3).
Thanks!
Comment #8
Robrecht Jacques commentedComment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.