Applications Systems
SQL template error: Query must return at least 1 row
This article addresses an SQL template error in SAM 6.4 and higher. Error: Query must return at least 1 row.
First published date
Last published date
Overview
When you open the SQL template, the following error is displayed:
Error: Testing on node failed with down status. query must return at least 1 row
Product section
Cause
The SQL query is not returning any rows of data.
Resolution
- Click Edit Application Monitor.
- Copy the SQL query.
- Run the query in the Microsoft SQL Server Management Studio for the initial catalog or database specified in the monitor.
If the SQL query returns 0 rows, rewrite the query so at least one row is returned.