Created app is not working as expected and tested through companion app

Hello everyone,

I have developed an app and thoroughly tested all scenarios using the AI Companion app on my mobile. After completing the tests, I built the app, downloaded it, and tried running it. However, I am now encountering the following error:
image

The same app is working fine in the companion without any errors.

Can anyone help me troubleshoot this issue? Any suggestions would be greatly appreciated!

See here:

If there is any issue in the code, it has to be caught in the AI Companion app but here in my case, Companion app passed all the tests and issue is occurring in the .apk file in the mobile.

Not necessarily, it will depend where that empty item arises.

will the issue occurs if I give same inputs for both built app and companion app?

Can't do any more guessing, someone would need to see your project to advise further.

Look through the common runtime errors topic, check your startup routines, components and variables, and/or the routine that generates this error. There is probably a component or variable or list that needs to have at least a 0/Zero or "something" in it.

would you be able to help me if I provide the entire code to you through a file.

When this error happens in a new environment, it often is a result of encountering a blank text Not Found return where a Create Empty List was needed.

Check your TinyDB access blocks, where you retrieve list values.

Yes, if you do not want to upload it in the community, send it via Private Message (click on my icon)

An aia project is required, and apk is of no use.

Screen4.txt (10.5 KB)

This is my code and below is the UI it has and when clicked Add then only the error popping up in the built app.

Expected Result : The current screen is to input the points and when clicked on Add, the screen has to navigate to other screen which maintains the points and adds up with the corresponding player.

Thanks for the aia.

Runtime error arises when pressing the Add button. This is caused, I believe, because your scoreboxes are empty, when (as I previously advised) they need to be at least 0/zero.

There are also issues with your logic, and it all seems very slow...

You are also not switching screens correctly, this will eventually lead to your app crashing

As we have advised, i would suggest you work through all your blocks on all your screens, and ensure that any textboxes or variables that will be used as numbers are initialised with 0 (if not already initialised with another number). You may want to set such textboxes as NumbersOnly as well...

What tool did you use to generate that text file?

Also, that use of global variable List_Combined as a screen start value is risky, and could fail in a debugging environment. You don't check if the global variable is a list and has enough items before you go selecting items 1 and 2 from it.

My Scoreboxes are not empty when I clicked Add button, I will refine my code and see.

I manually wrote down the block code into a readable format code.

Issue has been resolved. Below is the fix I made.

I have difference in the TinyDB storage block between two screens, which made the variables to be '0'.