RE: Have an error problem

You are basically coding a logger to TinyDB.

Here is a simple sample:

You can extend its entries with your button contents using a text JOIN block.