Backendless Support
 
Solved

Cannot add Spaces and "&" in Geolocation Category

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:

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

Best Answer
photo

Hi Basanth,

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

Regards,

Denys

Leave a Comment

Comments (5)

photo
1

Somebody? Anybody?

photo
1

Hi Basanth,

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

Regards,

Denys

photo
1

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?

photo
1

Hi,

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

Regards,

Denys

photo
1

Thank you Denys.

photo