What was the error it cause?
Have you added set vertical arrangement 1+ get vertical arrangement 1 before this add items to the list?
If you show all the relevant blocks it could be easy gor us to guide you. Also of you click on do it option on all the global variable you may find the problem yourself. Else share us the result
aaa1
May 17, 2025, 7:53am
4
Yes, it has been initialised as create empty list
Yes it is
The error message is "the operation add items to list cannot accept the arguments: , [0]"
aaa1
May 17, 2025, 7:57am
5
The error message is "the operation add items to list cannot accept the arguments: , [0]"
Yes, I have already incremented the vertical arrangement 1 before the add items to list block
I would send the code but it's massive and a lot of it is irrelevant to the issue
Is this full error?
Because it miss the global list in which you adds the item also f it saya error with index 0 which mean your increment is not added properly.
If possible show us full blocks
1 Like
aaa1
May 17, 2025, 8:41am
7
Please note the blocks aren't fully complete yet, and I'm still working on them, particularly for for 2, 3, and 4 switch.
The issue is currently in the 1-switch, which I am stuck at
ABG
May 17, 2025, 10:23am
8
I caught a quick peek at your code, and I have to recommend a recent tutorial on how to deal with not found lookups ...
This tutorial is an essay on how to deal with notfound return values from various lookups like
lookup in pairs
TinyDB lookup
lookup in dict
lookup in FireBase, CloudDB, etc.
Sample code for this article is in ai2.appinventor.mit.edu/?galleryId=6553745952997376 or can downloaded as notfound_confound.aia (275.1 KB)
Block images in this post have been downloaded using AI2’s Download Blocks as Image facility, so they can be dragged directly from this post into your Blocks Editor work space.
Th…
1 Like
I think you need to upload your Project here (.aia) and hopefully a Power User can find the time to study it.
1 Like
aaa1
May 17, 2025, 11:31am
10
The error message didn't mention a not found error though, just "the operation add items to list cannot accept the arguments: , [0]"
When you get this error, that time click on all the global variable which are associated with add items to the list. I am sure you will be identity your problem. Else click do it on all global variable, take screenshot and send us
1 Like
ABG
May 17, 2025, 12:48pm
12
The Not Found situation raises no errors, but provides an opportunity to return something inappropriate, to be discovered later.
1 Like
aaa1
May 18, 2025, 12:58am
13
Sorry, how do you do that? I tried by getting the variable and displaying it on a button right after the screen loeaded, and the results are:
Verticalarrangementids are 0
Vertical_arrangement1 is 1
(Starting value for vertical arrangement 1 is initialised to 1, vertical arrangementids are initialised to create empty list).
ABG
May 18, 2025, 1:48am
14
Same tag, different purposes?
1 Like
aaa1
May 18, 2025, 6:49am
15
Thanks for pointing this out, I fixed it but the same error is still showing
I just discovered a combination that leads to Project corruption:
Windows 11 + FireFox 138.0.4
If you have the same, switch to Chrome.
1 Like
aaa1
June 9, 2025, 6:40am
18
Hey guys a bit of a late update, but according to chatgpt code checker I found out the error has to do with the add items do list being invalid or corrupted
aaa1
June 9, 2025, 6:41am
19
Still have no idea where to go from here though
system
Closed
June 20, 2025, 1:19pm
23
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.