Attempts to publish a survey with ArcGIS Survey123 return the following error message:
Error: Publishing failed to complete. Unable to add feature service definition. Error code 400
The survey worksheet contains two or more questions with the same value. For example, in the survey worksheet, there are two unique rows with the exact same value in the 'name' column.
To resolve this issue, ensure none of the fields contain the same value. Additionally, a folder in ArcGIS Online is created on the Content tab with files from the failed publication of the survey. This causes attempts to republish the survey to fail even after changing the values.