The system requires that the variable $speccode has a valid data.