Text Tags Error - "role must have at least one signature on the doc...
Wednesday, August 14, 2019 at 04:06amHi,
I am trying out the Text Tags for configuring the signing over the API and getting this error as I try to create the package and send. Can you have a peek - I suspect that it is something simple :(
This should be the required "Signature" as a text tag : Field [Signature], Value [{{esl_clientSig:client:signature}}]
>
Exception in thread "main" com.silanis.esl.sdk.internal.EslServerException: Could not upload multiple documents to package.
Exception: HTTP POST on URI https://sandbox.esignlive.com/api/packages/iyaHr8nwXpAS9SW4-HB2R-LXnu4=/documents resulted in response
with status code: [400, Bad Request].
Optional details: {"code":400,"messageKey":"error.validation.texttag.noSignatureExists",
"name":"Validation Error","message":"{{esl_clientName:client:SignerName}}:
The role must have at least one signature on the document in order to have associated fields.",
"parameters":{"tag":"{{esl_clientName:client:SignerName}}"}}
at com.silanis.esl.sdk.service.PackageService.uploadDocuments(PackageService.java:391)
at com.silanis.esl.sdk.EslClient.uploadDocuments(EslClient.java:680)
at com.silanis.esl.sdk.EslClient.createPackage(EslClient.java:262)
When I look at the PDF, it has the following text tags in it (dump of the pdf form fields):
:
Field [Name of authorized representative of plan sponsor please print], Value [{{esl_clientName:client:SignerName}}]
Field [Title], Value [{{esl_clientTitle:client:SignerTitle}}]
Field [Date], Value [{{esl:clientDate:SigningDate}}]
Field [Signature], Value [{{esl_clientSig:client:signature}}]
and the java code is adding the "client" as the role:
// Build Package, Document & Description, Email Message, Signer, Document
// Extraction (to define fields)
DocumentPackage slRiskPackage = PackageBuilder.newPackageNamed(packageName)
.describedAs("Questionnaire - eSignature Required")
.withEmailMessage("Hello " + client_fname + ",\n" + "Please sign this.\nThank you.")
.withSigner(SignerBuilder.newSignerWithEmail(client_email).withCustomId("client").withFirstName(client_fname)
.withLastName(client_lname).withTitle(client_title).withCompany(client_company)
).withDocument(DocumentBuilder.newDocumentWithName("Sample Questionnaire").fromFile(pdfFileName)
.withExtractionType(ExtractionType.TEXT_TAGS)
.enableExtraction()
).build();
// Create Package
PackageId packageId = eslClient.createPackage(slRiskPackage);
// Send for Signature
eslClient.sendPackage(packageId);
Reply to: Text Tags Error - "role must have at least one signature on the doc...
Wednesday, August 14, 2019 at 04:40amReply to: Text Tags Error - "role must have at least one signature on the doc...
Wednesday, August 14, 2019 at 05:50amReply to: Text Tags Error - "role must have at least one signature on the doc...
Wednesday, August 14, 2019 at 05:56am