Skip to content
May 17, 2025
  • Administration
  • PowerShell
  • SharePoint 2013
  • SharePoint 2019

Get-SPNote

All about SharePoint and PowerShell

  • Home
  • Administration
  • User Profile
  • SP2013 User Profile Web Service Error
  • Administration
  • User Profile

SP2013 User Profile Web Service Error

SPNoteAdmin6 years ago2 years ago05 mins

api/SP.UserProfiles.PeopleManager Web Service Error in User Profile REST API

While we were testing the passive SharePoint farm, Developers started to get this error in their REST API calls.It occurred during reading the user information through User Profile “_api/SP.UserProfiles.PeopleManager”
I have verified below 

  1. User Profile Service is up and running
  2. user Profile Synchronization Service is successfully running on the App Server
  3. FFM Service successfully running on the server
  4. Profile Synchronization is successfully executed with Active directory 
  5. My sites Web Application is available.

But Still we got below error on the Browser when we try the service UR

Error

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>

-1, Microsoft.SharePoint.Client.ResourceNotFoundException
</m:code>
<m:message xml:lang="en-US">
Cannot find resource for the request GetProperties.
</m:message>
</m:error>

When I dig in to the ULS Logs I was able to see below detail error messages.

Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.  
 at Microsoft.SharePoint.Portal.WebControls.PropertyImage.RenderControl(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at Microsoft.SharePoint.WebControls.AjaxDelta.RenderChildren(HtmlTextWriter output)  
 at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)  
 at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)  
 at Microsoft.SharePoint.WebControls.AjaxDelta.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)  
 at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)  
 at Microsoft.SharePoint.WebControls.SharePointForm.Render(HtmlTextWriter output)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)  
 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)  
 at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)  
 at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

Finally I was able to identify below specific error message 

SPMicrofeedContext.SetMySiteHostForContext failed System.UriFormatException: Invalid URI: The URI is empty. 
 at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)  
 atMicrosoft.Office.Server.Microfeed.SPMicrofeedContext.SetMySiteHostForContext()

Solution

Based on above Error Message, Finally I have realized issue. My sites are not loading for the users.Because Operations team has re-created the User Profile Service and My Site Web App URL was not mapped in the User Profile Service.
The moment I have specified the My site URL in the User Profile Service Properties, web service Started to work and My sites successfully loaded


Cheers

Tagged: User Profile Service

Post navigation

Previous: SharePoint Cumulative Update Error Could not load file or assembly Microsoft.ReportingServices.Alerting.ServiceContract
Next: Task applicationcontent has failed with an unknown exception

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

Free SharePoint Pre-Upgrade Check List

SPNoteAdmin2 years ago2 years ago 0

Extract Documents to Folder based on Managed Metadata Column – SharePoint

SPNoteAdmin4 years ago2 years ago 0

How To Fix Nintex Workflow Activation Error

SPNoteAdmin5 years ago2 years ago 0

Recent Posts

  • Free SharePoint Pre-Upgrade Check List
  • Extract Documents to Folder based on Managed Metadata Column – SharePoint
  • How To Fix Nintex Workflow Activation Error
  • Enabling Nintex Workflow Feature Failed – Sorry, Something Went Wrong
  • System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission – User Profile Issue

Get Free SharePoint Pre-Upgrade Check List

Set yourself up for a successful upgrade by following in the footsteps of those who have already done it right.

Access Denied Administration Administrator Best Practice Delete e-book free books free resources Get-AppPoolDetails Get-AuthProviders Get-ExecutionPolicy Get-OutgoingMail Get-SPFarmDetails Large Lists list view threshold Managed Metadata Microsoft NetBios Nintex Nintex Form Nintex Workflow PDF Icon Permission Issue PowerShell Pre-Upgrade Publish Form Search Set-ExecutionPolicy SharePoint SharePoint 2013 SharePoint document Icon SharePoint Management Shell SharePoint On-Prem SharePoint Upgrade Site Collection SPQuery Sub sites SubSites Super Reader Super User Upgrade User Profile Service Web Application Workflow WSS_Content_Application_Pools

Recent Comments

No comments to show.
Trendy News - News WordPress Theme. All Rights Reserved 2025. Powered By BlazeThemes.