SCADA-LTS / Scada-LTS

Scada-LTS is an Open Source, web-based, multi-platform solution for building your own SCADA (Supervisory Control and Data Acquisition) system.
GNU General Public License v2.0
743 stars 292 forks source link

datasource activation gives error message #3020

Closed nduvernois closed 1 month ago

nduvernois commented 2 months ago

On a given datasource already present & active, try to activate it or deactivate it. An error window pops up with message : "Incorrect result size: expected 1, actual 0" the attached file shows a part of file stdout logfile. error_message_activate.txt When it appears, the datasource state is not toggled. After some page refresh, it may finally succeed.

Limraj commented 2 months ago

Hi @nduvernois,

This is because the database events have been removed. In version 2.8.0 this error will no longer occur here, because in this version we do not retrieve the event from the database this place. However, it is worth securing the service that retrieves the events, in such a case, this will also be corrected in version 2.8.0.

Regards.