ibm-cloud-docs / Cloudant

12 stars 46 forks source link

Only reserved document ids may start with underscore #13

Closed missinglink closed 5 years ago

missinglink commented 5 years ago

Hi,

I'm following the guide here https://cloud.ibm.com/docs/services/Cloudant/api?topic=cloudant-cloudant-nosql-db-geospatial#cloudant-geospatial to add a new geospatial index using the 'Design Documents' menu (as suggested in that guide).

Screenshot 2019-08-19 at 11 25 42

However, when I try to save, I get the following error "Only reserved document ids may start with underscore"

Screenshot 2019-08-19 at 11 23 47

Note: the database is currently empty. Can you please advise how to continue? There underscore is not editable by me via the GUI.

missinglink commented 5 years ago

Agh, figured it out! It's not a bug but a confusing UI.

One input box has a placeholder text 'newDesignDoc' while the other box contains a default value 'newGeoIndex'. I incorrectly assumed that both fields contained values, and the UI didn't validate that the box was non-empty before submitting.

The resulting error message was confusing to a couchdb novice and masked the real issue.