nehme

Error While Creating a PackageOneStep

0 votes
Hello, I am getting this error while generating eSign: Could not create a new package one step. Exception: The remote server returned an error: (400) Bad Request. HTTP POST on URI https://sandbox.e-signlive.ca/api/packages. Optional details: {"code":400,"messageKey":"error.validation.verifyDocument.couldNotBeFlattened","message":"Could not upload PDF document: it contains a syntax error preventing proper processing of its data.","name":"Validation Error"} Please advice. Thanks, Nehme

Approved Answer

Reply to: Error While Creating a PackageOneStep

0 votes
Hello Duo, After deep checking, It was a mistake from my side. because I am generation document locally, so the copy of the file was different than the copy I have in my local drive. So now the issue is fixed. Thanks, Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi Nehme, As per your error message, it seems an entity in your package payload with id of "a65f7b05-eaa5-43db-a90e-a80b6ee2240f" caused this 500 issue. So can you share your payload here or tell me more about your scenario? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hello Duo, How to share the payload with you? From where I will get it. I am generating a template from 11 documents, only the first document gives this error. Thanks, Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi Nehme, Do your code work well at other "generate template from documents" scenarios and just failed in this case? Can you send your code to [email protected] and we will discuss more on this once I can get more information? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hello Duo, The code is fine, when I do not use this document inside the template, it will be fine. Only one document inside the template giving me these problem. Thanks Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi Nehme, Is there any update about the problem? Can you upload this document with your Web UI Portal without issue? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hello Duo, Yes this document already uploaded in the template web ui. But while trying to create the package it is giving me the above error I have sent you. Thanks Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi Nehme, Can you test this document singly by creating a package from template with only this document? Do you inject extra label fields for this document? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hello Duo, I did this also, still getting the below error: Silanis.ESL.SDK.EslServerException HResult=0x80131500 Message=Could not create a new package one step. Exception: The remote server returned an error: (500) Internal Server Error. HTTP POST on URI https://sandbox.esignlive.com/api/packages. Optional details: {"messageKey":"error.internal.default","technical":"[#7405d075-323e-4a4d-9535-c3cc72f2de1e]","message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","code":500,"name":"Unhandled Server Error"} Source=Silanis.ESL StackTrace: at Silanis.ESL.SDK.Services.PackageService.CreatePackageOneStep(Package package, ICollection`1 documents) at Silanis.ESL.SDK.EslClient.CreatePackageOneStep(DocumentPackage package) at WebAPI.WebAPI.GeteSignLiveUrl(String ClientID, String ClientLang, Int32 SignersCnt) in F:\Projects\WebAPI\WebAPI.aspx.cs:line 11272 Inner Exception 1: EslServerException: The remote server returned an error: (500) Internal Server Error. HTTP POST on URI https://sandbox.esignlive.com/api/packages. Optional details: {"messageKey":"error.internal.default","technical":"[#7405d075-323e-4a4d-9535-c3cc72f2de1e]","message":"Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.","code":500,"name":"Unhandled Server Error"} Inner Exception 2: WebException: The remote server returned an error: (500) Internal Server Error. Thanks, Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi nehme, So if didn't miss something, you can create a template with this document while you can't create a package from template with this document included? Can you send your document to [email protected] so that I can have more test on that? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hello Duo, When create a transaction to sign this document, it is fine. But when I put this document inside a template I get this below error: Silanis.ESL.SDK.EslServerException HResult=0x80131500 Message=Could not create a new package one step. Exception: The remote server returned an error: (500) Internal Server Error. HTTP POST on URI https://sandbox.esignlive.com/api/packages. Optional details: {“messageKey”:”error.internal.default”,”technical”:”[#7405d075-323e-4a4d-9535-c3cc72f2de1e]”,”message”:”Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.”,”code”:500,”name”:”Unhandled Server Error”} Source=Silanis.ESL StackTrace: at Silanis.ESL.SDK.Services.PackageService.CreatePackageOneStep(Package package, ICollection`1 documents) at Silanis.ESL.SDK.EslClient.CreatePackageOneStep(DocumentPackage package) at WebAPI.WebAPI.GeteSignLiveUrl(String ClientID, String ClientLang, Int32 SignersCnt) in F:\Projects\WebAPI\WebAPI.aspx.cs:line 11272 Inner Exception 1: EslServerException: The remote server returned an error: (500) Internal Server Error. HTTP POST on URI https://sandbox.esignlive.com/api/packages. Optional details: {“messageKey”:”error.internal.default”,”technical”:”[#7405d075-323e-4a4d-9535-c3cc72f2de1e]”,”message”:”Unexpected error. We apologize for any inconvenience this may have caused you, please try again. If the problem persists, please contact our support team.”,”code”:500,”name”:”Unhandled Server Error”} Inner Exception 2: WebException: The remote server returned an error: (500) Internal Server Error. Any hint? Thanks Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi Nehme, Since you were testing with Sandbox environment, I assumed that you have the failed PDF. Could you try uploading the PDF directly to the web portal (https://sandbox.e-signlive.ca/a/dashboard) and see whether you'd hit any error? Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hello, I did upload but did not get any error. Thanks Nehme

Reply to: Error While Creating a PackageOneStep

0 votes
Hi Nehme, Few questions towards the issue: (1)Have you tried to apply the same code and the PDF to the production environment? Cause it happened before that a locked document can't upload to sandbox while successful in production (2)Were you using "Field Injection" or "Position/Document/Text Tags" extraction methods to map the OSS field to the PDF forms/signatures? (3)Can you share the PDF (if there's no sensitive informatoin) and if possible, your package creation code, so that I can try to reproduce the issue? Please kindly advise. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Error While Creating a PackageOneStep

0 votes
Hi Duo, Thanks for your support. I have already fixed the problem. Now it is ok. Thanks, Nehme

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