Add a message for invalid ObjectIds