pphelan

Text Tags Error - "role must have at least one signature on the doc...

0 votes
Hi, 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...

0 votes
Hi, Ok - figured that bit out - it was to do with the PDF form when it was created. I modified the PDF to setTextValue on the field for the client and it worked. Next step, when I sign I can see the tags which looks bad and when I confirm it is a mixture. Is there something I am missing to make the "text tag" disappear during the signing process. See attached png images. ~Patrick

Attachments
Signing.png13.29 KB

Reply to: Text Tags Error - "role must have at least one signature on the doc...

0 votes
Hi Patrick, Did you mean that you were adding text tags to PDF forms? If you did that, it's a known issue that your text tags will be flattened on document, because the tags should be applied to plain texts vs PDF forms in your document. And OneSpan Sign system won't take the form's size as reference, you can use the "size" parameter to regulate the size:
{{esl_clientSig:client:signature:size(200,50)}}
Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Text Tags Error - "role must have at least one signature on the doc...

0 votes
+ a sample document showcasing how to use text tags.

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Attachments

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off