I am trying to publish two surveys today and am getting the message that I am unable to create folder Error 400. What should I do to allow me to publish?
Please log in to your ArcGIS Online/ArcGIS Enterprise account in a browser and delete the folder named 'Survey-<Survey Name>' in your Content. I presume those are from earlier publishing attempts; if not, you should look at their contents and move any that need to be preserved.
I'm also getting this error. I've deleted the Survey from my Content and deleted the item info file from the Survey123 folder. Any other advice? My .xlsx form is attached.
There are two questions named Age in your survey - that is preventing publishing as you can only have each name once.
I am also getting the error code: 400 "unable to create folder" when I try to publish a new survey. Can you clarify where to look for "the folder named 'Survey-<Survey Name>' in your Content". I am not sure where this is. Any other advice for fixing the error?
Log in to https://www.arcgis.com with your ArcGIS Online username (or your ArcGIS Enterprise if you use that). Go to "My Content" - you should see a listing of folders on the left side of that page.
I am also getting this error.
It is a misleading error as when I click 'Publish' it is warns me to say A new feature service will not be created, which is expected, as I created my Survey Form on an existing feature service. The folder exists, that is correct, but the form most certainly does not.
I think this is borderline a bug. The user should be able to use existing feature services to publish surveys, perhaps the software should warn that the folder already exists, but it should not halt the process completely??
This is not a bug and is the expected behaviour. AGO and Portal do not support content folders of the same name for the same user. Therefore you can not create a new survey (which by default creates a folder with the same namde as the survey in your content) with the same name as a folder that already exists in your content. This will return the code 400 error.
If you are creating a survey based on an existing feature service, that feature service can be in any folder in your organization that you have access to, it does not have to be in the same folder as the survey form item or have the same name or folder name.
If you have moved your feature service into the same folder, or renamed the folder it already exists in to be the same as the survey folder, this will cause the error. Simply have the existing feature service in any folder, and then ensure there is no folder with same name as your survey, publish the survey and it will will create the new folder, and the survey will be linked to the existing feature service.
Hi Philip Wilson, thanks for the detailed reply, I appreciate you taking the time to help me.
I do understand the reason why this is not a bug, but I am wondering why it is an 'error' and the process stops, when the folder already exists? Is there any way the software can just warn the user "Hey, this folder exists, I am going to carry on and insert the survey into this existing folder". I think this is much more user friendly.
If this is not possible due to some back end reasoning that's fine, I just think it could be handled much better than just aborting the process completely.
But as I said, thank for sending through that info, it makes a lot more sense now.
I try publishing a survey in addition to an existing feature service and always giving me this error I don't know what else to do. My form is attached. can you help please?
Retrieving data ...