Search code examples
javacouchbase-lite

couchbase lite Invalid database name


try {
    uploadDone = manager.getDatabase("uploadDone");
    uploadDone.compact();
} catch (CouchbaseLiteException e) {
} catch (Exception e) {
}

Method threw java.lang.IllegalArgumentException exception.
Invalid database name: uploadDone


Solution

  • The name must consist only of lowercase ASCII letters, digits, and the special characters _$()+-/. It must also be less than 240 bytes and start with a lower case letter.