Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What is the reason for the introduction of Mixed DML Exception in salesforce?

Asked by Darsh K May 4, 2023 745 views 1 answer
Share

About this question

I attended an interview in the past and some questions really left me wondering why salesforce behaves the way it does. I am seeking answers to these questions, mostly every blog talks about how to avoid these errors and what is the workaround, but not why Salesforce made a particular behaviour. I can recall a few of those questions:


What would have happened if Salesforce would have allowed a non setup and setup object DML operation in one transaction? Why did the MIXED_DML exception have to be introduced?


Why cannot we call a batch from another batch class in the Start method but only from the Finish method?


Why are Apex calls always asynchronous from LWC?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.