<Type> is not a valid mask

This error has the following cause and solution: