#516- Fixed the error handling for the create survey method.