Skip to navigation

Android SDK status and error codes

View as Markdown

When using the Android SDK, your application should handle errors thrown by the eSignature REST API or errors that the SDK itself generates. To do so you need to use a try/catch clause in your application and specifically catch exceptions of type DSEnvelopeException and handle them in your code.

How to detect Android SDK errors

Add the following method to handle exceptions thrown by either the eSignature REST API or by the Android SDK: void onError(DSEnvelopeException exception) Inside the method onError, inspect the values of:

  • exception.errorCode
  • exception.errorMsg

These values will determine the reason for the error and help your application handle it correctly. Your code can either look for the numeric value or the constant that represents this value (recommended).

Error codes and associated messages

The following table lists all of the error codes and associated messages. The list is presented in order based on the error code number and error code constant. In many cases additional information is added to the message string.

Error codeError code constantError message
1ENVELOPE_TEMPLATE_CONVERSION_FAILED_DB_ERRORFailed to convert template to envelope
2ENVELOPE_TEMPLATE_CONVERSION_FAILED_NULL_TEMPLATENull template - cannot convert
3ENVELOPE_DB_ENVELOPE_NULLEnvelope not found in the DB
4ENVELOPE_DB_ENVELOPE_RECIPIENTS_NULLNo recipients are found in the DB for this envelope
4ENVELOPE_DB_ENVELOPE_RECIPIENTS_NULLEnvelope does not have recipients
6ENVELOPE_DB_ENVELOPE_TAB_LIST_ITEMS_NULLDB Envelope tab list items are null
7ENVELOPE_DB_ENVELOPE_DAO_NULLEnvelope’s data access object not found in the DB
8ENVELOPE_DB_ENVELOPE_RECIPIENT_DAO_NULLEnvelope Recipient’s data access object not found in the DB
9ENVELOPE_DB_ENVELOPE_TAB_DAO_NULLEnvelope Tab’s data access object not found in the DB
10ENVELOPE_DB_ENVELOPE_TAB_LIST_ITEM_DAO_NULLDB Envelope Tab List Item Dao is null
11ENVELOPE_DB_ENVELOPE_DOCUMENT_DAO_NULLEnvelope Document’s data access object not found
12ENVELOPE_DB_ENVELOPE_DOCUMENTS_NULLNo documents are found in the DB for this envelope
13ENVELOPE_DB_ENVELOPE_CUSTOM_FIELDS_DAO_NULLEnvelope CustomField’s data access object not found in the DB
15ENVELOPE_GET_CACHED_ENVELOPE_NULLNo cached envelope found
16ENVELOPE_GET_CACHED_ENVELOPE_ERRORError occurred while fetching the envelope from DB
17ENVELOPE_CACHE_ENVELOPE_ERRORFailed to cache envelope
19ENVELOPE_CREATE_ENVELOPE_ERRORFieldId, name, and value are required for textCustomFields
19ENVELOPE_CREATE_ENVELOPE_ERRORCustomField’s name must not exceed 49 characters in length
19ENVELOPE_CREATE_ENVELOPE_ERRORCustomField’s value must not exceed 100 characters in length
19ENVELOPE_CREATE_ENVELOPE_ERRORDocument name must be less than 1000 characters in length
19ENVELOPE_CREATE_ENVELOPE_ERRORDocumentId, name, and uri are required
19ENVELOPE_CREATE_ENVELOPE_ERRORUnable to copy document file
19ENVELOPE_CREATE_ENVELOPE_ERROREnvelope name must be less than 950 characters in length
19ENVELOPE_CREATE_ENVELOPE_ERROREmail blurb must be less than 10000 characters in length
19ENVELOPE_CREATE_ENVELOPE_ERROREmail subject must be less than 1000 characters in length
19ENVELOPE_CREATE_ENVELOPE_ERRORAt least one document is required to create an envelope
19ENVELOPE_CREATE_ENVELOPE_ERRORDuplicate recipients are not allowed in same routing order
19ENVELOPE_CREATE_ENVELOPE_ERRORDuplicate document Ids are not allowed
19ENVELOPE_CREATE_ENVELOPE_ERRORInvalid Text CustomField
19ENVELOPE_CREATE_ENVELOPE_ERRORInvalid List CustomField
19ENVELOPE_CREATE_ENVELOPE_ERRORFile is not a valid, parseable, password-free PDF
19ENVELOPE_CREATE_ENVELOPE_ERRORA valid envelopeName is required and it cannot be null or blank
19ENVELOPE_CREATE_ENVELOPE_ERRORDuplicate recipient Ids are not allowed
19ENVELOPE_CREATE_ENVELOPE_ERRORUnsupported tabs found on recipient
19ENVELOPE_CREATE_ENVELOPE_ERRORInvalid email address. Sample format account@company.com
19ENVELOPE_CREATE_ENVELOPE_ERRORAt least one Tab is needed for each non carbon copy recipient
19ENVELOPE_CREATE_ENVELOPE_ERRORNo Tabs are allowed for recipient of type Carbon Copy
19ENVELOPE_CREATE_ENVELOPE_ERRORrecipientId must be an integer > 1
19ENVELOPE_CREATE_ENVELOPE_ERRORsignerEmail must be an valid email address
19ENVELOPE_CREATE_ENVELOPE_ERRORhostEmail must be an valid email address
19ENVELOPE_CREATE_ENVELOPE_ERRORsignerName must be provided
19ENVELOPE_CREATE_ENVELOPE_ERRORTab recipientId must match recipient’s Id
19ENVELOPE_CREATE_ENVELOPE_ERRORxPosition must be greater than zero
19ENVELOPE_CREATE_ENVELOPE_ERRORyPosition must be greater than zero
19ENVELOPE_CREATE_ENVELOPE_ERRORheight must be greater than zero
19ENVELOPE_CREATE_ENVELOPE_ERRORwidth must be greater than zero
19ENVELOPE_CREATE_ENVELOPE_ERRORpageNumber must be greater than zero
19ENVELOPE_CREATE_ENVELOPE_ERRORdocumentId must be specified
19ENVELOPE_CREATE_ENVELOPE_ERRORrecipientId must be specified
19ENVELOPE_CREATE_ENVELOPE_ERRORTab type must be specified
19ENVELOPE_CREATE_ENVELOPE_ERRORTab pageNumber must be specified
19ENVELOPE_CREATE_ENVELOPE_ERRORList items must be specified for List tabs
19ENVELOPE_CREATE_ENVELOPE_ERRORList items must contain specified default value
19ENVELOPE_CREATE_ENVELOPE_ERRORGroup name must be specified for RadioGroup tabs
19ENVELOPE_CREATE_ENVELOPE_ERRORFile not found at specified URI
19ENVELOPE_CREATE_ENVELOPE_ERRORUnknown exception in loading document
19ENVELOPE_CREATE_ENVELOPE_ERRORYour document must contain less than 2000 pages
19ENVELOPE_CREATE_ENVELOPE_ERRORInvalid URI format
19ENVELOPE_CREATE_ENVELOPE_ERRORError in Document Uri
20ENVELOPE_UPDATE_ENVELOPE_RECIPIENT_ERRORFailed to update recipient
21ENVELOPE_UPDATE_ENVELOPE_ERRORFailed to update envelope
22ENVELOPE_DELETE_ENVELOPE_ERRORUnable to delete envelope from DB
23DB_ERRORError in accessing DB
24ENVELOPE_SYNC_ERRORUnable to update the DB with envelope sync status
24ENVELOPE_SYNC_ERRORUnable to sync offline signed envelope. Envelope is in neither Sync Pending nor Sync Failed status
24ENVELOPE_SYNC_ERRORUnable to sync offline signed envelope
25NETWORK_CONNECTION_ERRORUnable to sync offline signed envelope due to no Network Connection
26ENVELOPE_GET_ENVELOPE_IDS_ERRORError in accessing DB for syncStatus
26ENVELOPE_GET_ENVELOPE_IDS_ERRORError in getting envelopeId’s from DB for syncStatus
28ENVELOPES_SYNC_ALL_IN_PROGRESS_ERRORUnable to start sync all call. Another Sync all call is in Progress
29NO_ENVELOPES_TO_SYNC_ERRORThere are no pending envelopes to sync
30ENVELOPE_REPLACE_ENVELOPE_ERRORFailed to replace envelope
31ENVELOPE_DOCUMENT_DOWNLOAD_ERROREnvelope is not a Completed Envelope
31ENVELOPE_DOCUMENT_DOWNLOAD_ERRORError in Downloading Document
31ENVELOPE_DOCUMENT_DOWNLOAD_ERRORInvalid document type
31ENVELOPE_DOCUMENT_DOWNLOAD_ERRORCacheDirPath is null
39SLOW_NETWORK_CONNECTION_ERRORUnable to sync offline signed envelope due to slow network connection
40LOW_NETWORK_SIGNAL_ERRORUnable to sync offline signed envelope due to low network signal
105TELEMETRY_EVENT_CACHE_EVENT_ERRORTelemetry not enabled
700ENVELOPE_OFFLINE_SIGNING_DOCUMENT_DOWNLOAD_ERRORNo documents are found in the envelope for Offline Signing
700ENVELOPE_OFFLINE_SIGNING_DOCUMENT_DOWNLOAD_ERRORThere is no data in the document
700ENVELOPE_OFFLINE_SIGNING_DOCUMENT_DOWNLOAD_ERRORError in downloading envelope document
701ENVELOPE_OFFLINE_SIGNING_ENVELOPE_NOT_ELIGIBLEUser Account does not allow offline usage
701ENVELOPE_OFFLINE_SIGNING_ENVELOPE_NOT_ELIGIBLEUser Account In Session is not enabled for Offline Signing
701ENVELOPE_OFFLINE_SIGNING_ENVELOPE_NOT_ELIGIBLEEnvelope is not allowed for Offline Signing
701ENVELOPE_OFFLINE_SIGNING_ENVELOPE_NOT_ELIGIBLEEnvelope with Supplemental Docs is not allowed for Offline Signing
703ENVELOPE_OFFLINE_SIGNING_RECIPIENT_CD_DOWNLOAD_ERRORError while downloading recipient consumer disclosure
704ENVELOPE_OFFLINE_SIGNING_ENVELOPE_IS_DOWNLOADINGEnvelope is Downloading
705ENVELOPE_OFFLINE_USER_NOT_AUTHENTICATEDSession has expired. Please log in again