• Anand Prakash Tiwari
  • NEWBIE
  • 0 Points
  • Member since 2014
  • Anand

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I am having a lookup field for the same object (self lookup)
As per salesforce, we should receive following error if any record tries to make self as a parent or tries to choose any of the child record as a parent.

Hierarchy Constraint Violation
You cannot set a hierarchy field Parent Hotel to point to itself or a child record.

But, I am not getting this error if I am making a circular hierarchy, as described below -
  1. If making same record as parent of any record (record parent of self during edit) , A->A. then getting thsi error. This is good.
   2. If A -> B->A, then It is not giving error.

Could you please help, if there is any configuration for enabling to restrict circular dependency from clild?


Regards,
Anand