krishnanulicdk

Unable to remove all the documents from the package.

0 votes
Hi, We are unable to remove all the documents from the package when document visibility settings are enabled. We are getting 400 (Bad Request) error when we try from the API. Again we have tried from the esign portal, we got the below error. The changes cannot be saved because some recipients do not have any documents visible to them. Thanks in Advance, Krishna.

Reply to: Unable to remove all the documents from the package.

1 votes
Hi Krishna, As per the error message, you cannot delete a document where it would cause a signers to have 0 documents visible them. Before deleting the document in question, you will need to either reset its visibility (i.e. make them visible to everyone in the transaction) or delete the signer(s) that can view the document.
Haris Haidary OneSpan Technical Consultant

Reply to: Unable to remove all the documents from the package.

0 votes
Hi, I started removing the signer in the first call and immediately, (in the next line of my code) i tried to remove the documents it is throwing me below error and document is not removing Server error response [status code] 500 [reason phrase] Internal Server Error [url] https://sandbox-esignlive.xxx.com/api/packages/4ydFJ0FVnPnoZBp10aV0cd36-jE=/documents/9db39630-1988-498c-a31e-ffaf3a4f8317 I have written the code in a way like Step 1 : Changed Package status to DRAFT Step 2 : Removed the Signers on the package Step 3: Changed the package status to Send/InProgress Step 4 : Changed the package status to Draft Step 5 : Removed the documents Step 6 : Changed the package status to Send/InProgress Kindly tell me the right approach to do this. Thanks In Advance, Krishna.

Reply to: Unable to remove all the documents from the package.

0 votes
After you've removed the signer, you do not need to change the status back to SENT. You can go ahead and simply delete the document while it's sitting in DRAFT.
Haris Haidary OneSpan Technical Consultant

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