Issue with “Delete Document” node right after Integration upload

Hi everyone,

I'm running into an unexpected issue when trying to delete a document immediately after uploading it through an integration in the same process model.

I have an interface where the user uploads an Excel file, which gets stored temporarily in Document Management.
From that interface, I start a Process Model that looks like this (see attached image):

  1. Start Node

  2. Gateway → checks if a document exists

  3. HTTP Integration (CEDT_INT_postUpload) → sends the file to an external endpoint

  4. Delete Document → deletes the temporary file after upload

  5. End Node

When the process reaches the Delete Document node, it seems that Appian hasn’t finished handling or streaming the document yet.
As a result, the integration fails or the file never actually reaches the destination folder.

If I remove the Delete Document node (or move it to a later step, e.g., after a short delay or in a separate subprocess), everything works fine — the upload completes successfully.

Has anyone experienced something similar?
Is it possible that Appian still locks or streams the file during the integration, causing the Delete Document node to interfere?
Are there any best practices for safely deleting documents after uploading them through an integration in the same process?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Curious to know The error was showing at the CEDT_INT_postUpload Node. and the path did not reached the Delete document as well. 
    1. Try to check you uploading a documents with different Names.(Does not makes sense here, but curious that the document might got deleted before you even call the intergration).

    2. Isn't a good idea to process the output of the Integration check the success path and Delete document to that success path?

Reply
  • 0
    Certified Associate Developer

    Curious to know The error was showing at the CEDT_INT_postUpload Node. and the path did not reached the Delete document as well. 
    1. Try to check you uploading a documents with different Names.(Does not makes sense here, but curious that the document might got deleted before you even call the intergration).

    2. Isn't a good idea to process the output of the Integration check the success path and Delete document to that success path?

Children
No Data