locked
sharepoint 2010 content rating not working RRS feed

  • Question

  • Hi, I can't get my content rating to work.  I can give something a rating, and when I go back, there is nothing there.  I know about the timer service, and have wated (over a week) and also ran the timer service using the stsadm command and nothing seems to work.
    nonam
    Monday, March 8, 2010 1:52 PM

Answers

  • Maybe this behaviour is because the scheduling of the time job is not best for your environment.
    In my dev pc I reschedule the timer every 5 min.

    Internally the job works on delta, processing the rating between the previous execution and the actual. For process I mean:
    - aggragate data to calculate avarage rating and number of ratings
    - update the fields of every items with new value (it works only on items that needs changes)

    If you have a tons of rating for every 'period' I suggest to schedule the job.

    There is a small issue in my environment related to the refresh of the rating field control:
    if I refresh the page with the browser nothing change (no update to the rating control), if the load another page and then go to the first one again I'll see the updated values.


    --marco @avanade
    Wednesday, March 24, 2010 7:12 PM

All replies

  • If you hover your mouse over the stars of the document you tried to rate, do you see "My Rating: <number>"?


    Blog: http://sptwentyten.wordpress.com
    Saturday, March 13, 2010 3:58 AM
  • I believe that the issue was that there are two time services that need to be run.  It actually started to work but it would take about an hour to kick in.

    nonam
    Monday, March 22, 2010 2:01 PM
  • Maybe this behaviour is because the scheduling of the time job is not best for your environment.
    In my dev pc I reschedule the timer every 5 min.

    Internally the job works on delta, processing the rating between the previous execution and the actual. For process I mean:
    - aggragate data to calculate avarage rating and number of ratings
    - update the fields of every items with new value (it works only on items that needs changes)

    If you have a tons of rating for every 'period' I suggest to schedule the job.

    There is a small issue in my environment related to the refresh of the rating field control:
    if I refresh the page with the browser nothing change (no update to the rating control), if the load another page and then go to the first one again I'll see the updated values.


    --marco @avanade
    Wednesday, March 24, 2010 7:12 PM
  • Thanks guys, I actually got it working and know how to run the timer services. I use a power shell command below.  I do have a very strange behavior though.  I can rate, run the timer, mouse over and it will show the current rating.  I also have a user control with just the avg rating control with a label below where I output the entire contents of the rating for the page, so I can see my username, and some other info.  If I go to the pages gallery, I can see the current avg rating.

     

    My issue is that if I go to the page, most of the time the stars are blank.  I can mouse over and they will show my rating, and the label does show that I have rated it and what my rating was.  For some reason, 99.9% of the time, the stars are blank.  I even looked at the dom, and basically it just sets a class to the div, something like 3-stars or something like that.  The stars are really just a sprite image that gets moved around (5 white, 5 blue, 5 yellow).  If I look at my page that doesn't work, the class is not set.

    I have been struggling with this for days.  I was using a custom master page, so I copied v4-master exactly, threw on the control and it still won't work.

     

    So to summarize, the rating will get updated (once I run the 2 timers), I can query the rating directly which will work, and I can see it in the pages gallery.  for some reason, the ui will not update though.

    I am thinking it is a beta issue, but I can't be sure.  Any ideas?

    (the first starts both, the second shows displayname and last run time)

    Get-SPTimerJob | where {$_.name -match "Social"} | Start-SPTimerJob
    Get-SPTimerJob | where {$_.name -match "Social"} | select displayname, LastRunTime

     


    nonam
    Wednesday, March 24, 2010 9:06 PM
  • After reading this post I found that ratings would only work if I accessed my site and added a rating using URL http://site.domain.com but it will not work if just accessing the site via http://site

    I have alternate access mappings for both URLs and public URLs set as suggested in the post but can only get ratings to work when using FQDN. Accessing and rating this way updates the UI with blue stars for the average rating and also updates the number of ratings field. Neither of these things happen when just using http://site

    If you're experiencing a similar thing you will see something like this in your ULS logs:

     OWSTIMER.EXE (0x01E4)                    0x15A0 SharePoint Server              Social Data                    d0rj Unexpected RatingSync: Unexpected exception processing http://site/_layouts/listform.aspx?PageType=4&ListId={GUID}&ID=1. Error:System.ArgumentException: Item does not exist. It may have been deleted by another user.     at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc)     at Microsoft.SharePoint.SPList.GetItemById(Int32 id)     at Microsoft.Office.Server.SocialData.SocialRatingManager.GetListItemFromUrl(SPWeb web, String strUrl)     at Microsoft.Office.Server.SocialData.SocialRatingManager.PropagateRating(SocialRatingAverage ratingAverage) 

    I don't know if there is a workaround for this, or possibly it is a configuration mistake on my part. If anyone could shed some light that would be appreciated.

    Tuesday, July 20, 2010 1:33 AM
  • Hi, Rating is captured with System account but not when a user provide's rating. Both the timer jobs (Social Data and Social Rating) are succedding. Any idea..?


    ________ Regards, Sachin
    Tuesday, September 7, 2010 8:46 AM
  • Hi Jmillman,

      There is a specific service("User Profile Service Application – Social Rating Synchronization Job") running behind to calculate the average of ratings. This job executes every 1 hour by default. If required can be executed manualy by "Central Administration -> Monitoring -> Timer Jobs -> Review Job Definitions -> User Profile Service Application – Social Rating Synchronization Job -> Run Now" or change the "Recurring Schedule" as required.

    Refer : http://geekswithblogs.net/venkatx5/archive/2010/12/02/how-to-use-rating-in-sharepoint-2010.aspx


    Regards,
    Venkatesh R
    /* My Code Runs in Visual Studio 2010 */
    http://geekswithblogs.net/venkatx5/
    Friday, December 3, 2010 4:17 AM
  • Another easy thing, maybe can help, you need to check-in the page to post a rating, if the page is not published, ratings are not saved (blu stars are not appearing).
    Wednesday, June 15, 2011 11:56 AM
  • Hi, I have similar problem.

    I tried:

    - check both jobs running

    - check full url name "http://name.domain.com/....

     

    also I have read somewhere, that the rating will not working, when the library name contains blank space. So I made an test library named "rating", but still not working.

    Any ideas?

    Tuesday, January 10, 2012 1:26 PM
  • I found this post answer by Stefan B to be the reason why my Rating Column was not working.  It worked for the system account, but not other users/accounts: http://social.msdn.microsoft.com/Forums/is/sharepoint2010general/thread/61be417d-89a0-4feb-bb9f-b39a734eb83a

    You need to make sure NT Authority\All Authenticated Users have permissions to use 'Social Features' on User Profile Service.


    -JH

    Wednesday, April 11, 2012 12:17 PM
  • I found out that you need to have at least one of the columns which has link to edit item option in order for ranking to display. Seems like sharepoint needs to know the ID of the document in order for rating to show in the view. Add one of the following to your view:

    Type(icon linked to document)

    Edit(link ot edit item)

    Title (linked to item with edit menu)

    Title (Linked to item)

    Thursday, July 5, 2012 11:02 PM
  • interesting.  Thanks.  Finally getting ready to actually enable the Ratings column, so this may help as I currently don't have any of the Edit Item columns in my list...

    -JH

    Friday, July 6, 2012 12:57 PM
  • THIS was the trick.  Thanks!
    Tuesday, August 20, 2013 3:39 PM