function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ignacio JimenezIgnacio Jimenez 

Error ID: 54355586-30628 (392723118)

I am getting this message when trying to vew a Visualforce page which asks a controller class to redirect to a page if User Profile is X, and to standard page if not. I did not see any errors on the logs. Can anyone give me a clue of what might be happening? Thanks!!
----------------------
An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com! 

Error ID: 54355586-30628 (392723118)

----------------------
URL: https://nectia--hh--c.cs4.visual.force.com/apex/propuesta?id=a0Ei000000oT9ju&sfdc.override=1
sfdarkcsfdarkc
It might cause issues if you're trying to redirect a user to the previous page.  
Rakesh51Rakesh51
Can you post the complete Debug log here ?
Ignacio JimenezIgnacio Jimenez
37.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
14:05:20.0 (290733)|USER_INFO|[EXTERNAL]|005i0000007ShnV|__instanceUserNameGoesHere__.hh|Hora de Chile|GMT-03:00
14:05:20.0 (328574)|EXECUTION_STARTED
14:05:20.0 (338532)|CODE_UNIT_STARTED|[EXTERNAL]|066P00000009Vub|VF: /apex/propuesta
14:05:20.0 (7213040)|SYSTEM_MODE_ENTER|true
14:05:20.0 (7822332)|HEAP_ALLOCATE|[72]|Bytes:3
14:05:20.0 (7870491)|HEAP_ALLOCATE|[77]|Bytes:152
14:05:20.0 (7888792)|HEAP_ALLOCATE|[342]|Bytes:408
14:05:20.0 (7908102)|HEAP_ALLOCATE|[355]|Bytes:408
14:05:20.0 (7927142)|HEAP_ALLOCATE|[467]|Bytes:48
14:05:20.0 (7962455)|HEAP_ALLOCATE|[139]|Bytes:6
14:05:20.0 (7985561)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:7
14:05:20.0 (8008335)|METHOD_ENTRY|[1]|01pP0000000FPOK|PropuestaExt.PropuestaExt()
14:05:20.0 (8015534)|STATEMENT_EXECUTE|[1]
14:05:20.0 (8022651)|STATEMENT_EXECUTE|[1]
14:05:20.0 (8030307)|METHOD_EXIT|[1]|PropuestaExt
14:05:20.0 (8155045)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:16
14:05:20.0 (8177003)|VARIABLE_SCOPE_BEGIN|[6]|this|PropuestaExt|true|false
14:05:20.0 (8264898)|VARIABLE_ASSIGNMENT|[6]|this|{}|0x229e20f9
14:05:20.0 (8274819)|VARIABLE_SCOPE_BEGIN|[6]|controller|ApexPages.StandardController|true|false
14:05:20.0 (8498028)|VARIABLE_ASSIGNMENT|[6]|controller|"StandardController [null]"|0xc6da276
14:05:20.0 (8508378)|STATEMENT_EXECUTE|[1]
14:05:20.0 (8511189)|STATEMENT_EXECUTE|[3]
14:05:20.0 (8523683)|STATEMENT_EXECUTE|[4]
14:05:20.0 (8529785)|STATEMENT_EXECUTE|[36]
14:05:20.0 (8546238)|HEAP_ALLOCATE|[7]|Bytes:6
14:05:20.0 (8611766)|STATEMENT_EXECUTE|[6]
14:05:20.0 (8615423)|STATEMENT_EXECUTE|[7]
14:05:20.0 (8648303)|HEAP_ALLOCATE|[50]|Bytes:5
14:05:20.0 (8666954)|HEAP_ALLOCATE|[56]|Bytes:5
14:05:20.0 (8676015)|HEAP_ALLOCATE|[64]|Bytes:7
14:05:20.0 (8809801)|VARIABLE_ASSIGNMENT|[7]|this.controller|"StandardController [null]"|0x229e20f9
14:05:20.0 (8816523)|STATEMENT_EXECUTE|[8]
14:05:20.0 (8829825)|HEAP_ALLOCATE|[8]|Bytes:61
14:05:20.0 (8843603)|HEAP_ALLOCATE|[8]|Bytes:4
14:05:20.0 (8858512)|HEAP_ALLOCATE|[8]|Bytes:7
14:05:20.0 (8935116)|HEAP_ALLOCATE|[8]|Bytes:50
14:05:20.0 (9009000)|HEAP_ALLOCATE|[8]|Bytes:31
14:05:20.0 (9031806)|HEAP_ALLOCATE|[8]|Bytes:2
14:05:20.0 (14121007)|SOQL_EXECUTE_BEGIN|[8]|Aggregations:0|SELECT p.Cuenta__r.id FROM Propuesta__c p WHERE id = :tmpVar1
14:05:20.0 (20154848)|SOQL_EXECUTE_END|[8]|Rows:1
14:05:20.0 (20176716)|HEAP_ALLOCATE|[8]|Bytes:8
14:05:20.0 (20191631)|HEAP_ALLOCATE|[8]|Bytes:153
14:05:20.0 (20235320)|HEAP_ALLOCATE|[8]|Bytes:8
14:05:20.0 (20246264)|HEAP_ALLOCATE|[8]|Bytes:38
14:05:20.0 (20308700)|HEAP_ALLOCATE|[8]|Bytes:20
14:05:20.0 (20358626)|VARIABLE_ASSIGNMENT|[8]|this.propuesta|{"s":1,"v":{"Cuenta__c":"001i000000PRxkkAAD","Id":"a0Ei000000oT9juEAC","CurrencyIsoCode":"USD","Cuenta__r":{"s":2,"v":{"Id":"001i000000PRxkkAAD","CurrencyIsoCode":"CLF"}}}}|0x229e20f9
14:05:20.0 (20364160)|STATEMENT_EXECUTE|[9]
14:05:20.0 (20373588)|HEAP_ALLOCATE|[9]|Bytes:221
14:05:20.0 (20379825)|HEAP_ALLOCATE|[9]|Bytes:4
14:05:20.0 (20427798)|HEAP_ALLOCATE|[9]|Bytes:7
14:05:20.0 (24325685)|SOQL_EXECUTE_BEGIN|[9]|Aggregations:0|SELECT AccountId, ActivityDate, Who.FirstName, Who.LastName, CreatedBy.Alias, CreatedDate, Description, Id, Subject, What.Name FROM Task WHERE (whatId = :tmpVar1 OR whatId = :tmpVar2) ORDER BY CreatedDate DESC NULLS FIRST
14:05:20.0 (38280567)|SOQL_EXECUTE_END|[9]|Rows:1
14:05:20.0 (38314748)|HEAP_ALLOCATE|[9]|Bytes:8
14:05:20.0 (38343491)|HEAP_ALLOCATE|[9]|Bytes:725
14:05:20.0 (38376098)|HEAP_ALLOCATE|[9]|Bytes:8
14:05:20.0 (38481172)|VARIABLE_ASSIGNMENT|[9]|this.correos|{"s":1,"v":[{"s":2,"v":{"AccountId":"001i000000PRxkkAAD","ActivityDate":"2016-08-17T00:00:00.000Z","WhoId":"003P000000thHkwIAE","CreatedById":"005i0000000Gh8HAAS","CreatedDate":"2016-08-04T21:30:17.000Z","Description":"Adicional para: ijim (196 more) ...","Id":"00TP000000E7TA7MAN","Subject":"Correo electrónico:  (18 more) ...","WhatId":"a0Ei000000oT9juEAC","CurrencyIsoCode":"CLF","Who":{"s":3,"v":{"FirstName":"contacto1","LastName":"apellido","Id":"003P000000thHkwIAE"}},"CreatedBy":{"s":4,"v":{"Alias":"ijim","Id":"005i0000000Gh8HAAS","CurrencyIsoCode":"CLF"}},"What":{"s":5,"v":{"Name":"Alma Contempora","Id":"a0Ei000000oT9juEAC"}}}}]}|0x229e20f9
14:05:20.0 (38654635)|SYSTEM_MODE_ENTER|true
14:05:20.0 (38747119)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:16
14:05:20.0 (38765842)|VARIABLE_SCOPE_BEGIN|[18]|this|PropuestaExt|true|false
14:05:20.0 (38964479)|VARIABLE_ASSIGNMENT|[18]|this|{"controller":"StandardController [null]","correos":"0x1a3df887","propuesta":"0x691b94a1"}|0x229e20f9
14:05:20.0 (38982588)|STATEMENT_EXECUTE|[18]
14:05:20.0 (38984570)|STATEMENT_EXECUTE|[20]
14:05:20.0 (38995409)|HEAP_ALLOCATE|[20]|Bytes:48
14:05:20.0 (39002516)|HEAP_ALLOCATE|[20]|Bytes:4
14:05:20.0 (39082854)|HEAP_ALLOCATE|[20]|Bytes:85
14:05:20.0 (39111253)|SYSTEM_METHOD_ENTRY|[1]|UserInfo.UserInfo()
14:05:20.0 (39116658)|STATEMENT_EXECUTE|[1]
14:05:20.0 (39129034)|SYSTEM_METHOD_EXIT|[1]|UserInfo
14:05:20.0 (39145742)|METHOD_ENTRY|[20]||System.UserInfo.getProfileId()
14:05:20.0 (39202567)|METHOD_EXIT|[20]||System.UserInfo.getProfileId()
14:05:20.0 (40412162)|SOQL_EXECUTE_BEGIN|[20]|Aggregations:0|SELECT id, Name FROM Profile WHERE Id = :tmpVar1
14:05:20.0 (42511725)|SOQL_EXECUTE_END|[20]|Rows:1
14:05:20.0 (42532817)|HEAP_ALLOCATE|[20]|Bytes:8
14:05:20.0 (42543658)|HEAP_ALLOCATE|[20]|Bytes:60
14:05:20.0 (42612019)|HEAP_ALLOCATE|[20]|Bytes:8
14:05:20.0 (42622124)|HEAP_ALLOCATE|[20]|Bytes:33
14:05:20.0 (42708721)|HEAP_ALLOCATE|[20]|Bytes:12
14:05:20.0 (42716571)|VARIABLE_SCOPE_BEGIN|[20]|c|Profile|true|false
14:05:20.0 (42736743)|VARIABLE_ASSIGNMENT|[20]|c|{"s":1,"v":{"Id":"00ei0000001ZuU8AAK","Name":"Gerente Unidad Alma"}}|0x22f0f59d
14:05:20.0 (42740440)|STATEMENT_EXECUTE|[21]
14:05:20.0 (42749833)|HEAP_ALLOCATE|[21]|Bytes:47
14:05:20.0 (42756204)|HEAP_ALLOCATE|[21]|Bytes:4
14:05:20.0 (42817566)|HEAP_ALLOCATE|[21]|Bytes:50
14:05:20.0 (42860886)|HEAP_ALLOCATE|[21]|Bytes:31
14:05:20.0 (43081002)|SOQL_EXECUTE_BEGIN|[21]|Aggregations:0|SELECT Id FROM Propuesta__c WHERE Id = :tmpVar1
14:05:20.0 (44627460)|SOQL_EXECUTE_END|[21]|Rows:1
14:05:20.0 (44646469)|HEAP_ALLOCATE|[21]|Bytes:8
14:05:20.0 (44657778)|HEAP_ALLOCATE|[21]|Bytes:55
14:05:20.0 (44673144)|HEAP_ALLOCATE|[21]|Bytes:8
14:05:20.0 (44706418)|HEAP_ALLOCATE|[21]|Bytes:12
14:05:20.0 (44714024)|VARIABLE_SCOPE_BEGIN|[21]|p|Propuesta__c|true|false
14:05:20.0 (44731925)|VARIABLE_ASSIGNMENT|[21]|p|{"s":1,"v":{"Id":"a0Ei000000oT9juEAC","CurrencyIsoCode":"USD"}}|0x4d689f34
14:05:20.0 (44735446)|STATEMENT_EXECUTE|[22]
14:05:20.0 (44744255)|VARIABLE_SCOPE_BEGIN|[22]|newPage|System.PageReference|true|false
14:05:20.0 (44750351)|VARIABLE_ASSIGNMENT|[22]|newPage|null|
14:05:20.0 (44776872)|HEAP_ALLOCATE|[24]|Bytes:19
14:05:20.0 (44814071)|STATEMENT_EXECUTE|[24]
14:05:20.0 (44815936)|STATEMENT_EXECUTE|[25]
14:05:20.0 (44825473)|HEAP_ALLOCATE|[25]|Bytes:15
14:05:20.0 (44961232)|VARIABLE_ASSIGNMENT|[25]|newPage|"/apex/propuesta"|0x297a21de
14:05:20.0 (44966582)|STATEMENT_EXECUTE|[31]
14:05:20.0 (45018052)|HEAP_ALLOCATE|[31]|Bytes:0
14:05:20.0 (45061234)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:-4
14:05:20.0 (45068695)|STATEMENT_EXECUTE|[32]
14:05:20.0 (45125393)|HEAP_ALLOCATE|[32]|Bytes:39
14:05:20.55 (55229200)|USER_INFO|[EXTERNAL]|005i0000007ShnV|__instanceUserNameGoesHere__.hh|Hora de Chile|GMT-03:00
14:05:20.59 (59470588)|CUMULATIVE_LIMIT_USAGE
14:05:20.59 (59470588)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 4 out of 100
  Number of query rows: 4 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

14:05:20.59 (59470588)|CUMULATIVE_LIMIT_USAGE_END

14:05:20.0 (59523022)|CODE_UNIT_FINISHED|VF: /apex/propuesta
14:05:20.0 (61182999)|EXECUTION_FINISHED
And this is the class that I use to forward to a visualforce page called "propuesta", if the name os the profile os the user is equals to "Gerente Unidad Alma". If the profile is another one, then it should forward to a starndar sf page.
public class DispatcherContactViewController {

    public DispatcherContactViewController(ApexPages.StandardController controller) {
        this.controller = controller;
    }

    public PageReference getRedir() {

        UserRole c = [Select id, Name From UserRole Where Id = :UserInfo.getUserRoleId()];
        Propuesta__c p = [Select Id from Propuesta__c Where Id = :ApexPages.currentPage().getParameters().get('id')];
        PageReference newPage;

        if (c.Name == 'Gerente Unidad Alma') {
            newPage = Page.propuesta;
        } else {
            newPage = new PageReference('/' + p.id);
            newPage.getParameters().put('nooverride', '1');
        }

        newPage.getParameters().put('id', p.id);
        return newPage.setRedirect(true);

    }

    private final ApexPages.StandardController controller;

}