stoped on error, new document's id not auto incremented!