Activity Forums Salesforce® Discussions How to remove the error "List has no rows for assignment to sObject" - Salesforce?

  • How to remove the error "List has no rows for assignment to sObject" - Salesforce?

    Posted by krati on January 21, 2020 at 4:59 pm

    I have a method in Visualforce Controller where I am saving the query result in a list. Here is my list.

    listApexJob = [SELECT Id, Status, JobItemsProcessed, TotalJobItems, NumberOfErrors
                           FROM AsyncApexJob WHERE ID =: batchProcessId ];
    

    How to remove the error "List has no rows for assignment to sObject"?

    • This discussion was modified 4 years, 10 months ago by  krati vishnoi.
    krati replied 4 years, 10 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics