I am running batch in the background where I am creating Master Accounts based on some criteria, however for testing purpose I deleted all Master Account records which were created from running the batch class.
Now when I am running the batch again, which will create the Master Accounts and will link to child accounts based on logic added, I observed that for few of the records on which Master Accounts were linked are referencing the old Master Account which I have Deleted.
Why the value is not getting Clear from the Look-up field even though I have enabled option :
What to do if the lookup record is deleted? Clear the value of this field.
Please suggest and advise.