Problem: The DBConnector action fails on a basic lookup. The connection profile’s active, but the script errors out.
Code:
ASSIGN QueryStr = "SELECT NAME FROM USERS WHERE ID = " + Session.Input.Id;
DBConnector.Execute(ConnectionId: "CXONE_DB", Sql: QueryStr, Result: LookupData);
Error: Status returns FAILURE. Trace log doesn’t show syntax errors, just a blank result object.
Question: The SQL runs fine in the database client. Connector seems to ignore the Sql parameter. Checking timeout settings.