Help with error messageKey: error.validation.documentPreVerifyInvalidResponseNumberError
Wednesday, June 30, 2021 at 12:47pmWhen 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?
Reply to: Help with error messageKey: error.validation.documentPreVerifyInvalidResponseNumberError
Monday, July 5, 2021 at 10:07amHi 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