Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
    public class TestEx{
    //some code
  }catch(Exception e){
    string errmsg='';
    log__c log= new log__c();
    log.Error_Log__c=errmsg;//long text
    insert log;


when this code is executed in a developer org of a managed pkg, the result is as expected. But after releasing this code when this code is executed in installed org,All the methods are returning null except the getmessage() method.

share|improve this question
Im pretty sure that is the expected behaviour. Errors within managed packages are suppressed. You will need to raise a case with SF to get the logging turned on for managed packages. They will only enable the logging for a certain amount of time. – BarCotter Apr 17 '14 at 14:07
up vote 6 down vote accepted

If the package has passed security review, then the org the package is installed in can grant you login access like they would to Salesforce Support. This enables you to login via the Subscriber Tab in your LMA org to that org - and at that point, when you look in the Dev Console, you'll see the stack trace.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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