Getting error message in survey_spec