You are not required to specify a wall thickness for a rigid element, so it is assumed you are not interested in stresses. Of course lacking that information, stresses cannot in any case be calculated.

If you need stresses in a valve body for instnace, model in a pipe element with appropriate properties.