incompatibleApprovalsOnTheSameRole
Tuesday, October 10, 2023 at 10:37pmHi,
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
Reply to: incompatibleApprovalsOnTheSameRole
Wednesday, October 11, 2023 at 08:31amHi 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