You need to sign in to do that
Don't have an account?

cannot create a new Master-Detail relationship
how to create a Master-Detail relationship field it shows error
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.
Create a Junction Object with both the Object i.e. Master & Detail. Only then you will be able to create it.
Master - Detail relationship requires that the Detail Record (Child) ALWAYS have a Master (Parent) record since the detail record inherits security and ownership from the parent record.
Therefore, if you want to create a Master - Detail relationship between existing objects, you need to make sure that all the existing records for the child object have a lookup value to the parent object BEFORE you can create the Master Detail relationship.
1. Create a lookup from the child object to the parent object.
2. Populate ALL the records with a valid lookup value to the parent.
3. Change the Lookup relationship to a Master - Detail relationship. This is only allowed if ALL RECORDS HAVE A VALID LOOKUP. Otherwise you'll get the error you describe.
The Master-Detail relationship is covered in detail in the Certification Exam and is in the Developer Guide (Chapter 3).
http://wiki.developerforce.com/index.php/Force_Platform_Developer_Guide
How to populate ALL the records with a valid lookup value to the parent?
using dataloader or ?
Regards,
LinThaw.
Full disclosure, I work for Passage Technology - the makers of Lookup Helper.
To solve the problem and create Contact__c and Property__c fields you need to delete all the records in the object tab fg. Offer Tab. After that you'll able to create those fields. Window with new offer will have contact and property fields.
If you don't want to delete all your offer entries then check that link: https://help.salesforce.com/articleView?id=000005186&type=1
Hello ,
I am trying to create Master Detail Relationship between Doctor and patient object but getting following message,
"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."
Please any one suggest me steps to reslove this..
Thanks,
Abhaysing Bhosale
Answer is in the error message.
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.
but actually i am new and beginner in salseforce trying to learn. so didnt get how to create lookup relationship.. :(
"Challenge Requirements:
On the Offer object, add a Master-Detail relationship to the Property object named Property
On the Offer object, add a Lookup relationship to the Contact object named Contact
However, I was able to find solution to the above challenge. So, for answer, please refer to the knowledge article - Unable to create master-detail relationship, in Help section of Trailblazer community.