I can't figure out what variable "M" Toad is talking about. I do not have "M" as a standalone variable anywhere in my SQL. What could be triggering this error to occur?
OK, thanks. Only thing I can think of is that the presence of the '#' character might be causing an issue? This is because automation variables begin and end with the pound sign.
Try replacing the '#' character with a quick literal replacement (like 'num' or 'nbr') and see if that helps with the error condition.
If not, may need to take this one to Quest Support.