Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tony Kiernan 278 posts 341 karma points
    Oct 12, 2012 @ 12:50
    Tony Kiernan
    0

    Recursive Import from RSS

    I have an RSS feed of contact details.  Each item includes a Region and Town field. I have nodes for the regions.  If I try to import with the regions selected as the foreign key, all my towns are being created at the same level

    Any suggestions?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 13, 2012 @ 06:04
    Richard Soeteman
    0

    HI Tony,

    Is the primary key value of the parent also the Region field?

    Thanks,

    Richard

  • Tony Kiernan 278 posts 341 karma points
    Oct 13, 2012 @ 14:18
    Tony Kiernan
    0

    Yes, it is

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 14, 2012 @ 07:24
    Richard Soeteman
    0

    Check the CMSImportRelation database table please. All relations are stored in this table and CMSImport determines the parent node based on this table. The primary key info is stored in the DataSourceKey column. Format is [DataAdapter][Primary key column][Primary key value]. I'm sure there is a mismatch there.

     

  • Tony Kiernan 278 posts 341 karma points
    Oct 18, 2012 @ 16:49
    Tony Kiernan
    0

    When I look at that table, it is as I could expect for my results.  Region folders indicate the Locations one as parent and read eg "Rss FeedregionScotland".  The supposed child ones show the Locations folder as eg "Rss FeedtitleStirling"

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 18, 2012 @ 16:56
    Richard Soeteman
    0

    Weird,

    Is the rss file public available?

    Thanks,

    Richard

  • Tony Kiernan 278 posts 341 karma points
    Oct 18, 2012 @ 18:00
    Tony Kiernan
    0

    Not really, but you've got mail

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 19, 2012 @ 08:04
    Richard Soeteman
    0

    Hi Tony,

    I've seen the feed it's not a valid rss format. Use the xml adapter for this first import region select region as primary key. Then create a child import and select region as foreign key. The rss Adapter uses link as key.

    Hope this helps,

    Richard

  • Tony Kiernan 278 posts 341 karma points
    Oct 19, 2012 @ 12:54
    Tony Kiernan
    0

    If I choose xml, I only get access to the channel declarations (title, description, link, lastBuildDate, pubDate) and not the items in the feed

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Oct 19, 2012 @ 13:22
    Richard Soeteman
    0

    select //item as xpath and you should get the data

  • Tony Kiernan 278 posts 341 karma points
    Oct 19, 2012 @ 13:37
    Tony Kiernan
    0

    Ahem....

Please Sign in or register to post replies

Write your reply to:

Draft