TUpdateException - INOXPE8714

I want to insert/update an object into the ino:etc collection via TXMLObjectAccessor.update(…)
But every time I get an exception TUpdateException - INOXPE8714 Invalid document id. (ino:id) specified
The object has an id (a numeric value) and I can retrieve it with the getId() method.
Any ideas what could be wrong?