We don't get much information on email received by subscriber if Post-install script fails.


  1. Unexpected Error

The package installation failed. Please provide the following information to the publisher:

Organization Name: XYZ Testing Ltd

Organization ID: 00D6N000000BycY

Package: ABC

Version: x.x

Error Message: The post install script failed.

I'm trying to debug Post Install script, tried to debug it using LMA subscriber access. But it seems it does not log install script (i.e. our System.debug() code).

I have set up an email alert in a Try{}catch{}, but it's not being sent, Doubted since it'e beta we don't get emails.

Also Can we use Apex Exception email to get more details on Install post-script issues?

Any thoughts on a better way to debug this?


  • Did you try manually invoking the script from Console in customer org? It will generate the logs for you and may help you to find out the root cause. – Prasanna Jan 25 '18 at 7:42
  • Thanks @prasanna, If you do that script runs fine. – Pasan Eeriyagama Jan 25 '18 at 20:18
  • 1
    @PasanE Hi , I am facing the same issue while installing my app from the other user . Can you please suggest me to resolve this – Roster Jun 26 '18 at 10:19
  • We couldn't find a better way, while we didn't do this -> I'm thinking to suggest using a Try-catch, and logging to a custom error logging object in Catch block, and delete the logs older than certain period. But this is not a 100% perfect solution. But it could help to see the errors while upgrade (post-install). It's better trying out with a test package first as we cannot delete the objects added to non-beta packages after release. – Pasan Eeriyagama Jun 26 '18 at 23:44

Your Answer

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

Browse other questions tagged or ask your own question.