Skip to main content
Question

Getting error: JSON heap size limit exceeded while uplaoding document of 4.3 KB from Salesforce: At this line: myEnvelope = dfsle.EnvelopeService.sendEnvelope(myEnvelope, false);, this error is returned . Please suggest

  • January 20, 2025
  • 1 reply
  • 54 views

Forum|alt.badge.img+1

Getting error: JSON heap size limit exceeded while uplaoding document of 4.3 KB from Salesforce: At this line:                 myEnvelope = dfsle.EnvelopeService.sendEnvelope(myEnvelope, false);, this error is returned . Please suggest 

1 reply

Forum|alt.badge.img+7
  • Docusign Employee
  • 59 replies
  • January 21, 2025

Hello Team

JSON heap size limit exceeded error in Salesforce occurs when the serialized envelope data exceeds the allowed limit.  DocuSign has file sze limitation https://support.docusign.com/s/articles/DocuSign-Document-and-Envelope-File-Size-Limitations?language=en_US this can result from a large document, excessive recipients, or redundant envelope data. To resolve it, ensure your document is properly encoded and minimal in size, streamline the envelope data by removing unnecessary fields or tabs, and use a `dfsle.EnvelopeDefinition` object to optimize the payload.  And If the issue persists, test with smaller payloads or contact DocuSign support for guidance with DocuSign API logs for further troubleshooting.

 

Thankyou

Sai