Hi I am trying to display file preview for attached documents. We have provided a dynamic link when clicked ,we are calling a PM to fetch the document from Documentum and store it in Appian folder. However the PDF type file does not preview for some users, whereas Dev team with admin access have no issue viewing the preview for the file. FYI it is happening only for PDF type files PNG files seems to be working fine.
Discussion posts and replies are publicly visible
This looks like an unusual issue. Are you getting any error in the std-out.log file?
How will that be helpful in this situation ?
We only know this aftter reading the file. Could be some issue with the user's context. Or something that Appian isn't able to show on the front end.
Also, here are some point you might want to confirm.
Thank you for the answer will look into the std-out.log file for more insight, please find my answer in red
I assume that you return the document id from that process.
Did you enable chaining?
What is the runtime of this process?
Do you see the returned valid document id in your local variable?
Added to the previous suggestions - did you double check the security settings the file gets downloaded under (which is probably just the security for the folder it's loaded into)? If admin users have no issues while some other users are failing to see it, in my experience the first thing to check has always been whether or not those users even belong to the necessary groups to view the folder contents.
Yes we did Check for the permission for the folder the user have required permission and the Document is also getting downloaded every time into Appian folder after clicking on the provided link.
Yes we are getting valid document ID and the attachment is getting stored into Appian folder as well temporarily.
To double check, add a Document Download Link on the same form pointing to the same PDF file, and for the users who can't access it via the Preview field, see if they can still download it.
Also, can you reproduce this behavior logged in as different users on the same machine? If the problematic users are all at different locations, it could have to do with local firewalls blocking the special Appian URL used for hosting preview document material, which if i remember correctly, is something slightly different.