<str> not valid for routine "<str>" - used in CREATE MODULE only Explanation: You used a routine attribute in CREATE FUNCTION or CREATE PROCEDURE that is only valid for a routine within a CREATE MODULE statement. User Action: Correct the definition by removing this clause.