I know this is an ancient post, but did you ever get an answer? I am getting this error message at the "end function" line. It's really irritating, as the error handling for the function doesn't even seem to be able to trap it, so the whole db crashes every time.