I made a custom query against a SQL server view. The test of the query says one record found which is correct. I run the query in Workflow and write back the results to field in a template. The Workflow writes back that records found as true and results count as 1, but will not write the values of column results into the fields that have been mapped.
This is a query against a SQLServer View as opposed to a table if that matters.