In this blog post, let’s learn about the error message “4108 Inside a ROWS SINCE, another sequence function contained an invalid reference to the THIS function.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4108 Inside a ROWS SINCE, another sequence function contained an invalid reference to the THIS function.
Reason for the Error
A ROWS SINCE function in your statement contained another sequence function that, in turn, contained an invalid reference to the THIS function. Inside ROWS SINCE, the THIS function must not appear inside any other sequence function.
Solution
Reword the query so that the expression inside the other sequence function does not contain references to the THIS function