I have created this basic stored procedure to query a Snowflake table based on a customer id: It works fine but I would like my sproc to return a JSON object for the whole result set. I modified it thusly: It compiles without errors but fails at runtime with this error: What am I missing here? Answer You need to