Copied to clipboard

Flag this post as spam?

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


  • Kevin Duong 15 posts 85 karma points
    Aug 09, 2016 @ 20:19
    Kevin Duong
    0

    Error on using RelatedLink with Ditto and Jeavon Property Converter

    public RelatedLinks RelevantLinks { get; set; }
    

    If RelevantLinks is empty, I get this error

    InvalidOperationException: {"Sequence contains no elements"}, but i want it to be empty.

  • David Peck 615 posts 1646 karma points c-trib
    Aug 10, 2016 @ 08:59
    David Peck
    0

    What line is throwing that exception. Do you need to replace RelevantLinks.First() with RelevantLinks.FirstOrDefault()?

  • Kevin Duong 15 posts 85 karma points
    Aug 10, 2016 @ 13:28
    Kevin Duong
    0

    It's throwing the exception when I try to store it into my Ditto model. I'm not usnig First() or FirstOrDefault() yet. I haven't begun trying to pull the data, it's erroring before I can even do that.

  • David Peck 615 posts 1646 karma points c-trib
    Aug 10, 2016 @ 22:04
    David Peck
    0

    Bums. Sounds like a Ditto issue. You might have more luck posting it on that forum.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies