714
Views
2
Comments
Frequently shows the error of 'Index out of bounds, index -1 for bounds [0,0]
Question
Application Type
Reactive

Frequently shows the error of 'Index out of bounds, index -1 for bounds [0,0]. How can it solved?



2023-02-04 14-30-18
Ayushi sahu

Hi RAMA KRISHNA TELLA ,

If you are using listindex then use it after list append ..

otherwise please  describe your question  little bit more .

Kind regards,

Ayushi Sahu

2022-02-25 19-42-59
Srinivas K Singadi

Hello RAMA KRISHNA TELLA

The error message "Index out of bounds, index -1 for bounds [0,0]" in OutSystems usually means that you are trying to access an index of an empty list or array, or an index that is outside the range of the list or array.

In OutSystems, arrays and lists are 0-indexed, which means that the first element has an index of 0, the second element has an index of 1, and so on. If you try to access an index that is less than 0 or greater than or equal to the length of the list or array, you will get this error.

To fix this error, you need to ensure that you are only accessing valid indexes of the list or array. You can check the length of the list or array using the Count function, and make sure that the index you are trying to access is within the range of valid indexes

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.