Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

loop on self relationship lookup

Posted on by

Hi All

I have a self relationship set up on the contact entity, so on the contactentity form, there is a contact lookup referencing to contactentity. I know circular relationships are not allowed, however this seems to be stuck in a loop which i cant figure out as I am not able attach any contact using the lookup. This action results in an error and log file for it is below.

However this is not an issue when creating new records, I can reference contacts using the lookup. This seems to be an issue only for existing contacts. What am I missing and what tools can i use to check this error in more detail?

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Loop exists in this entity hierarchy.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220602</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />rm foru
<Message>Loop exists in this entity hierarchy.</Message>
<Timestamp>2016-12-15T13:13:54.5325554Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Thanks

*This post is locked for comments

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: loop on self relationship lookup

    Hi,

    Maybe you are choosing contact that already has this first contact as a reference? You have no constraints on your lookup and probably you are just selecting contact that already has this lookup set to some contact. Try selecting contact that has nothing in this field.

    Also you did not describe your problem very deeply - is this error occuring when you are saving record? Or when you are opening lookup? Or choosing something from lookup? Some screenshot would also be nice to refer to.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans