Support Topics Documentation Slack YouTube Blog

Cannot add Spaces and "&" in Geolocation Category


(Basanth) #1

Hi, i am not able to create Category names in Geolocation with “&” and spaces in the console and the android API. When i create a category in Webapp, i get an error message as “Category names can be only a-z, A-Z and 0-9 and cannot begin with a number”. When i try from the Android API, i get the following Exception:

BackendlessException{ code: '4031', message: 'Invalid category name: Spa & Saloon' }

(Basanth) #2

Somebody? Anybody?


(Denys Konakhevych) #3

Hi Basanth,

Valid category name cannot include spaces or ampersand and must be alphanumeric.

Regards,

Denys


(Basanth) #4

Hi Denys, so my app has categories with spaces… so do i need to map these Categories with Spaces and Ampersand by using underscores in a different table?


(Denys Konakhevych) #5

Hi,

Yes, you should. Or store category id and it’s name in the same table.

Regards,

Denys


(Basanth) #6

Thank you Denys.