3

When I perform a simple call to the DocuSign REST API (Post Template), I get the following error:

{
    "errorCode": "UNABLE_TO_LOAD_DOCUMENT",
    "message": "Unable to load the document. Unable to load Document(1: document.pdf). Document is password protected, please remove password protection before using the document."
}

But document isn't password protected. How can I resolve this issue?

Frederic
  • 2,015
  • 4
  • 20
  • 37
tooleks
  • 557
  • 5
  • 17
  • Have you read the DocuSign API docs and help pages? – JAL Jun 19 '15 at 13:51
  • Yes, I have. But I haven't found any additional information. Here is the [Error Codes List](https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#Error%20Code/Error%20Codes%20and%20Associated%20Messages.htm%3FTocPath%3DError%2520Code%2520Information|_____1). – tooleks Jun 19 '15 at 14:01
  • Are you able to share your PDF Bytes? – Andrew Jun 20 '15 at 00:01
  • No, I can't. Maybe somebody can share the working example of the raw HTTP request? – tooleks Jun 21 '15 at 09:51
  • 1
    I've sometimes seen this error returned when the format isn't recognized. For instance, if you are uploading a Word doc but the "extension" value is set to PDF. Some other things to consider: Are you encoding in Base64? Is your request body matching up with the document id? If you can't share the doc, can you share the request body? – Jeff Kyllo Jun 22 '15 at 14:41
  • Have you tested with other PDFs? If other PDFS yield the same result then it's a problem with your code. If they work then it's a problem with that specific doc. – Ergin Jun 24 '15 at 05:49
  • Thanks for good questions. Finally I have uploaded the template, but I have got another error message on the DocuSign dashboard (when I trying to view uploaded template document): "Document not available". – tooleks Jun 24 '15 at 09:36
  • @tooleks Did you ever figure out root cause of all of this? – timlah79 Jan 28 '16 at 20:00
  • 1
    In the error message: Document is password protected, please remove password protection before using the document. Have you tried a non-password protected PDF? – Paul Mobilio Jan 19 '17 at 22:34
  • @timlah79, it's been a long time ago, but if I remember correctly, I resolved the issue by using [DocuSign SOAP API](https://www.docusign.com/p/APIGuide/APIGuide.htm) for this call. Maybe it will be helpful to somebody. – tooleks Mar 16 '17 at 14:58
  • @PaulMobilio, yes I've tried non-password protected PDF, as I mentioned in my question above, but no results. – tooleks Mar 16 '17 at 15:01
  • @tooleks : When you view the PDF document properties and go to the Security tab, can you list the different restrictions you have in place ? – Frederic Jan 11 '18 at 20:47

0 Answers0