a!richTextDisplayField( value: a!richTextItem( text: "Download Document", link: a!documentDownloadLink( document: todocument(110854) ) ) )
I am trying to download a document (The document exists in the folder ) but it is giving an error like:
{ "error": "APNX-1-0000-000", "message": "Unable to find File for content object with id: 110829", "title": "An Error Has Occurred" }
Discussion posts and replies are publicly visible
https://community.appian.com/support/w/kb/1003/kb-1599-downloading-a-document-results-in-title-an-error-has-occurred go through this link. (Can i know the version of your environmnet ??)
25.2
The above KB is for older versions (it might not be an issue).Can you check whether you have the all required permissions and is it returning document name when you call it in standalone like todocument function
Yes, it returns the document name from the document function. Also i have checked the security as well.
Are you able to download any other document in the application/environment or this specific document is the issue?
The problem is with few documents only . I am able to download document from the same folder.
Can you provide more context for the process in your use case? Like is this UI, where the download link is setup, getting the doc id from a parent rule/process? Understanding the context about how is the setup done or where this piece lies in your design will be better to help resolve this issue
I need to show all document in the specific folder with download link in interface.