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.

CommentFileSizeAuthor
#4 node_import.patch317 bytesxtfer

Comments

Matthew Davidson’s picture

And in my experience at least, the file isn't deleted.

Matthew Davidson’s picture

Ah, just found this patch for the file deletion problem.

stevryn’s picture

Yes 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!

xtfer’s picture

StatusFileSize
new317 bytes

This 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:

xtfer’s picture

Status: Active » Needs review
wmostrey’s picture

Status: Needs review » Reviewed & tested by the community

Nice work xtfer, works as advertised.

Robrecht Jacques’s picture

Committed to DRUPAL-5 branch. It will be included in the next release of node_import (v 5.x-1.3).

Thanks!

Robrecht Jacques’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.