In this blog post, let’s learn about the error message “4301 Use of routine routine-name was not valid – return of result sets is not allowed within a trigger” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4301 Use of routine routine-name was not valid – return of result sets is not allowed within a trigger
Reason for the Error
You have used a routine that returns a result set in the trigger action.
Solution
Use the routines, which do not return result sets in the trigger action