Unexpected server error when name is not unique
If you insert an entity like this:
ent = db.Record().add_parent(name='o').insert()
and if 'o' is not unique, then there is an unexpected server error. The server log shows EntityWasNotUniqueException.