4001/4101: Could not open template file filename.

Cause

The template file given in the code generation settings could not be opened, probably because it doesn't exist.

Resolution

In the Code Generation Settings, click Browse... by Template File and select an existing template file.