'DocuSign "unable able to convert document" when i create create envelope with word file
I am creating a DocuSign envelope and I pass docx file for signing process. But I get the error code "UNABLE_TO_CONVERT_DOCUMENT". I am passing extension docx
in document object.
This is my code
Dim doc1 As Document = New Document()
Dim doc1b64 As String = Convert.ToBase64String(buffer)
doc1.DocumentBase64 = doc1b64
doc1.Name = "Sample"
doc1.FileExtension = "docx"
doc1.DocumentId = "1"
envelopeDefinition.Documents = New List(Of Document) From {
doc1
}
For Pdf i passed like this
Dim doc1 As Document = New Document()
Dim doc1b64 As String = Convert.ToBase64String(buffer)
doc1.DocumentBase64 = doc1b64
doc1.Name = "Samplepdf"
doc1.FileExtension = "pdf"
doc1.DocumentId = "1"
envelopeDefinition.Documents = New List(Of Document) From {
doc1
}
Is any other place need to specify document extension? I am using sdk ver 5.9.0 for your reference. When using pdf file no problem. But same word file pass through DocuSign UI (website) no problem.
Solution 1:[1]
You need to include .docx
as a part of the document's name:
doc1.Name = "Sample.docx"
Unfortunately, including just the FileExtension
attribute is not enough.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Larry K |