Sorry, maybe I'm missing something very obvious here:
I have a couple of hundreds html files in public:/oldsite (those are downloaded, cleaned with script and tidy'ed).
I'm trying load them with: Attached to: [none] / Periodic import: off / Import on submission
Fetcher: File upload / Parser: XPath HTML parser / Node processor
When I run importer, I get only one new node created and xxx-1 updated (xxx is the number of files in oldsite directory).

Comments

twistor’s picture

Component: Miscellaneous » Code
Status: Active » Postponed (maintainer needs more info)

Do you have a field marked as unique? And is it unique per item?

veskimees’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ehh... Thank You very much!
(Actually, it was little more complicated, but my mistake anyway -- I had GUID as unique in first position.)

littledynamo’s picture

I had a similar problem and just wanted to note it here in case anyone else runs into the same issue.

- Importing 19 nodes from CSV
- Column named row_guid is mapped to GUID and set as a unique field.

After running the import I got the message:

Created 1 node
Updated 18 nodes

But only 1 node gets created. In the status box it says:

Last import: 1 sec ago.
1 imported items total

Solution

There was an blank row at the bottom of my .csv file. I opened the file in notepad and removed that line and all 19 nodes imported correctly.