Hi everyone I am super new here, I hope you can help me. I am trying pass the challenge about creating the Master Det. relationship.
I have attached the screenshot. basically the error says: 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 think I have complete all the prev. requirements properly. I basically don't understand which record already exist.
I can't do the way the system suggests because another part of the challenge is to create a lookup.
Even if you're completing this module as part of the Admin Beginner trail, be sure you use the new Trailhead Playground you created in the previous unit.
Before You Start:
- Create the Property object as described in the previous unit.
Challenge Requirements:
- Create a custom Master-Detail field on the Offer object
- Data Type: Master-Detail
- Field Label: Property
- Field Name: Property
- Create a custom Lookup field on the Offer object
- Data Type: Lookup
- Field Label: Contact
- Field Name: Contact
You can delete all offer records first and then try.
So basically the error says is this
If you have existing offer records, you cannot create a master-detail to Property object.
This is because in a master-detail relation you can't create offer records without having property record mapped to the offer.