2011-10-17 39 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

好了,謝謝! –