Activity Forums Salesforce® Discussions What does error System.ListException: List index out of bounds: 0 in Salesforce?

  • What does error System.ListException: List index out of bounds: 0 in Salesforce?

    Posted by Deepak on April 20, 2020 at 8:57 am

    What does error means System.ListException: List index out of bounds: 0 in Salesforce?

    Ratnesh replied 4 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Ratnesh

    Member
    April 20, 2020 at 1:11 pm

    ListException: List index out of bounds: 0' error occurs and how to resolve it. If we attempt to access an element at row 0, The code will throw an error if no data exist at row 0. It is a good practice to check whether there are records in the list before accessing any element from that list.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos