My Sites Task error

The below error comes up when accessing tasks from SP2013 my site:

 
Error: Sorry, we’re having trouble refreshing your tasks. (Refer screen shot)
  
Steps to follow:

    • Add the account that was used for work management service application to user profile service application's permission.
      [To find the account, go to Central Admin > Manage service applications > highlight 'work management service' and select properties from the ribbon; Take note of the application pool name; Go back to Central Admin > security > configure service accounts > select the app pool name and take note of the account name]
    • Make sure work management service is running via CA. If it is already running, try restarting.

      If error still persists, try the following:
      Run incremental user profile synchronisation
      Recreate work management service application
      Add the same account to My site web application permission via CA.


    My Site Newsfeed error

    The below error comes up when accessing My Site > Newsfeed >Everyone:

    Error: The operation failed because the server could not access the distributed cache.


    To fix this, try the following:
    The account that is running the distributed cache service under (SharePoint servers > services.msc) should have permission for My Site web application and user profile service application.
    Also need to add the service application account to Mysite web application permission and also to user profile service application permission.
    You also may need to recreate work management service application.
    Stop and start the App fabric cache service from server's services.msc

    Creating User Profile Service


    1. Open Central Administration > Manage service application > “New” > “User Profile Service Application”
    2. Enter the following on the popup box
      1. Name: User Profile Service
      2. Application Pool: Use existing: SharePoint Services
      3. Profile Database: Database Name: WSS_Service_UPA_DEV
      4. Syncronization Database: WSS_Service_UPASync_DEV
      5. Social Tagging Database: WSS_Service_UPASocial_DEV
      6. My Site Host URL: http://my.domain.au:80/
      7. Site Naming Format: Select the 2nd Radio Button
    3. Click “Create” button

     

    Start the User Profile Service Synchronization Service

    1. Open Central Administration > Application Management > Manage services on server
    2. Select the server you want the UPSS to run on (one of the APP servers)
    3. Click “Start” in the row of “User Profile Synchronization Service”
    4. In the pop up box, enter the SharePoint farm account and password and click “Start”
    5. Wait up to 10 minutes for it to start, “Starting” should change to “Started”

     

    Create Synchronization Connection

    1. Click on “User Profile Service” > Configure Synchronization Connections
    2. Click “Create New Connection”
    3. Enter the following on the popup box
      1. Connection Name: Active Directory
      2. Forrest Name: active directory forest name
      3. Account Name: AD Domain\SharePoint Sync account
      4. Password:
      5. Click “Populate Containers”
      6. Select the tick box next to the Forrest Name to select all OU’s. (Generally user container and AD group container)
    4. Click “OK” button
    5. Run a Full Profile Sync

     

    Give necessary access to MySite Web Application – not needed

    1. Open CA > “Manage web application”
    2. Select mysite and in the ribbon click “User Policy”
       
      Need to add service app account to User profile service application for Mysite newsfeed to work.

    Creating My Sites






     

    My Sites depends on user profile service, managed metadata service and also search service applications.

    ‘My Site host’ site template can be used only once per User Profile service application.

     



    Create MySites Web Application

    1. Open Central Administration > Manage web application > Click “New” in the ribbon
      1. IIS Web Site:
        1. Name: my.domain..au
        2. Port: 80
        3. Host Header: my.domain.au
        4. Path: C:\inetpub\wwwroot\wss\VirtualDirectories\my.domain.au
      2. Application Pool: recommended to create a separate pool or can use existing content app pool
      3. Database Name: WSS_Content_Personal
    2. Click “Ok” button

     

    Create MySite Host Site Collection

    1. Open Central Administration > Manage web application > Click “Create site collections”
    2. Make sure “my.domain.au” is selected as Web Application
    3. Enter “My Sites” as the Title
    4. Keep the root “/” as the managed Path
    5. Leave the URL path Blank
    6. Select “MySite Host” as the template
    7. Enter the SharePoint admin account as the Primary Site Collection Admin
    8. Click “OK” button

     

    Select the My Site web application from Central admin
    On the ribbon, select 'Managed paths' and add wildcard inclusion for personal.

    Connect the newly created web app to service applications (default)

    From the ribbon, enable on 'Self service site creation'

    Setup user profile service application (refer my blog) and configure mysite settings in user profile service application by going into
    Central Admin > Application Management > Manage service application > User profile service application > under My Site settings 'setup My sites'