Error message is "The operation + cannot accept the arguments: , ["ot Fo"], [1]"

I encountered a problem in app inventor. When I clicked a button, an error message appeared. I can't find it anywhere on the internet.
Could anyone help me? Thanks a lot!

"The operation + cannot accept the arguments: , ["ot Fo"], [1]"

I found that when running ai companion, I can successfully find the value of tinyDb, but when converting it to .apk, I cannot get the value. How can I solve this problem? Thanks for your help.

Please show your relevant blocks. It looks like you are attempting to add (+) a value to a list somewhere.

on how to deal with not found lookups ...

I found that when running ai companion, I can successfully find the value of tinyDb, but when converting it to .apk, I cannot get the value. How can I solve this problem? Thanks for your help.

The apk has a different TinyDB contents than the Companion, so it is encountering Not Found situations.

If you can't read your code to find all Not Found situations, export the aia and post it here for some one to read.

That may take a day.

Posting Downloaded Blocks Images of all your screens may speed things up.

Now I make a simple version, attach .aia file, when using ai companion, the value on tinyDB can be obtained normally and add 1, but when it is converted to .apk file, the value on tinyDB cannot be obtained(Not Found). This is the problem I am currently facing. I look forward to your help, thank you
myTest05.aia (3.7 KB)

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Here are your current blocks:

Here is a patch to respond more gracefully to missing data:

You probably need more code to extend this at run time:
image

Alternatively, if you are not planning on adding more tags and values at run time, use a List Picker instead of a text box for the choice of tag. Feed the List Picker Elements from a TinyDB GetTags block.

I recommend you read up on TinyDB Namespaces or dictionaries for ways to store multiple attributes (B,10000) under different keys.

There is no need to cram both values into a single TinyDB value.

I tried changing the input data to a listView or trimming the original TextBox to remove leading and trailing null spaces. It still worked fine in AI Companion, but once converted to an .apk file, an error occurred. (See attached image 001.) This issue really bothered me. Because AI Companion ran fine, I always thought it could become an app. That's why I've been so kind to you for your guidance. I'm very grateful.
myTest05 (1).aia (4.2 KB)

What is the purpose of the leading characters A,B,C,... ?
They need a name.

Try this:



myTest051 (1).aia (3.6 KB)

Since you are unwilling to consider what needs to be done with a new value, I removed that option, along with its TextBox.

I'm deeply grateful for all the guidance and assistance I've received this time.
I find tinyDb very convenient to use, and it runs smoothly in AI Companion. However, after creating an .apk file, whether I install it in BlueStacks App Player or on my HTC Desire 19+ cellphone, I always get a 'not found' error message when searching for data. This problem for a long time, cannot solve this problem, and I've finally given up on using tinyDb.
I'm deeply grateful for everyone's enthusiastic help.

TinyDB resides on the device.

New devices will have empty TinyDB.

So that's why whatever you search for will not be found.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.