This error generally occurs when a switch that does not allow a value is assigned a value.
To correct this error