Error while generate the document.