Defect
Release : 4.10
Component : Web Portal - Generator
The patch TDMWeb-4.10.5.0.zip address this issue and also recommended to use the new metafunction execsqlhex instead of execsql to get the output when call generates a byte array, which will be transformed into a hex string.
@execsql(R,SELECT HASHBYTES('SHA2_256', 'dslfdkjLK85kldhnv$n000#knf'))@ -->@execsqlhex(R,SELECT HASHBYTES('SHA2_256', 'dslfdkjLK85kldhnv$n000#knf'))@