ChrsDy | Posts: 3

incompatibleApprovalsOnTheSameRole

0 votes

Hi,

Around the 5th October it looks like we can no longer create packages containing a mix of text anchor fields and positional placement fields.

The following payload used to work before Oct 5th in the OneSpan sandbox environment.


{
    "name": "TestDocument",
    "extract": true,
    "extractionTypes": [
        "TEXT_TAGS"
    ],
    "approvals": [
        {
            "fields": [
                {
                    "subtype": "FULLNAME",
                    "type": "SIGNATURE",
                    "top": 100.0,
                    "left": 100.0,
                    "width": 200.0,
                    "height": 50.0,
                    "page": 0
                }
            ],
            "role": "Role1"
        },
        {
            "fields": [
                {
                    "subtype": "FULLNAME",
                    "type": "SIGNATURE",
                    "extractAnchor": {
                        "text": "Please Sign",
                        "width": 200,
                        "height": 50,
                        "characterIndex": 0,
                        "leftOffset": 0,
                        "topOffset": -50,
                        "index": 0
                    }
                }
            ],
            "role": "Role1"
        }
    ]
}

However since then that particular test has started failing with the following error:

{"messageKey":"error.validation.package.incompatibleApprovalsOnTheSameRole","message":"The same role can not have assigned approvals with signatures and without signatures in the same document.","code":400,"name":"Validation Error"}

Is this a bug? Or is this combination no longer supported?

Regards
 


Duo_Liang | Posts: 3776

Reply to: incompatibleApprovalsOnTheSameRole

0 votes

Hi Chris,

 

Thanks for reporting the issue! I can reproduce the same when creating packages containing a mix of text anchor fields and positional placement fields. The same JSON works in Production while failed in Sandbox with the latest release. I'd like to fill in a support ticket on your behalf and escalate the issue to R&D team.

Thanks again for sharing this to us!

 

Duo


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