This topic contains 3 replies, has 2 voices, and was last updated by  Haris 2 months, 1 week ago.

  • Author
    Posts
  • Participant
    krishnanulicdk
    Newbie
    Member since: 21.09.2017
    Number of posts: 9

    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.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    1

    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
    Participant
    krishnanulicdk
    Newbie
    Member since: 21.09.2017
    Number of posts: 9

    Score

    0

    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.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    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

You must be logged in to reply to this topic.