Hi All,
I am facing an issue with documents in Appian. My scenario is as follows:-
A user navigates to the summary view of a record and then uploads some documents and then clicks on Submit button. On click of submit, a process is triggered when save the uploaded documents in Appian KC as well as save the generated document id to DB table. The submit button is set to "submit=true()". However, when I try to display the uploaded document on the same interface rule, by fetching the document id from the DB, I am getting the error message "document does not exist or has been deleted". I have checked all values passed to this interface rule and they are all as expected.
When I try to test the interface rule separately, it does not cause the same issue as described earlier. Has anyone any pointers to get around this issue?
Thanks,
Dipak J
Discussion posts and replies are publicly visible
dipakj
It seems like there is a high possibility that instead of the actual document id, the temporary document id is being saved in the DB.
Can you verify the document id in the db and that in the KC matches?
Thanks for the reply.
The document id in Db is not fetching me the document when I check with "todocument" function. Looks like the document id is temporary and hence I am not able to get back the document. However, as I mentioned in the post earlier, it works fine when I test it from the interface rule level. The issue arises once I map the interface rule to the summary dashboard.
Hello Dipak,
The document could be stored in the Temporary KC or the basic users may not be having access to the document folder. In those cases, the documents can be accessed only by the admins. So check your process, make sure you are moving to the proper document folder and make sure that the security of the folder is properly configured.
And make sure that you are able to see the uploaded documents in the intended folders.
When you test it from the rule level, do you take the document id from the database? If that is the case then as Edwin Yesa suggested, check the security of the document folder