Hello,
I' m getting the error below due to this line in my component event script: result = system.db.runPrepQuery("SELECT DISTINCT id FROM Stoermeldungen_10713 WHERE t_stamp BETWEEN ? AND ?", [start, ende])
Traceback (most recent call last):
File "<event:propertyChange>", line 23, in <module>
java.lang.Exception: java.lang.Exception: Error executing system.db.runPrepQuery(SELECT DISTINCT id FROM Stoermeldungen_10713 WHERE t_stamp BETWEEN ? AND ?, , [Mon Mar 11 06:00:00 CET 2024, Tue Mar 12 06:00:00 CET 2024], )
caused by Exception: Error executing system.db.runPrepQuery(SELECT DISTINCT id FROM Stoermeldungen_10713 WHERE t_stamp BETWEEN ? AND ?, , [Mon Mar 11 06:00:00 CET 2024, Tue Mar 12 06:00:00 CET 2024], )
caused by GatewayException: Error executing function 'RunQuery': The current user does not have the required roles for this operation.
caused by GatewayFunctionException: The current user does not have the required roles for this operation.
Ignition v8.1.27 (b2023042509)
Java: Azul Systems, Inc. 11.0.18
I have an administrator permission and I don't encounter this problem when I use this function in the script console