The template file given in the code generation settings could not be opened, probably because it doesn't exist.
In the Code Generation Settings, click Browse... by Template File and select an existing template file.