marioneil

Text Extraction Error - due to dash [ - ] symbol in String

0 votes
I am trying to place a consent field inside a document based on the following text Non−Registered Savings Account I am getting the following error , due to the – in the string. error.validation.verifyDocument.documentExtractError If I use the text extraction String Registered Savings Account, then it works fine. Can you please let me know how to resolve this issue. See the attached screenshot of the document.

Attachments
Untitled.png10.56 KB

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Hi Mario, Can you elaborate on consent field? Are you trying to place for example a checkbox using text anchors or are you trying to make a consent document?
Haris Haidary OneSpan Technical Consultant

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
I have a document and I am trying to place a SIGNATURE box based on a text . I am using the REST API. The text I am using for placing the SINGATURE is "-Registered" Error response from eConsent is given below { "messageKey": "error.validation.verifyDocument.documentExtractError", "code": 400, "name": "Validation Error", "message": "[error.validation.verifyDocument.documentExtractError]" }

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Error Request from eConsent is given below { "name": "Test Consent Request on Wed Oct 11 14:19:35 EDT 2017 from SimpleClient", "type": "PACKAGE", "status": "SENT", "roles": [{ "id": "Sender1", "type": "SIGNER", "index": 0, "signers": [{ "auth": { "challenges": [], "scheme": "NONE" }, "id": "", "company": "GGG , a division of Inc.", "firstName": "Rebecca", "lastName": "Rubaszek", "phone": "", "email": "[email protected]", "title": "" }], "emailMessage": { "content": "\u003c/span\u003e\u003cbr\u003e\u003cspan style\u003d\"margin:0; padding:0; margin-bottom: 0px; font-weight: normal; font-size:14px; line-height:1.6;\" p\u003d\"\" tabindex\u003d\"1001\"\u003eGGG , a division of Inc.\u003c/span\u003e\u003cbr\u003e\u003cspan style\u003d\"margin:0; padding:0; margin-bottom: 0px; font-weight: normal; font-size:14px; line-height:1.6;\" tabindex\u003d\"1003\"\u003eEmail: \u003cstrong\u003e\u003ca href\u003d\"mailto:[email protected]\" style\u003d\"color:\u003d\" tabindex\u003d\"1004\"\[email protected]\u003c/a\u003e\u003c/strong\u003e" }, "name": "Sender1" }, { "id": "Signer1", "type": "SIGNER", "index": 0, "signers": [{ "auth": { "challenges": [], "scheme": "NONE" }, "id": "", "company": "ACME", "firstName": "Tony", "lastName": "Wong", "phone": "", "email": "[email protected]", "title": "" }], "emailMessage": { "content": "\u003c/span\u003e\u003cbr\u003e\u003cspan style\u003d\"margin:0; padding:0; margin-bottom: 0px; font-weight: normal; font-size:14px; line-height:1.6;\" p\u003d\"\" tabindex\u003d\"1001\"\u003eGGG , a division of Inc.\u003c/span\u003e\u003cbr\u003e\u003cspan style\u003d\"margin:0; padding:0; margin-bottom: 0px; font-weight: normal; font-size:14px; line-height:1.6;\" tabindex\u003d\"1003\"\u003eEmail: \u003cstrong\u003e\u003ca href\u003d\"mailto:[email protected]\" style\u003d\"color:\u003d\" tabindex\u003d\"1004\"\[email protected]\u003c/a\u003e\u003c/strong\u003e" }, "name": "Signer1" }], "sender": { "email": "[email protected]", "firstName": "Rebecca", "lastName": "Rubaszek", "language": "", "phone": "", "title": "", "company": "" }, "documents": [{ "approvals": [{ "role": "Sender1", "fields": [{ "extract": true, "type": "SIGNATURE", "subtype": "CAPTURE", "extractAnchor": { "text": "Signature", "index": 0, "width": 130, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }, { "binding": "{approval.signed}", "extract": true, "type": "INPUT", "subtype": "LABEL", "extractAnchor": { "text": "Date", "index": 1, "width": 90, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }, { "extract": true, "type": "INPUT", "subtype": "TEXTAREA", "extractAnchor": { "text": "-Registered", "index": 0, "width": 10, "height": 10, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }], "name": "sender1-approval", "extract": true }, { "role": "Signer1", "fields": [{ "extract": true, "type": "SIGNATURE", "subtype": "CAPTURE", "extractAnchor": { "text": "Signature", "index": 1, "width": 130, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }, { "binding": "{approval.signed}", "extract": true, "type": "INPUT", "subtype": "LABEL", "extractAnchor": { "text": "Date", "index": 3, "width": 90, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }], "name": "signer1-approval", "extract": true }], "name": "Non Reg Investment Direction.pdf", "extract": true }], "settings": { "ceremony": { "declineButton": false, "hideCaptureText": true, "hideWatermark": false, "inPerson": true, "optOutButton": true, "layout": { "header": { "globalActions": { "confirm": false, "download": true, "saveAsLayout": false }, "globalNavigation": false, "sessionBar": false, "titleBar": { "progressBar": false, "title": false } } }, "documentToolbarOptions": { "downloadButton": false }, "handOver": { "href": "https://www.econsent.com/thankyou.html", "title": "Exit to " }, "disableDownloadForUncompletedPackage": true, "events": { "complete": { "dialog": false } } } }, "language": "en" }

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Alright I see. I don't think there's any issue with your json payload since you said it worked with another text anchor. Can you share your pdf if it doesn't have any sensitive information?
Haris Haidary OneSpan Technical Consultant

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Here's a working JSON payload:
{
  "name": "Test Consent Request on Wed Oct 11 14:19:35 EDT 2017 from SimpleClient",
  "type": "PACKAGE",
  "status": "SENT",
  "roles": [
    {
      "id": "Sender1",
      "type": "SIGNER",
      "index": 0,
      "signers": [
        {
          "auth": {
            "challenges": [],
            "scheme": "NONE"
          },
          "id": "",
          "company": "GGG , a division of Inc.",
          "firstName": "Rebecca",
          "lastName": "Rubaszek",
          "phone": "",
          "email": "[email protected]",
          "title": ""
        }
      ],
      "emailMessage": {
        "content": "
GGG , a division of Inc.
Email: [email protected]" }, "name": "Sender1" }, { "id": "Signer1", "type": "SIGNER", "index": 0, "signers": [ { "auth": { "challenges": [], "scheme": "NONE" }, "id": "", "company": "ACME", "firstName": "Tony", "lastName": "Wong", "phone": "", "email": "[email protected]", "title": "" } ], "emailMessage": { "content": "
GGG , a division of Inc.
Email: [email protected]" }, "name": "Signer1" } ], "sender": { "email": "[email protected]", "firstName": "Rebecca", "lastName": "Rubaszek", "language": "", "phone": "", "title": "", "company": "" }, "documents": [ { "approvals": [ { "role": "Sender1", "fields": [ { "extract": true, "type": "SIGNATURE", "subtype": "CAPTURE", "extractAnchor": { "text": "Signature", "index": 0, "width": 130, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }, { "binding": "{approval.signed}", "extract": true, "type": "INPUT", "subtype": "LABEL", "extractAnchor": { "text": "Date", "index": 1, "width": 90, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }, { "extract": true, "type": "INPUT", "subtype": "TEXTAREA", "extractAnchor": { "text": "-Registered", "index": 0, "width": 10, "height": 10, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } } ], "name": "sender1-approval", "extract": true }, { "role": "Signer1", "fields": [ { "extract": true, "type": "SIGNATURE", "subtype": "CAPTURE", "extractAnchor": { "text": "Signature", "index": 1, "width": 130, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } }, { "binding": "{approval.signed}", "extract": true, "type": "INPUT", "subtype": "LABEL", "extractAnchor": { "text": "Date", "index": 3, "width": 90, "height": 30, "anchorPoint": "TOPLEFT", "characterIndex": 0, "leftOffset": 0, "topOffset": 10 } } ], "name": "signer1-approval", "extract": true } ], "name": "Non Reg Investment Direction.pdf", "extract": true } ], "settings": { "ceremony": { "declineButton": false, "hideCaptureText": true, "hideWatermark": false, "inPerson": true, "optOutButton": true, "layout": { "header": { "globalActions": { "confirm": false, "download": true, "saveAsLayout": false }, "globalNavigation": false, "sessionBar": false, "titleBar": { "progressBar": false, "title": false } } }, "documentToolbarOptions": { "downloadButton": false }, "handOver": { "href": "https://www.econsent.com/thankyou.html", "title": "Exit to " }, "disableDownloadForUncompletedPackage": true, "events": { "complete": { "dialog": false } } } }, "language": "en" }
Whenever you get an error like that with text anchors, the way to go about it is to delete the anchors one by one in your json payload in order to determine which one is faulty.
Haris Haidary OneSpan Technical Consultant

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Hi Haris Thanks for your reply. Since The dash in "-Registered" was conflicting, I needed to know why it was conflicting and how resolve it. I cannot remove the "-Registered" from the payload. The JSON payload that you attached above is not working. There is no difference between the payload I sent you and the one you have posted. Silanis Error Response: {"messageKey":"error.validation.verifyDocument.documentExtractError","message":"[error.validation.verifyDocument.documentExtractError]","code":400,"name":"Validation Error"}

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Sorry for the confusion. I'm not sure why the dash is throwing an error. You already know that without the dash it's working. Any particular reason why you can't remove the dash from the payload?
Haris Haidary OneSpan Technical Consultant

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Not sure why it cant be removed. The Business Analyst is insisting on it. But is there any investigation you can do on your servers as to the root cause?

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Hi Haris There is a situation where when there is French Characters in the text , the Extraction doesnot work . For example in the attache pdf we need to place the SIGNATURE field based on position of "Représentant Scotia" This is not working. See the attached pdf Thanks Mario

Attachments
PM.pdf54.26 KB

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
I can create a ticket with our maintenance team but this will take some time (since you already have a workaround and the team is overloaded). As for the french extraction, let me run some tests and get back to you. On a side note, what I can suggest you to get around these problems is to place small unique white text in your documents where you want your signatures to be. This will ensure that the extraction will always work.
Haris Haidary OneSpan Technical Consultant

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Hi Haris Do you mean text with a white font colour? Thanks Mario

Reply to: Text Extraction Error - due to dash [ - ] symbol in String

0 votes
Yes.
Haris Haidary OneSpan Technical Consultant

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