docusign-esign-java-client icon indicating copy to clipboard operation
docusign-esign-java-client copied to clipboard

"errorCode":"REQUIRED_TAB_INCOMPLETE"

Open dijiehuang opened this issue 3 years ago • 4 comments

1、We have created a Template and pre-fill Fields by this way( link: https://support.docusign.com/s/document-item?language=en_US&bundleId=xry1643227563338&topicId=oqb1611172929107.html&_LANG=enus). 2、Then get templateId from step 1 3、My code: ` EnvelopeDefinition env = new EnvelopeDefinition(); env.setTemplateId(templateId);

    TemplateRole signer1 = new TemplateRole();
    signer1.setEmail(signerEmail);
    signer1.setName(signerName);
    signer1.setRoleName("role1");


    TemplateRole signer2 = new TemplateRole();
    signer2.setEmail(ccEmail);
    signer2.setName(ccName);
    signer2.setRoleName("role2");

    Text text = new Text();
    text.setDocumentId("1");
    text.setPageNumber("1");
    text.setXPosition("99");
    text.setYPosition("114");
    text.setTabId("3a6e1e3a-3d3d-4629-8dbe-f616e338bec1");
    text.setTabLabel("a5045fac-9679-498a-a73c-6c255dfccc49");
    text.setValue("123456");
    text.setLocked("true");
    Tabs tabs = new Tabs();
    tabs.setTextTabs(Arrays.asList(text));

    PrefillTabs prefillTabs = new PrefillTabs();
    prefillTabs.setTextTabs(Arrays.asList(text));
    tabs.setPrefillTabs(prefillTabs);
    signer1.setTabs(tabs);
    signer2.setTabs(tabs);

    env.setTemplateRoles(Arrays.asList(signer1, signer2));
    env.setStatus("sent");`

4、invoke ”envelopeApi.createEnvelope( )“ method,it returns "'{"errorCode":"REQUIRED_TAB_INCOMPLETE","message":"A Required field is incomplete. TabId: bce12361-40b1-4d4d-908a-8b549e2eb0b9"}'"

5、the pre-fill tab doesn't work

dijiehuang avatar Aug 08 '22 09:08 dijiehuang

Grab the envelope ID and see which tab it's referencing in IAC. The tab you are updating is not the same tab in the error

SayedHhusseinDS avatar Aug 08 '22 09:08 SayedHhusseinDS

@SayedHhusseinDS It fails while creating envelope, so can't grab the envelope ID

dijiehuang avatar Aug 08 '22 12:08 dijiehuang

can you enable API Request logging on your account? This logging captures the last 50 API requests and assists Support in troubleshooting account issues.

Once you enable logging, you can download the resulting logs, and provide them here. https://support.docusign.com/s/document-item?language=en_US&bundleId=jux1643235969954&topicId=poz1578456669909.html&_LANG=enus

SayedHhusseinDS avatar Aug 08 '22 12:08 SayedHhusseinDS

can you enable API Request logging on your account? This logging captures the last 50 API requests and assists Support in troubleshooting account issues.

Once you enable logging, you can download the resulting logs, and provide them here. https://support.docusign.com/s/document-item?language=en_US&bundleId=jux1643235969954&topicId=poz1578456669909.html&_LANG=enus

@SayedHhusseinDS In what way do I provide the logs to you ?

dijiehuang avatar Aug 08 '22 13:08 dijiehuang