0

There is a PDF attachment on a custom object, this is opening fine in Classic​ but in Lightning​ it throws Insufficient Privileges error (in a classic window) as below when user tries to view it. Note this happens for Admin user.

Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.

enter image description here

This PDF attachment is created from a managed package, but as far as I can see there is no access issue. Appreciate any help to resolve it. Thanks.

  • Is it possible that the app is throwing an exception? I know normal users can see this screen in that case, I'm not sure if the same can apply for Admins when it's a managed package. – IllusiveBrian Apr 23 '18 at 1:12
  • Hi @IllusiveBrian thanks, this error is thrown when we just view the PDF from the attachments related list. App is not throwing any exceptions. – Pasan Eeriyagama Apr 23 '18 at 1:16
  • Can you show the full URL? – bigassforce Apr 23 '18 at 1:45
  • Do they have a license to the app? – Eric Apr 23 '18 at 4:11
  • Hi @bigassforce, Eric Thanks guys, this looks little bit strange, We doubt it's because Salesforce migration of Attachments to Files. When we upload a file in classic, we cannot view in Lightning (Any PDF file) and giving above error screen (Lightning related list via View All shows no file-size for the pdf files added from classic), when we upload a pdf file to attachments in Lightning it can be viewed in both Lightning and classic. – Pasan Eeriyagama Apr 23 '18 at 4:34
0

This was experienced while accessing a cusomer org using LMO. But this was not there when they (customer) directly accessed the org.

Also we suspected it's due to Salesforce migrating from Attachments to Files. We advised users to go with Files than Attachments in the future.

Also in dev, we changed code to create Files instead Attachments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.