Thanks Bruce,
Yesterday I had to restore a backup to get the issue resolved.
At first I deleted the procedure and try to import from an earlier backup of the application, which resulted in more errors. I unfortunately didn't take down the other errors that were given during compile.