Reg: Your request cannot be processed at this time.The site administrator has been alerted

3,011 views
Skip to first unread message

mahendiran jayavarma

unread,
Dec 2, 2010, 2:15:14 AM12/2/10
to salesforce-p...@googlegroups.com
Hi,
 
I'm trying to create new user via the 'SiteRegister' page. But I could not register the user.
Even I update the portal account ID in the SiteRegisterController, Im getting error for "Your request cannot be processed at this time.The site administrator has been alerted"
 
Please give me the solution.
 
 
Thanks,
Mahendiran.

rao 6308

unread,
Dec 2, 2010, 3:00:45 AM12/2/10
to salesforce-p...@googlegroups.com
I would check the other class SiteLogincontroller where the username and password are verified too

But can you tell me why u are trying to create a user through the site registration page? I am Just asking out of curosity

SiteLoginController controller = new SiteLoginController ();
        controller.username = 'te...@salesforce.com';
        controller.password = '123456'; 


             

mahendiran jayavarma

unread,
Dec 2, 2010, 5:27:19 AM12/2/10
to salesforce-p...@googlegroups.com
Actually I enabled login page in my portal. becasue public users may register. So..
 
sitelogincontroller class is test method.

rao 6308

unread,
Dec 3, 2010, 3:26:32 PM12/3/10
to salesforce-p...@googlegroups.com
I created a new user using sites

I changed the AccountId parameter in the below class:

public class SiteRegisterController {
    // PORTAL_ACCOUNT_ID is the account on which the contact will be created on and then enabled as a portal user.
    // you need to add the account owner into the role hierarchy before this will work - please see Customer Portal Setup help for more information.      
    private static Id PORTAL_ACCOUNT_ID = '001A0000005aSYa';
   
    public SiteRegisterController () {
    }

    public String username {get; set;}
    public String email {get; set;}
    public String password {get; set {password = value == null ? value : value.trim(); } }
    public String confirmPassword {get; set { confirmPassword = value == null ? value : value.trim(); } }
    public String communityNickname {get; set { communityNickname = value == null ? value : value.trim(); } }


I was able to create a test user using sites.

Note: I got a email notification from Salesforce when my authetication failed so if you try use the VF page as active page your email might speak a little more on why the authentication failed

In my mail from sfdc i had a message :

Subject : Registration error in site prathap
Body    : prathap registration accountId parameter value is not valid.

Since you say that you have modified the above accountid i would check if the profile that you are trying to assign for the user when the user record is created is added in the assign profile settings in customer portal.

Hope this would help.

Let me know if you solved this issue, if it was not because of any of the reasons discussed.

Prathap

On Wed, Dec 1, 2010 at 11:15 PM, mahendiran jayavarma <jmahe...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages