Copied to clipboard

Flag this post as spam?

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


  • Owain Williams 481 posts 1413 karma points MVP 7x c-trib
    May 13, 2015 @ 13:27
    Owain Williams
    0

    Import failed - post-url

    Hi, 

    I'm importing a BlogML file in to Articulate but it fails at line 255

    Importing failed with errors
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Articulate.BlogMlImporter.<ImportPosts>d__1b.MoveNext() in x:\Projects\Articulate\Articulate.Project\Articulate\BlogMlImporter.cs:line 255

    This line within the the BlogImport.cs is 

    var slug = post.Url.OriginalString.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries);

    So I had a look at my BlogML and I don't have the post-url within my file because I want Umbraco to create it's own URL, is this possible or should I just enter something in here to allow the import to work? 

    My posts element looks like this:

     <post id="0" date-created="25/09/2012 08:57:25" date-modified="25/09/2012 08:57:25" approved="true" type="normal" hasexcerpt="false" is-published="true">

     

    Thanks,

  • Owain Williams 481 posts 1413 karma points MVP 7x c-trib
    May 13, 2015 @ 13:49
    Owain Williams
    0

    Already fixed this - basically, I've put something in to the post-url field and Umbraco ignores it anyway and the import has worked, then once I publish, Umbraco gives it a URL which works. 

    Sorry to have wasted your time. 

  • Shannon Deminick 1526 posts 5272 karma points MVP 3x
    May 13, 2015 @ 23:55
    Shannon Deminick
    0

    Glad you got it working!

Please Sign in or register to post replies

Write your reply to:

Draft