2011-10-17 37 views
3

我通过教程在这里工作,使我的网站客户门户:客户门户网站自注册错误:“该门户相关联的帐户没有所有者”

http://wiki.developerforce.com/index.php/Authenticating_Users_on_Force.com_Sites

至于建议,我有一个现有的帐户ID(我用我自己的帐户,该帐户是管理员帐户),并将其粘贴到我的SiteRegisterController,所以它看起来是这样的:

public with sharing class SiteRegisterController 
{ 
    private static Id PORTAL_ACCOUNT_ID = '00590000000aB8l'; // ID of my admin account 

    // snip ... 
} 

但经过我填写所有的细节和命中siubmit上自注册页面在/ SiteRegister,它响应:

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

The account associated with this portal has no owner

发生这种情况时该被发送到我的错误电子邮件说:

Catalog registration accountId parameter value is not valid

我该如何解决这个问题?

回答

6

问题是,id 00590000000aB8l是一个用户ID(开头为005),而不是一个帐户ID(以001开头)。尝试创建一个新帐户(在帐户选项卡上,而不是在安装程序中),启用该帐户上的门户,然后使用其001... ID代替。

+0

好了,谢谢! –