Troubleshooting issues when using SocialDataService web service with javascript

fix

Tuesday, January 26th, 2010

Last week or so my colegue Adam Crandall was working on the custom SharePoint Rating control – you can check out his detailed post on the topic.

He was using methods of SocialDataService through his custom JQuery module. When we tested the app in our dev environments – things were working great, our data was submitting to a  database and pulled by out of the box rating controls. Then the app went into QA … and we started getting weird error messages from our JQuery:

http://[server url]/_vti_bin/SocialDataService.asmx/GetRatingOfUserOnUrl

500 Internal Server Error
Message: There was an error processing the request

SocialDataService uses UserProfiles to store data since all of the social data is linked to a user. What this means is that if the user you’re logged in with doesn’t have a user profile created in SharePoint – they will get an error when trying to access the web service.

Here is how to check:

1. Navigate to User Profile Service Application and click Manage User Profiles

user profiles

2. Search for the user that you’re logged in and which gives a web service error

qasuser

3. If you didn’t find the user proceed to the next step – if you did find the user – your profiles are synchronizedn properly so move on to the step 5.

4. We’ll validate if creating profile for the user resolves the problem – you can create a newn profile for users from the same screen as in step 2 by clicking New Profile. Be sure to fill out all of the mendatory fields and save your profile.

5. Log in with the user you just created profile for and see if the error went away if not check out this article on Troubleshooting SharePoint 2010 User Profile related issues.

Cheers!

news

Any information posted on this blog does not reflect views of respective product vendors unless explicitely stated.

featured