Catch exception when document has been removed from Knowledge Center

Hi All,

I want to check the document nullability if it is not available in KC. For ex. If I upload one document with id [Document:203206] and somehow its been removed. Now if I tries to get the document through process it will throw an error.

Kindly suggest the best way to handle this situation.

Thanks in Advance !

OriginalPostID-211329

OriginalPostID-211329

  Discussion posts and replies are publicly visible

Parents
  • @ajayp, just want to add some info here. Generally, before the form is submitted using SAIL document upload field, the document is saved on the server (and not tearget KC) with an inactive temporary Id and we cannot perform any operations with that Id. Once the form is submitted using SAIL document upload field, the document is saved with a new version. This might be the possible reason for the missing document. An alternative is to have a "Upload" button which helps the document getting upload into the targeted KC directly. You will now have the actual document id, with which you can convert it into a document and perform a variety of validations.
Reply
  • @ajayp, just want to add some info here. Generally, before the form is submitted using SAIL document upload field, the document is saved on the server (and not tearget KC) with an inactive temporary Id and we cannot perform any operations with that Id. Once the form is submitted using SAIL document upload field, the document is saved with a new version. This might be the possible reason for the missing document. An alternative is to have a "Upload" button which helps the document getting upload into the targeted KC directly. You will now have the actual document id, with which you can convert it into a document and perform a variety of validations.
Children
No Data