How to resolve table errors after an update? (HELP)

cesario678

Client
Регистрация
10.03.2022
Сообщения
207
Благодарностей
13
Баллы
18
I started noticing in all my bots that were working normally that, after updating, they began showing errors that weren't there before. Now my table doesn't reload, and the data disappears from the table. I will create a video demonstrating this. As you can see, no matter what I do, my data won't reappear, and this is causing issues in dozens of scripts that used to work perfectly fine.

LINK VIDEO
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 872
Благодарностей
1 195
Баллы
113
I see the problem in your path.
If you have a dynamic path to file you dont put path variable in Table Settings.
Instead, use separate action.
Table ==> Bind to the file
 
  • Спасибо
Реакции: cesario678

cesario678

Client
Регистрация
10.03.2022
Сообщения
207
Благодарностей
13
Баллы
18
I see the problem in your path.
If you have a dynamic path to file you dont put path variable in Table Settings.
Instead, use separate action.
Table ==> Bind to the file
and it works. The question is: when initializing the table, what do I put there? Nothing? And how do I save the table at the end of the bot's execution? Because I initialize the table, ask it to read the data, and only delete part of the table's data at the end, after it has done everything I wanted. Then it deletes that part and saves the updated data back to the table. With this bind function, how would I handle the rest of this process? What should I put when initializing the table? Which folder? None?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 872
Благодарностей
1 195
Баллы
113
Yes, you put nothing in table path directly.
You dont need to save table.

When adding a line, it is automatically added in file without doing anything else.
Same with removing/deleting line/s from table, they are automatically removed from file.
Of course you have to tick checkbox Save table changes in file in table settings, or your changes will not be reflected in file.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)