Have you closed the session?

Use a different UDF variant? XP can do UDF but not whatever one you're using it seems.