Skip to navigation

Troubleshooting

View as Markdown

The Web Forms API is available in all developer accounts, but only in certain production account plans. Contact Docusign Support or your account manager to find out whether the Web Forms API is available for your production account plan.

This topic lists error codes and error messages that may be returned in response to Web Forms API requests or SDK method calls.

If you are unable to resolve an issue with your application by following the troubleshooting recommendations, contact Docusign Support for assistance.

HTTP status codeError codeError messageDescription
400BAD_REQUEST[componentName] is a required field and must be filled by sender.An Instances:createInstance request or an equivalent SDK method call failed because a required form field was not populated in the request.
400BAD_REQUESTDoc Exclusion Rule with document [documentName] must have parent field [parentField] filled by sender.An Instances:createInstance request or an equivalent SDK method call failed because the web form configuration included a conditional rule to include or omit a document, but the request did not supply the field value required to evaluate the rule. See Additional prefill requirements for remote web form instances.
400BAD_REQUESTEnvelope Custom Field [componentName] must be filled by sender.An Instances:createInstance request or an equivalent SDK method call failed because the web form configuration included a required envelope custom field, but no value was provided. See Additional prefill requirements for remote web form instances.
400BAD_REQUEST’name' and 'email' for primary recipient must be provided in the request body.An Instances:createInstance request or an equivalent SDK method call failed because the primary recipient details were missing. The request body for a remote web form instance must include both a name and email for the primary recipient. See Required user values for remote web form instances.
400BAD_REQUESTRecipients array must contain 'roleName', 'name', 'email' for each specified recipient.An Instances:createInstance request or an equivalent SDK method call failed because one or more recipient objects in the recipients array did not include all required properties. Each recipient must specify a roleName, name, and email. See Options to supply required user values.
400BAD_REQUEST'recipients' should only be provided along with 'sendOption'.An Instances:createInstance request or an equivalent SDK method call failed because the recipients parameter can only be used with remote web form instances, which also require the sendOption parameter. See Requirements to create remote web form instances.
400BAD_REQUESTSend is not supported for a web form with attachment fields.An Instances:createInstance request or an equivalent SDK method call failed because remote web form instances do not support attachment fields. See Learn about remote web form instance delivery.
400BAD_REQUESTUnable to create instance because form is not activated.An Instances:createInstance request or an equivalent SDK method call failed because the web form configuration referenced in the request was not activated. See Web form configuration status for more information.
400INSTANCE_EXPIREDForm instance [ID] expired at [datetime] UTC. Current time is [datetime] UTC.An Instances:refreshToken request or equivalent SDK method call failed because the web form instance referenced in the request expired, and no further instance tokens can be requested for it. If your application receives this error when attempting to refresh an instance token for a user, the application must create a new instance for the user. See Web form instance expiration for more information.
400INVALID_FORMAT_ACCOUNT_IDaccountId [ID] is not in a valid GUID format.The API account ID supplied in the endpoint URL is not a valid GUID. Check your API account ID on the Apps and Keys page.
400INVALID_FORMAT_FORM_IDformId [ID] is not in a valid GUID format.The web form configuration ID supplied in the endpoint URL is not a valid GUID. See Web form configuration ID for steps to access a configuration and check the ID.
400INVALID_FORMAT_INSTANCE_IDinstanceId [ID] is not in a valid GUID format.The web form instance ID supplied in the endpoint URL is not a valid GUID. You can use an Instances:listInstances API request or equivalent SDK method call to return a list of web form instances created from a web form configuration.
400INVALID_STATE_PARAMAn invalid value was provided for the state query parameter. Valid values are [active, draft].A Configurations:getForm request or equivalent SDK method call failed because the value of the state query parameter was not set to active or draft. See Web form configuration status for more information.
400REQUIRED_FIELD_MISSINGRequired field [fieldName] is missing.An Instances:createInstance request or an equivalent SDK method call failed because the request body did not include the required field listed in the error message.
This error is returned in response to a Configurations:getForm request or an equivalent SDK method call if the required state query parameter is not included.
400VALIDATION_FAILEDclientUserId value max length is 100.An Instances:createInstance request or an equivalent SDK method call failed because the request body included a clientUserId value that was more than 100 characters long. See Identify web form instance users for more information about clientUserId.
400VALIDATION_FAILEDEmail [emailInRecipientsArray] for roleName [roleName] in recipients array does not match with form value [emailInFormValues]An Instances:createInstance request or an equivalent SDK method call failed because the recipient email in the recipients object did not match the email in the formValues object for the specified roleName. See Options to supply required user values.
400VALIDATION_FAILEDInput of type 'CheckboxGroup' must be an array of string(s), containing elements from [value1,value2,value3].An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for a set of checkboxes that either was not an array of strings or included one or more values that were not among the allowed values. See Obtain information about fields that can be prefilled for information about valid values.
400VALIDATION_FAILEDInput of type 'Date' must be a valid date string. Expected date format: [yyyy-MM-dd].An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for a date field that was not in yyyy-MM-dd format. See Supply prefill values in the request to create a web form instance for more information.
400VALIDATION_FAILEDInput of type 'Email' must be a valid string.An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for an email field that was not a string. See Supply prefill values in the request to create a web form instance for more information.
400VALIDATION_FAILEDInput of type 'Number' must be a number and use a period as the decimal separator.An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for a number field that either was not a number or used a value other than a period as a decimal separator. See Supply prefill values in the request to create a web form instance for more information.
400VALIDATION_FAILEDInput of type 'RadioButtonGroup' must be a string and contain one of these options [value1,value2,value3].An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for a set of radio buttons that either was not a string or was not among the allowed values. See Obtain information about fields that can be prefilled for information about valid values.
400VALIDATION_FAILEDInput of type 'Select' must be a string and contain one of these options [value1,value2,value3].An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for a dropdown that either was not a string or was not among the allowed values. See Obtain information about fields that can be prefilled for information about valid values.
400VALIDATION_FAILEDInput of type 'TextBox' must be a valid string.An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object included a prefill value for a text field that was not a string. See Supply prefill values in the request to create a web form instance for more information.
400VALIDATION_FAILEDMaximum allowed expirationOffset is 23976 hours (999 days).An Instances:createInstance request or an equivalent SDK method call failed because the request body included an expirationOffset value that specified a web form instance expiration date more than 999 days in the future. This value is expressed in hours in the request, and the maximum allowed value is 23976. See Web form instance expiration for more information.
400VALIDATION_FAILEDName [nameInRecipientsArray] for roleName [roleName] in recipients array does not match with form value [nameInFormValues].An Instances:createInstance request or an equivalent SDK method call failed because the recipient name in the recipients object did not match the name in the formValues object for the specified roleName. See Options to supply required user values.
400VALIDATION_FAILEDPhone country code [phoneCountryCodeInRecipientsArray] for roleName [roleName] in recipients array does not match with form value [phoneCountryCodeInFormValues].An Instances:createInstance request or an equivalent SDK method call failed because the recipient phone country code in the recipients object did not match the phone countryCode in the formValues object for the specified roleName. See Options to supply required user values.
400VALIDATION_FAILEDPhone national number [phoneNationalNumberInRecipientsArray] for roleName [roleName] in recipients array does not match with form value [phoneNationalNumberInFormValues]An Instances:createInstance request or an equivalent SDK method call failed because the recipient phone nationalNumber in the recipients object did not match the phone national number in the formValues object for the specified roleName. See Options to supply required user values.
400VALIDATION_FAILEDProvided sendOption value is [sendOption]. sendOption value must be 'now'.An Instances:createInstance request or an equivalent SDK method call failed because the sendOption value in the request body was invalid. The only supported value is now.
400VALIDATION_FAILEDroleName [roleName] is invalid.An Instances:createInstance request or an equivalent SDK method call failed because a recipient object included a roleName that did not exist in the web form configuration. You can obtain role names for a configuration from the roleName property in the Configurations:getForm response’s recipientInfoMap object.
400VALIDATION_FAILEDThese component names don't exist in the form: [component_name1, component_name2].An Instances:createInstance request or an equivalent SDK method call failed because the request body formValues object referenced one or more form field names that did not exist in the active version of the web form configuration.
Use a Configurations:getForm request or equivalent SDK method call to get a list of valid form field names in the active configuration. If you use the Web Forms builder to check the form fields in the configuration, the UI may reflect saved changes to the configuration that have not been activated. Your application always uses the most recently activated version of the web form configuration. See Obtain information about fields that can be prefilled and Web form configuration version for more information.
401AUTHORIZATION_INSUFFICIENT_SCOPEThe access token is missing a required scope.The request failed because the access token supplied in the request header did not include a required scope for that request type. See Required scopes for a list of the scopes needed for each request type.
401AUTHORIZATION_INVALID_TOKENThe access token provided is expired, revoked or malformed.The request failed because the access token supplied in the request header was not valid. See AUTHORIZATION_INVALID_TOKEN for details and troubleshooting steps.
401AUTHORIZATION_MISSING_TOKENThe request does not include an access token.The request did not include an access token in the Authorization header. See Authentication for more information.
401USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNTThe specified user is not a member of the specified account.The authenticated user for the request is not a member of the account whose ID was specified in the request. See USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT for details and troubleshooting steps.
403ACCOUNT_LACKS_WEBFORMS_PERMISSIONThe Web Forms API is not included in your account plan or is not enabled for your account.The Web Forms API is available for all developer accounts. If this error occurs on the developer environment, contact Docusign Support to request that the feature be enabled for your account. If this error occurs on production, it may mean that the feature is not included in your account plan or is not enabled. Contact Docusign Support or your account manager for assistance.
403USER_LACKS_WEBFORMS_PERMISSIONThe user does not have web forms permissions.The authenticated user for the request does not have permissions for the Web Forms feature. The authenticated user is the user whose credentials were provided when generating the access token that was used to make the API call. To provide Web Forms permissions, assign the user to the DS Admin permission profile or to a profile that has permissions specified in Add Web Forms Permissions.
404RESOURCE_NOT_FOUNDObject with ID [ID] was not found.The ID specified in this error message may be a web form configuration ID or a web form instance ID supplied in an endpoint URL.
For a web form configuration ID, this error indicates that no configuration with the specified ID exists, or the ID is for a configuration that does not belong to the account specified in the request.
This error can occur in response to a Configurations:getForm request or an equivalent SDK method call when the specified form ID exists but is not in the state (active or draft) listed in the request’s state query parameter.
If this error is received in response to an Instances:createInstance request or an equivalent SDK method call, it may mean that the web form configuration is not activated. See Web form configuration ID for steps to access a configuration and check the ID. See Web form configuration status for more information about statuses.
For a web form instance ID, this error indicates that the ID is for an instance that was not created from the web form configuration specified in the request, or that no instance with this ID exists. You can use an Instances:listInstances API request or equivalent SDK method call to return a list of web form instances created from a web form configuration.
500INTERNAL_SERVER_ERRORAn internal server-side error has occurred.An internal error occurred on the Docusign platform. Retry the request. If the error persists, contact Docusign Support.
503SERVICE_UNAVAILABLEService unavailable.An internal error occurred on the Docusign platform. Retry the request. If the error persists, contact Docusign Support.