This change provides also more information to the user about the missing generated class when that happens. Closes gh-29521