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

What can be the issue if AsyncApexJob returns two records for only one executed instance of a batch?

Asked by Dan Peters Aug 29, 2023 997 views 1 answer
Share

About this question

When I execute one batch, it runs only once. It has been verified by me from ‘ApexJobs’ from Setup. But as I am enquiring about the AsyncApexJob for the batch class, two records are being returned, which are created at the same time. 

I have applied the below query:

Result for the query above:

But when looked at the Apex Jobs, only one instance of one time is shown:

I need someone to assist me as I am unable to identify the issue here.

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.