When I try to import new items I get the message: "There is not new content"... The xml file has new content, but nothing is imported.

Ideas?

Feeds XPath Parser 6.x-1.11
Feeds 6.x-1.0-beta10
Chaos tools 6.x-1.7

Comments

avantwaves’s picture

Title: "There is not new content"... » "There is no new content"...
ethant’s picture

Have you been successful in pulling in content when you created the feed? Is the problem that it just won't update, or that it never pulled in data?

How are you structuring your query? Can you post a link to the feed?

avantwaves’s picture

Yes the feed was working fine. I updated feeds and feeds_xpathparser and the now I have this "There is no new content" problem

My query is simple. The context is, for example:

estates/estate

and then

rooms
area
services/service

etc

I can't post the link to the feed because it is a restricted feed with limited querys per day etc... sorry

avantwaves’s picture

Even more strange, I made a Drupal fresh install without any nodes at all and tried to import the feed and I got the same error message :S How is this possible in a site with no content at all??!!

I validated my XPath syntax using online tools and a new desktop app.... they are ok.

I will post more info later.

karengrey’s picture

Im getting the same problem but I know the reason why, hoping you know of a fix/solution?

My XML file used to be like this (and worked fine):

<properties>
  <property>
    <reference>123abc</reference>
    <price>250000</price>
    ...
  </property>
</properties>

But I have since started using XSD validation and so the structure of my XML has changed to this:

<properties>
  <property>
    <info>
      <reference>123abc</reference>
      <price>250000</price>
    </info>
    <images>
      <image1></image1>
    </images>
    ...
  </property>
</properties>

Because I now have child elements like and the mapping is no longer working.
Do I need to map these elements in my processor? what would i put in the parser settings?

Thanks!

karengrey’s picture

Nevermind I figured it out!

in the parser settings / import page

changed my mappings from
reference
price
image1
to
info/reference
info/price
images/image1

:)

avantwaves’s picture

Cool :) I am glad for you. I had the same problem in the past. Targeting specific child could be tricky. One tip that I found...

For a child like this one.

<context>
<comments>
	<comment lang="fr_FR">Some Content</comment>
	<comment lang="en_EN">Some Content</comment>
	<comment lang="es_ES">Some Content</comment>
</comments>
</contex>

This: comments/comment[2] will target the en_EN comment node

Or you can use: comments/comment[@lang='en_EN'] too...

Still looking for help with my "no new content issue" :(

avantwaves’s picture

Status: Active » Closed (fixed)

I am soooo stupid! I was using the wrong parser. I was using xpath HTML parser instead of XML... Stupid idiot...
Now I am having other issue but does not fit in this thread.. :)

ethant’s picture

Lol - I've done that multiple times.