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
Normally if Appian doesnt find a document it gives Invalid Content Id error. So it doesnt look like a document existence issue. For starters I suggest the below -
1. Check the security applied to document/parent folder to confirm you have access permissions as expected
2. Check the tomcat-stdout log if it contains more details on the error
When I looked closely, I noticed that the error id 110829, but your code uses 110854. Please ensure you’re using the correct document ID.If the issue persists, verify that the user has the necessary permissions to access the document.