DocuSign eSignature for Salesforce - Document Element Did Not Contain the Encoded Document

Issue

When sending from the DocuSign eSignature for Salesforce draft page with an uploaded document and hitting the Next button the following error is received: "The document element did not contain the encoded document, or there is a problem with the encoding."
User-added image



Solution 1

Disable the setting "Lock sessions to the IP address from which they originated"

1. Log into Salesforce as a system administrator.
2. Open Setup > Security Controls > Session Settings.
3. Note the status of the check box marked "Lock sessions to the IP address from which they originated". Make sure the setting is unchecked and save.
5. Log out of Salesforce.
6. Log into Salesforce to get a new session token.
7. Attempt to send an envelope with an attachment and you should no longer see the error.

Similarly, make sure Enforce Login IP Ranges on Every Request is disabled (Setup > Security Controls > Session Settings).


Solution 2

Enable the System Permission titled "API Enabled"

1. Log into Salesforce as a system administrator.
2. Open Setup > Users >  Profiles > System Permissions.
3. Check the box labeled API Enabled and save.
4. From that point forward, users with that profile should be able to send.