I 'upgraded' from -alpha2 to -dev, both from 25dec2010.
Now, the following scenario does not work anymore:
- create a Feeds importer
- 'Import' nodes from a csv file. Afterwards, status says 'Importing - 100 % complete.'
- discover that some/most/all of your node are incorrect, so correct the data in the csv-file
- 'Delete items' . Afterwards, status has extra message 'Deleting items - 100 % complete.'
- 'Import' nodes again from csv file.
In -dev version, the last step is not possible anymore: the Import-button is greyed-out, as if the delete-process is still going on. Also, the Import button has the text 'Deleting (100%)'

It seems that some internal status is not set 'complete'?
I can work-around this issue by cloning the Feeds. (which works fine in -dev, not in -alpha2)

Comments

ymeiner’s picture

Yes, it happened to me to. any luck with that?

johnv’s picture

I now can 'reset' the Import the following way:
- open www.example.com/phpmyadmin and choose the database
- goto table 'feeds_source'
- reset the fields 'state' and 'fetcher_result' by setting the values to 'b:0;' (copy from other record to avoid typo's)

I do not know (anymore) if this is caused
- with any importer;
- only with existing importers after an 'upgrade' from -alpha2 to -dev;
- only for importers that are created via a feature.
I also had the impression that it was provoked by running multiple importers simulaneaously in different tab's of my browser.

@ymeiner, what is the history of your Importers?

johnv’s picture

FYI: I encountered one case where I could clear the status by starting cron: admin/config/system/cron
For a bigger importer I needed to start cron multiple times. Normally I do not set 'Process in background' and my cron is not running on my dev-installation.

sonar_un’s picture

I ran into this issue, but unfortunately, johnv's suggestions didn't work for me. Though it did point me in the right direction.

In PhpMyAdmin, I found the table 'feeds_source' and looking at the 'state' field, this is what I had.

a:5:{s:5:"fetch";O:10:"FeedsState":8:{s:8:"progress";d:1;s:7:"pointer";N;s:5:"total";i:0;s:7:"created";i:0;s:7:"updated";i:0;s:7:"deleted";i:0;s:7:"skipped";i:0;s:6:"failed";i:0;}s:13:"process_clear";O:10:"FeedsState":8:{s:8:"progress";d:1;s:7:"pointer";N;s:5:"total";i:0;s:7:"created";i:0;s:7:"updated";i:0;s:7:"deleted";i:0;s:7:"skipped";i:0;s:6:"failed";i:0;}s:10:"start_time";i:1304024171;s:5:"parse";O:10:"FeedsState":8:{s:8:"progress";d:0.9994469463537962727883723346167244017124176025390625;s:7:"pointer";i:189750;s:5:"total";i:189855;s:7:"created";i:0;s:7:"updated";i:0;s:7:"deleted";i:0;s:7:"skipped";i:0;s:6:"failed";i:0;}s:7:"process";O:10:"FeedsState":8:{s:8:"progress";d:1;s:7:"pointer";N;s:5:"total";i:0;s:7:"created";i:1995;s:7:"updated";i:0;s:7:"deleted";i:0;s:7:"skipped";i:0;s:6:"failed";i:0;}}
-------------------------------------

Where the "{s:8:"progress";d:0.9994469463537962727883723346167244017124176025390625" obviously looked strange to me as the rest of the indicators said it should be d:1. I changed it to this:

{s:8:"progress";d:1;s:7:"pointer";i:189750;s:5:"total";i:189855;s:7:"created";i:0;s:7:"updated";i:0;s:7:"deleted";i:0;s:7:"skipped";i:0;s:6:"failed";i:0;}s:7:"process";O:10:"FeedsState":8:

After the change (I had to change the source in two of my importers), the fix worked!

I hope this helps.

fultonchain’s picture

I can confirm this and also that the fix in #4 also worked for me.

If it sheds any light on the matter, in my case the issue only arose with one of several CSV files. It seems likely that the import/deletion was failing to complete because of a character encoding or formatting issue.

Unfortunately, I no longer have file available for examination.

TrevorBradley’s picture

Also had this problem, very annoying.

Inarus’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha4

Have the same problem on alpha 4. I can import and/or delete only 50 nodes. I have "d:0.9994469463537962727883723346167244..." instead of "d:1". Need to import over 250K nodes so this it`s huge problem for me. I`ll try 7.x-2.x-dev

Inarus’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev

The same story at 7.x-2.x-dev. Importer grab ~13000 nodes and stops :/

ehmprah’s picture

Same here: importing exactly 24600 nodes, then aborting with a 504.

zambrey’s picture

Subscribing. Very annoying bug.

Yorgg’s picture

Same issue here.
Subscribing

Yorgg’s picture

I thought this was the case though it's not. Good luck.

NicoB’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha4
Component: Code » Feeds Import

Same "NOP" here.
Subscribing.

mwbyrd’s picture

#4 Worked for me. Thanks Guys!

johnv’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev

good idea mbbyrd: giving feedback: indeed, using #4 is a good workaround!

MrHaroldA’s picture

A 'reset' button for crashed imports would be very helpful!

#2 is indeed a good workaround, but unacceptable for (most) users.

Dave.L’s picture

#2 did it for me...THX.
cancel button would be nice indeed :)

johnv’s picture

FYI, The following issue seems to provide a UI for this problem: #1454666: Add tool to reset locked feeds

alexmc’s picture

I too have this problem. The "fix" of going in to my database to tweek a value by hand is not acceptable when I have thousands of records to import and it is falling over lots of times for unknown reasons (mostly character sets).

PS The Status of the feed is shown to be "Importing - 22 % complete." and has been for several days. I don't know how that maps to

if ($progress == FEEDS_BATCH_COMPLETE) {

It sure is not "ACTIVE" but the greyed out button saying "Importing (22%)" means that the module thinks it is.

Julien Verkest’s picture

The fix in #4 also worked for me. Thanks sonar_un

Jim Kirkpatrick’s picture

Status: Active » Reviewed & tested by the community

Works for me too... updating.

trillex’s picture

The fix in #4 always cancels the import for me. I'm having the exact same issues as #7 but the workaround, for me, was to untoggle "Process in background". This is on a minimal Drupal installation.

franz’s picture

Status: Reviewed & tested by the community » Active

RTBC without patch?

iAugur’s picture

I had this same issue even with the latest dev version (7.x-2.x)
Feeds that had imported couldn't be used again - stuck on 'Initializing.'
I came up with a solution that may help someone else!

I had enabled the Title module to replace the node (entity) title field (actually product Title in a commerce install).
Deleting this replacement title field and reinstating the entity title enabled the feed to be run again!
Hope that helps someone else.
If this is the issue in your case then see #1613514: Importing nodes in bulk fail to create titles for all nodes after the first one for a related issue.

johnv’s picture

Status: Active » Fixed

Let's close this issue, since it should be resolved since June 27th, with this patch: #1454666-22: Add tool to reset locked feeds.

Status: Fixed » Closed (fixed)

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