Klin88

"messageKey":"error.validation.verifyDocument.couldNotBeFlattened"

1 votes

"messageKey":"error.validation.verifyDocument.couldNotBeFlattened","message

Hi, getting the same error, document is correct pdf, can you please check {"messageKey":"error.validation.verifyDocument.couldNotBeFlattened","message":"Could not upload PDF document: it contains a syntax error preventing proper processing of its data.","code":400,"name":"Validation Error"}

Please find the file attached, here is the payload {
    "approvals": [{
            "fields": [{
                    "extract": false,
                    "extractAnchor": {
                        "anchorPoint": "BOTTOMRIGHT",
                        "characterIndex": 0,
                        "height": 50,
                        "index": 0,
                        "leftOffset": 150,
                        "text": "PA signature",
                        "topOffset": -40,
                        "width": 300
                    },
                    "height": 50.0,
                    "left": 0.0,
                    "page": 0,
                    "subtype": "FULLNAME",
                    "top": 0.0,
                    "type": "SIGNATURE",
                    "width": 200.0
                }
            ],
            "role": "328727",
            "optional": false,
            "disabled": false,
            "enforceCaptureSignature": false
        }, {
            "fields": [{
                    "extract": false,
                    "extractAnchor": {
                        "anchorPoint": "BOTTOMRIGHT",
                        "characterIndex": 0,
                        "height": 50,
                        "index": 0,
                        "leftOffset": 150,
                        "text": "Vendor signature",
                        "topOffset": -40,
                        "width": 300
                    },
                    "height": 50.0,
                    "left": 0.0,
                    "page": 0,
                    "subtype": "FULLNAME",
                    "top": 0.0,
                    "type": "SIGNATURE",
                    "width": 200.0
                }
            ],
            "role": "328726",
            "optional": false,
            "disabled": false,
            "enforceCaptureSignature": false
        }
    ],
    "data": {},
    "description": "Part 0",
    "extract": false,
    "extractionTypes": [],
    "fields": [],
    "id": "",
    "index": 0,
    "name": "Order #50568640",
    "pages": []
}


Reply to: "messageKey":"error.validation.verifyDocument.couldNotBeFlattened"

0 votes

Hi Klin88,

 

Thanks for your post! Just did a quick test by uploading the PDF you shared to the UI portal and I was hitting the same error message. Looks like the issue is at the PDF itself, could you raise the issue to support team ([email protected]) along with the PDF that hits the error?

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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