Question

Difficulty: HardObject Relationships (Lookup, Master-Detail, Many-to-Many)

A Salesforce System Administrator at a manufacturing enterprise needs to change an existing Lookup relationship on the custom object Equipment_Maintenance__c (child) to a Master-Detail relationship with the standard Account object (parent) to enforce security inheritance and enable roll-up capabilities. When attempting to convert the field type in Object Manager, the system throws an error and prevents the modification. What prerequisite step must be completed before Salesforce will allow converting this Lookup relationship to a Master-Detail relationship?

  1. Populate a valid Account record reference in the lookup field for every existing Equipment_Maintenance__c record.Answer
  2. B
    Create a roll-up summary field on the Account object referencing Equipment_Maintenance__c prior to altering the relationship field type.
  3. C
    Delete all parent Account records that do not currently have associated Equipment_Maintenance__c records to reset deletion cascade settings.
  4. D
    Change the Organization-Wide Default (OWD) sharing setting of Equipment_Maintenance__c to Controlled by Parent prior to conversion.

Answer

Populate a valid Account record reference in the lookup field for every existing Equipment_Maintenance__c record.
You can convert a Lookup relationship to a Master-Detail relationship only if the lookup field on all existing records contains a value. If any child record has an empty lookup field, Salesforce rejects the relationship type conversion until every record has a designated parent.

Step-by-Step Solution

1
Identify the technical requirement for converting a Lookup relationship to a Master-Detail relationship.
Master-Detail relationships strictly enforce mandatory parent references across all child records.
Unlike Lookup relationships which allow optional/null parent fields, Master-Detail fields are mandatory on every child record.
2
Analyze why the system error occurred during field conversion in Object Manager.
At least one existing Equipment_Maintenance__c record contains a blank (null) Account lookup field.
Salesforce validates data integrity during relationship conversion and blocks the change if any null values exist in the target field.
3
Determine the necessary remediation action.
Ensure all existing child records have a non-null Account lookup value populated before attempting field conversion.
Once all child records reference a parent, Salesforce allows converting the Lookup field to a Master-Detail relationship.

Key Concept

Converting Lookup Relationships to Master-Detail Relationships
Estimated Time:1m 30s
Rate this question