On creating a feed and attaching it to a node, when I select the import tab, and click the Import button, I get the error message:

There was an error with the XPath query:

But it does not mention which of my queries was in error. I also note that when I "Preview" such a node, that there is no error checking. Is it possible, so that the errors are highlighted before trying out the feed importer?

Comments

twistor’s picture

Status: Active » Postponed (maintainer needs more info)

Are you still having this issue? If so, could I see your queries and maybe the document you're trying to parse?

trikegirl’s picture

I'm having this issue currently.

I followed the set-up instructions here: http://drupal.org/node/919448 and when I try to import, I see the same error message as above.

If I change my feed importer parser from XPath HTML parser to XPath XML parser, I don't get the error message when I try to import. However, only the last item from the feed is imported, no matter how many are available. (Though that one item imports perfectly.)

This is happening in 6.x.1.7, 6.x.1.8, and the 6.x.1.x-dev from 10/4. Any help would be great, and I'd be happy to provide whatever additional info I can.

trikegirl’s picture

Status: Postponed (maintainer needs more info) » Active
twistor’s picture

What version of Feeds are you using?
Also, if you could post your XPath queries and a sample of your source file, that'd be great.

trikegirl’s picture

I'm using Feeds 6.x-1.0-beta9.
File is at http://calendar.duke.edu/feed/list/1/xml/%28all%29/details/all

The XPath queries I'm using are:
Context: //event
field_event_location: location/address
field_event_date:start: start/longdate
field_event_date:end: end/longdate
title: summary
field_event_id: id

In the Mapping for Node Processor section, I'm mapping guid -> GUID as a unique target, though I don't have this field explicitly defined in my content type.

trikegirl’s picture

Actually, looks like I worked it out. I had to add an XPath expression for GUID. I guess the one that exists by default when a new importer is created isn't hooked in anywhere, so adding an expression for it and checking the unique target box worked.

twistor’s picture

Assigned: Unassigned » twistor
Category: task » bug
Priority: Normal » Minor
Status: Active » Fixed

Just ran across this original issue. Small oversight.

http://drupal.org/cvs?commit=434318

Status: Fixed » Closed (fixed)

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