I tried to complete the assignment of yesterday and got stuck when this message coming up



0
Cannot Create Master-Detail Relationship
You cannot create a new Master-Detail relationship on an existing custom object if records already exist. You must first create a Lookup relationship, populate the lookup field with data in all records, and then change the relationship type to Master-Detail.

I have tried doing so but it does not seem to work for me.

1 Answer(s)


0

You have 2 Options
1) Delete all records in detail object.
2) Create relationship as lookup, then populate parent record in all existing records.