I have a scnario which I am not able to get through.
I have two objects, Obj A and Obj B, both related through Master-Detail relation with Obj A being Master.
Now, I have some records to be inserted into Obj B via Data Loader.
Can I insert the records directly into Obj B without having corresponding record in Obj A through Data Loader or how do I crack this?
Sorry on a vague question. Thanks in advance
Best Answer
Yes, it's a vague question :)
Let me try answering it for you. So, I start by asking a question, can a child exist without a parent(in any context)?.
The simple answer is never. Master-Detail Relationship is Tightly coupled. Deleting of a parent record will delete it's child record too.
A child record cannot exist without a parent record.
So you cannot insert records into obj B without relating it to any record in obj A.
To allow this, you can either change the
master detail relationship
tolookup
or create a dummy record in object A and associate all records in obj B with that record.See if this helps!