Wednesday, April 6, 2011

Windows:Event ID 7888(SharePoint AD user profile import error)

Issue:

When starting a full or incremental import of Active Directory, either manually or scheduled, the import is successful, but there is an error thrown as soon as the import is initiated. My assumption is the AD import kicks off several simulateous jobs such as updating users "My SharePoint Sites" in the MOSS and Office 2007 environments.
For reference, to kick off a manual import of AD: Central Administration > Shared Services > User Profile and Properties

Event ID 7888

Event Type: Error
Event Source: Office SharePoint Server
Event Category: Office Server General
Event ID: 7888

Description: A runtime exception was detected. Details follow.

Message: Access Denied! Only site admin can access Data Source object from user profile DB.

Technical Details:
System.UnauthorizedAccessException: Access Denied! Only site admin can access Data Source object from user profile DB.
at Microsoft.Office.Server.UserProfiles.SRPSite.AdminCheck(String message)
at Microsoft.Office.Server.UserProfiles.DataSource._LoadDataSourceDef(IDataRecord rec)
at Microsoft.Office.Server.UserProfiles.DataSource._LoadDataSourceDef(String strDSName)
at Microsoft.Office.Server.UserProfiles.DataSource..ctor(SRPSite site, Boolean fAllowEveryoneRead)
at Microsoft.Office.Server.UserProfiles.DataSource..ctor(SRPSite site)
at Microsoft.Office.Server.UserProfiles.UserProfileConfigManager.GetDataSource()
at Microsoft.Office.Server.UserProfiles.BDCConnector.RefreshConfiguration(String sspName)

Resolution

  1. Navigate to: Central Administration > Operations > Services on Server > Office SharePoint Server Search.
  2. In the "Configure Office SharePoint Server Search Service Settings" page, locate the account defined for "Farm Search Service Account" and write down the account name.
    1. For reference, the account defined serves as the account for the AD "Configure Profile Account" access account.
    2. For reference, you can get to AD Profile Account page: Central Administration > Shared Services > User Profile and Properties > Configure Profile Import.
  3. Navigate to: Central Administration > Shared Services > Personalization services permissions.
  4. On the "Manage Permissions: Shared Service Rights" page, add the account from before (or edit if already exists). The account needs one of the following permissions; I couldn't figure out which one:
    1. Manage user profiles
    2. Manage permissions
I've tested this resolution several times with success.
For reference, I've updated my Farm Search Service Account with the following permissions since the account in question will most likely be accessing the types of content referenced in the permissions at one point or another:
  • Manage user profiles
  • Manage audiences
  • Manage permissions
  • Manage usage analytics

Other Thoughts

As with Event ID 2424 I wrote about, I noticed that Event ID 7888 began around the time I installed the following WSS/MOSS security patches which came out prior to the SharePoint SP1 patch:
I'm going to make the assumption that this error will occur as soon as you install the SharePoint SP1 patch as well.

Conclusion

Somewhere along the line, the WSS/MOSS and/or SharePoint SP1 update(s) are modifying existing permissions… Shame on the updates.
I've read other posts whose resolution is to add the account in question to the local administrators group. Although their resolution may work, the profile import account should not be a server administrator; the administrator role should be reserved for the global MOSS service account admin (the account used to install MOSS) and the configuration account (the account MOSS uses to provision databases and other content that was defined during the MOSS install).
Enjoy!

Tuesday, April 5, 2011

Good site for SharePoint quiries

Check this out...

http://wssv3faq.mindsharp.com/default.aspx

SharePoint:"Access is denied. Check that the Default Content Access Account has access to this content"

If you have this issue....

Check the steps

The resolution for this was to add the following registry key
1) Click Start, click Run, type regedit, and then click OK.
2) In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3) Right-click Lsa, point to New, and then click DWORD Value.
4) Type DisableLoopbackCheck, and then press ENTER.
5) Right-click DisableLoopbackCheck, and then click Modify.
6) In the Value data box, type 1, and then click OK.
7) Quit Registry Editor, and then restart your computer.

SharePoint:The password for the content access account cannot be decrypted because it was stored with different credentials. Re-type the password for the account used to crawl this content.

Issue:

Our search is not working. The crawl log indicates following error: "Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (The item was deleted because it was either not found or the crawler was denied access to it.)".

Resolution:

ad this problem and solved it by using user@domain.local instead of domain\user when specifying the Default Content Access Account. 

Central Administration --> SSP --> Search Administration | Default Content Access Account.

SharePoint:Alert : Percentage of committed memory in use is too high

Issue:

Alert Description : The threshold for the memory\committed byte in use performance counter has been exceeded. The value that exceeded the threshold  is 81.35668827192.
I am getting this alert at my SCE Box having 3 GB of RAM. How can i resolve this issue as accourding to the alert description i have checked with the performance counters at system monitor ( perfmon) .

Several Microsoft products including Exchange, SQL Server, and the Operations Manager ROM will use all available memory. This is especially noticeable on 64-bit platforms where memory can scale-out more effectively for the applications.

Resolution:

Configured the server to have a 95% threshold instead of 80%. To do it:

1)    Navigate to authoring pane -> Management Pack Objects -> Monitors.
2)    Find the monitor at "Windows Server 2003 Operating System"  -> Entity Health ->Performance -> "Percentage of committed Memory in Use"
3)    Right click it and select “Overrides” -> "Override the monitor" -> "For all objects of type: Windows Server 2003 Operating System".
4)    Specify the threshold value 95% instead 80% and click to apply.

Hope it helps.

Friday, April 1, 2011

SharePoint:Adding template to the subsites

Issue:

Some days back i have not seen the Publising site template in the Template selection in the subsite

Resolution:

If you want to see the templates that are available in sitecollection in the subsites you nee to do this:

Check your WEBTEMP.XML file under \12\TEMPLATE\1033\XML folder.
Most probably templates you'd like to see are set to Hidden="TRUE". Make them false.

or

If your site is a publishing site, go to Page Layout and Site Templates Settings and add the templates that you want your subsites to use.
(Site Actions > Site Settings > Modify All Site Settings > Look and Feel > Page layouts and site templates)

Thursday, March 31, 2011

SharePoint:Adding Webpart to EditForm,DispForm,ViewForm Pages

If you want to edit Edit,Disp,View form aspx page and to add webparts to the following pages

?toolpaneview=2

add the above at the end of the url ex: Dispform.aspx?toolpaneview=2

SharePoint - Cannot convert a primitive value to the expected type 'Edm.Double'. See the inner exception for more details If y...

Ad