When using the Run Condition Query box “copy” functionality, the query fails with the error below because a parenthesis isn’t copied into the query box.
com.quest.nitro.service.sl.interfaces.scripting.ScriptingException: com.quest.nitro.service.sl.interfaces.scripting.ScriptCompilationException: script compilation error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: script_9e82d23b5b25a160cc1d33ca525a7fb3.groovy: 13: expecting '}', found 'else' @ line 13, column 2. }else{ ^ 1 error (script: 9e82d23b5b25a160cc1d33ca525a7fb3) ----script start------ if( (scope.get("monitoringAgent") == null) || (DBSS_IsLimitedMode(scope.get("monitoringAgent"))) ) { return false; condition = false; if (scope.get("type") == "Data"){ if (#DBSS_Data_Files_Percent_Used_For_Rule# >= registry("DBSS-DatabasesFixedDataFileUsed_Low")){ condition = true; }else{ condition = false; }else{ condition = false; return Dbwc_Common_SQL_Server_IsNeedToSendAlarm(scope, "DBSS - Fixed Data File Used", "2", condition);
---- script end ------?