Showing posts with label Search. Show all posts
Showing posts with label Search. Show all posts

Tuesday, August 3, 2010

In SharePoint 2010, MySite is not Working

Issue:
In SharePoint 2010, If you click on the "people", usually you will be redirected to see their profiles page (My Site). But sometimes, you will get "404 file not found" error.

Reason
The reason is, the "my site" may not be created for the profile or the created profile pages may not be crawled at this time.

Solution: 
To avoid this kind of issues, first we must ensure some of the mandatory points given below:

1. You must create a Site collection from central admin or web application with "Search Center" template.

















2. Create another subsite with "My Host Site" template from "Enterprise" tab through Central admin. 

3. Then goto "User Profiles Service Application" home page and select the "Setup My Sites" from "My Site Settings" section.

















4. In the next screen, type the search center web application URL under the "Preferred Search center" text box, which we have created in step 1. (Mandatory)

5. Under the "My Site Host Location", Type the URL which we have created in Step 2. (Mandatory)


















6. Then Click OK.

3. Then, Start full import from Search service. (Mandatory)

Thats it...

In SharePoint 2010, Normal search is working and People search result is not working fine. Why?

Issue:
Finally, you may have configured the user profiles synchronization & Search services. Also, you may be able to see the number of profiles under "User profile service" and contents under "Search Service". 

Then, If you have used the search box and search results web parts to display the web application contents (not people), you can able to see the documents, forms, pages, etc... But, you cannot see the "people", if you click on the "people" tab in search results page. (or) you cannot see the results, if you have used the "peopleresults" web part.

What will be reason? :)

Reason:
You may have forgot to add the URL to crawl the people in Search service "ContentSource". So, just add the exact url which will start "SPS3://".

Example:
SPS3://km.sensoft2000.com (just an example)

















Thats it....


Error: The management agent failed on run profile "DS_FULLIMPORT" because of connectivity issues

Error:
The management agent  failed on run profile "DS_FULLIMPORT" because of connectivity issues.

Reason:
You will get this error during the profile import from "User Profile Service" of SharePoint 2010. The reason is the domain name may be mismatched with the actual domain name. Because, you will use the domain name like "sensoft" (just an example). But the actual domain may be different in Profile AD. for example, the actual domain name will be "sensoft.local" for "sensoft". So, you have to change the actual domain name in the "Synchronization  Service Manager". 

Solution:
To resolve this error, just follow the below steps:

1. Login into the SharePoint 2010 server.
2. Open the Synchronization Service Manager from C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe
3. Go to "Management Agents" tab & select the "Active Directory Domain Services" type




















4. Double click on it & Select "Connect to ActiveDirectory Forest" 
5. The domain name may be different than the profile "Connection string" provided in the central admin. Give the correct domain name and press "OK". If there is any error, you will get error in this step itself.





















6. Again rigth click on your "Ad Profile Connection string" & click the "Run".




















7. Select "Full Import" option in  the next Pop-up window.
8. Your profile will be crawled successfully, if there is no connectivity error.
9. If you are getting any connectivty error, check my another post,  "http://sensoft2000-sharepoint.blogspot.com/2010/08/error-replication-access-was-denied.html"

Thats it...

Error: Replication access was denied. error code: 8453

Error:
Replication access was denied. error code: 8453

Reason:
You will get this error, while you are trying to crawl the people from Active directory in SharePoint 2010. 

During the people search configuration, the the number of people will not be crawled in SharePoint 2010. Also, you cannot get the actual error straightaway. The right way to get the actual error message is, you have to use the Synchronization service manager. You can get this tool inside the SharePoint server at the below path:
C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe 

In this tool, if you "Run" the Profile Import, under the "Operations" tab, you will get the above error message. The error screenshot may be like below:


















Solution:
The resolve this issue, we must provide the access rights to the service account of the "User Profiles" service. OK. What kind of access rights needs to be provided? 

The user should have the "Replicating Directory Changes" Permission in the active directory. To provide this rights to the "service account" user, follow the below steps:

1. Login into the Active directory server.
2. Open the "Active Directory Users and Computers" console.  (C:\WINDOWS\system32\dsa.msc)
3. Right click on the "Domain name" and goto "properties".


















4. Go to security tab and Select the specific service account user. (If the user is not listed, you can add the user by clicking the "Add" button in the same screen).
5. Scroll the Permissions and select the "Replicate Directory Changes" option like the below image.



























Thats it...