```There were some errors importing your documents...
# community-help
g
Copy code
There were some errors importing your documents. 

[
  {
    "code": 400,
    "document": "{\"storename\":\"String Value\",\"ZipCode\":0,\"Street\":\"String Value\",\"City\":\"String Value\",\"State\":\"String Value\",\"location\":[1,-1],\"Address\":\"String Value\",\"Country\":\"String Value\",\"phone\":\"String Value\",\"points\":0}",
    "error": "[json.exception.type_error.302] type must be number, but is array",
    "success": false
  }
]
p
@GM i dont thins 1 and -1 are valid geolocation values, but wait for moderator answer
g
i tried with values too..still same error
@Patrik Gmitter
p
also be sure you dont switch lat and long values
must be [lat, long]
g
yes..tried both..
message has been deleted
p
are you sure location is geopoint type? havent you old schema where location was int*?
if not wait for moderator
k
The default sorting field cannot be a location (in the schema). In recent 0.24 RC builds we will send a nicer error message for this.
g
okay..how to update existing schema?
k
You've to delete the collection and recreate it.
g
awesome it works..thanks..
👍 1