Copied to clipboard

Flag this post as spam?

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


  • Jon Dunfee 199 posts 468 karma points
    Aug 13, 2013 @ 19:03
    Jon Dunfee
    0

    Member Parent to Page Child Relation v6.1.3

    First time I actually get to really put Relationships to use in v6 and I fall flat on my face.

    The Relation Type is configured to be Parent to Child direct with Parent set as Member and child the Document.

    Here's the code executing:

    Relation.MakeNew(member.Id, nodeId, rt, "Favorited");
    

    I don't have any current relations to the relation type and I receive the following error:

    {"The INSERT statement conflicted with the FOREIGN KEY constraint \"FKumbracoRelationumbracoNode1\". The conflict occurred in database \"MYDATABASE\", table \"dbo.umbracoNode\", column 'id'.\r\nThe statement has been terminated."}

    Thought I'd ask before submitting a ticket.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 14, 2013 @ 09:53
    Jeroen Breuer
    0

    Hello,

    Did you do all the steps from this tutorial? http://umbraco.com/follow-us/blog-archive/2012/12/7/getting-to-know-umbraco-relations.aspx

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft