Attempt to get item number 2 of a list length 1: (0)

Hi, I have a problem I can’t fix. When I try to run the program attached, I receive the following error:

Select List Item : List Index Too Large Attempt to get item number 2 of a list length 1: (0)

I know that it’s a very common error, and that there are several threads on the subject, but I really can’t seem to figure it out.

Any suggestions? Thanks!

Check your blocks where you use index 2. Your list have 1 item.


First of all notice red x marks in global variables


The proper way to use it is to initialize global variable to an empry string or an empty list and then set it to call tinydb values


Best way to find the problem is using Do it to debug your blocks



Nothing, still doesn’t work. But, in another app, I used the same algorithm, as you can see in the new attached image, and works wonders. I don’t understand what’s different.

Any other answers? Thanks.

Again, your error message says you are trying to get index 2. So, as WE mentioned above, check where you try to get the value of item 2.
Verify your lists.
Maybe split1 , split2, split3, split4…
It is.

1 Like

As I said debug your blocks, use Do it see for example how easy is to see the result and locate your error.