Skip to main content
Known Participant
Jul 26, 2021 7:46 AM UTC
Question

document deleted or not exist

Dear Team,

Interface error : document does not exist or deleted error appearing.

We have document id with us , todocument(docid) is giving us document name , but the same same documentid when we are passing to document() it is throwing the same error.

We are also not able to search document in objects using doc id. Any idea ?

    4 replies

    stefanhelzle0001
    Brainy
    Jul 26, 2021 8:33 AM UTC

    Has that document already been uploaded? I mean, including submit of the form?

    Known Participant
    Jul 26, 2021 8:34 AM UTC

    Yes, on form submit we add the document id into DB and pull it into next step for approval task , on approval task it is throwing error . Happening with few random requests not all.

    stefanhelzle0001
    Brainy
    Jul 26, 2021 8:37 AM UTC

    If that does not happen with all processes, then what is the difference? Did you check process history?

    davel001150
    Inspiring
    Jul 26, 2021 12:32 PM UTC

    There's an object existence plugin that you can utilize.  It comes with isObjectExists() function.  That's a fail-safe to keep your app going when it happens.  Next is to figure out what's seemingly randomly taking out your documents.

    FEATURE REQUEST:  I think it's an important thing lacking from the current product, and really should be rolled into OOTB Appian, that is simply not crashing when you search for a document that doesn't exist, but having an actionable, understandable output, "Doc not found" or "-1" or something else that doesn't grind my program to a halt without another product to help.