Error storing value Tiny DB

Hello! I’ve try to use those blocks to store values in form of lists on TinyDB, but I get the error: The operation add items to list cannot accept the arguments: , [empty-string], [(Name11 Javier Peter 0 0)]
Why it say empty-string? How can I fix it?
Thanks!

That means there isn’t such this tag.So tiny db returned empty string.You must check, that you’ve stored any value to your tiny db tag.
P.S: it’s better when you work with lists and tiny db set value if tag not there to empty list.
BTW, it’s always better to set a variable to the tiny db value and use this variable in your blocks.

3 Likes

I finally use the block:
If “Lenght of List Get Tag List” is not 0, do this
And it works :smiley:
Thanks!

I have added this, but I get the same error when trying to add a new list to the existing list

Yes. that doesn’t matter but it will be easy for you to use :wink:
this problem is because your tag is still empty so you can’t get any thing from it.

But how to fix the error? :sweat_smile::sweat_smile:

you need to try this.New users there tiny db will be empty so they will get empty string.

yes you need to replace it with the is empty block.

1 Like

Only a few words…

I LOVE YOU :blue_heart::blue_heart::joy: :kodular:

1 Like

Sorry , but it looks like i posted before you post the blocks?:thinking:

So those aren’t working??The same error occur?

No, I have changed the blocks adding the empty list when it’s the first time :slight_smile:

Great so it’s working :partying_face: :partying_face: :partying_face:

1 Like

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