--- title: "Both SELECT query and SET query must be set for listen operation" slug: "both-select-query-and-set-query-must-be-set-for-listen-operation" updated: 2026-10-16T13:37:44Z published: 2026-10-16T13:37:44Z canonical: "help.csgi.com/both-select-query-and-set-query-must-be-set-for-listen-operation" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.csgi.com/docs/llms.txt > Use this file to discover all available pages before exploring further. # Both SELECT query and SET query must be set for listen operation ## KW-01-007-03-0015 Database node (mssql): Both SELECT query and SET query must be set for listen operation in Databases and Data Stores. ### What This Error Means Database node (mssql) reached the database but the SQL, table, column, or dialect-specific statement was rejected. ### Recommended Action 1. In Hub, verify the database connection, action, SQL/query, dynamic parameters, and destination mapping. 2. Use a visual test to inspect the input values immediately before the failing node. 3. If configuration and inputs look correct, capture the graph, node, transaction ID, timestamp, and the full sanitized message before escalating. ### Detailed Guidance > [!NOTE] > Full Engine Message > > - KW-01-007-03-0015 Database node (mssql): Both SELECT query and SET query must be set for listen operation > [!NOTE] > Trigger Conditions > > - A Database node connection, SQL statement, listener query, or dynamic parameter fails. > [!NOTE] > Escalation Threshold > > - Escalate after validating Hub configuration and input data, or immediately when the error references managed credentials, profile cleanup, or shared infrastructure. > [!NOTE] > Related Metrics / Dashboards / Alerts > > - Database connector failures, database availability, query latency. ### Article Context > [!NOTE] > Arbiter Service: Database node (mssql) > > Hub configuration or external dependency: Both SELECT query and SET query must be set for listen operation > [!NOTE] > Graph Execution Engine: Database node (mssql) > > Hub configuration or external dependency: Both SELECT query and SET query must be set for listen operation