Could we see the relevant portions of the Copycode? and the program that INCLUDEs the copycode?
Without seeing either, possible problems are database fields that are not in a View (structured and mixed modes), or errors with MU or PE occurrences outside of the specified ranges.