Not directly relevant to your use case, but for other developers who are using dls
(document library services): inserting a document with dls:document_insert_and_manage
when a document already exists can generate this error message; perhaps use dls:document_update
instead.