docusign / docusign-esign-java-client

The Official Docusign Java Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://javadoc.io/doc/com.docusign/docusign-esign-java/latest/index.html
MIT License
104 stars 95 forks source link

"errorCode":"REQUIRED_TAB_INCOMPLETE" #238

Open dijiehuang opened 1 year ago

dijiehuang commented 1 year ago

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

SayedHhusseinDS commented 1 year ago

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

dijiehuang commented 1 year ago

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

SayedHhusseinDS commented 1 year ago

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

dijiehuang commented 1 year ago

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 ?