SQL Query error Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
Thuis
Posts: 291
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

SQL Query error

Post by Thuis »

I installed beta 17950. One device is giving an error, although i have lots of this device types. It is a virtual device usage/electra.
Spoiler: show
Error: SQL Query("SELECT Value, Price, Date FROM MultiMeter_Calendar WHERE (DeviceRowID==2149 AND Date>='2026-05-06' AND Date<='2026-05-13') ORDER BY Date ASC") : no such column: Value
2026-05-13 17:00:00.798
No such column: value, anyone else seeing this? Should i add a column myself or should it see value1 or 2 instead of value?
Fun for everyone!
willemd
Posts: 799
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: SQL Query error

Post by willemd »

I think you need to check where this device is stored by using select * from either multimeter_calendar or meter_ calender and then use the correct column names for that table.
User avatar
Thuis
Posts: 291
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: SQL Query error

Post by Thuis »

Ok thanks, i adjusted the db and it seems to be giving no more errors.
Fun for everyone!
Post Reply