SamiraJavdani

Help with error messageKey: error.validation.documentPreVerifyInvalidResponseNumberError

0 votes

When using attached javascript code to create and upload document 1 step below error is thrown:
 

{ "messageKey":"error.validation.documentPreVerifyInvalidResponseNumberError", "parameters":{                                                                "errorException":"number of documents that need verification = 2, number of verification results = 0"                                                 }, "message":"The number of Pre-Verify results does not match the number of documents that were sent for verification.", "code":400,"name":"Validation Error" }

We are using a platform called Quadient that can not import external functions because it uses a small library for scripting.
Our application uses two languages. JavaScrip (a small version of JS and a small versión of C++). Its works fine with almost all Web Services but we don't know what the problem is. Can you please advise if we can build the raw request?


Attachments

Reply to: Help with error messageKey: error.validation.documentPreVerifyInvalidResponseNumberError

0 votes

Hi Samira,

 

From the error message, the issue regards to the encoding method when reading the PDF to binary "var loadedFile = fs.read(path + filename);" and building the request body.

If the client doesn't change the PDF content a lot, they can attempt to use template to avoid uploading PDF every transaction creation.

 

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