Issue
While trying to follow the document or site in SharePoint 2016, let's suppose you encountered the following error.
Something went wrong
Sorry, we couldn't follow the site.
Internal Error : Could not follow the item https://test.krossfarm.com

Environment
Krossfarm has multiple farm environments. A dedicated Services farm hosts the user profile and search service provisioned, while another farm which hosts the Team sites and Publishing Sites is called Team Farm. They build the trust between Services Farm and Team farm, and consume the services from the Services Farm. They publish the UPA from Services Farm and consume it in the Team site farm.
Troubleshooting
Krossfarm's administrator checked the follow things:
- Check the app pool account to see if the Team's farm has permission on the UPA in Services farm with full control.
- User Profile Service Proxy is associated with Team Web app and MySite Web app.
- Managed Meta Data Services proxy associated with Team Web app and MySite Web app.
- Checked if the root and sts certs are properly added.
- Checked the permission on the SQL Server. app pool account to see if it has rights on Profile db, social db and Sync db.
- Finally, admisn examined the ULS logs and found these entries.
12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope: (S2SMonitor: FollowedContent.FollowItem(https://test.krossfarm.com/); ) Execution Time=740.861923694252; CPU Milliseconds=494; SQL Query Count=4; Parent=FollowedContent.Follow(https://test.krossfarm.com/) 1254bd9d-552e-00bd-1962-54ae563214b4
12/06/2016 12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 SharePoint Portal Server Content Following afilq Unexpected FollowedContent.FollowItem:Exception:System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.Office.Server.UserProfiles.FollowedContentProxy.Execute(String methodName) at Microsoft.Office.Server.UserProfiles.FollowedContentProxy.FollowItem(FollowedItem item) at Microsoft.Office.Server.UserProfiles.FollowedContent.FollowItem(FollowedItem item, Boolean isInternal) 1254bd9d-552e-00bd-1962-54ae563214b4
12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope: (FollowedContent.Follow(https://test.krossfarm.com/)) Execution Time=779.766706499348; CPU Milliseconds=523; SQL Query Count=7; Parent=Microsoft.Office.Server.UserProfiles.FollowedContent.Follow 1254bd9d-552e-00bd-1962-54ae563214b4
12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 Document Management Server Reporting ay6ke High FollowedContent.Follow Failure: Follow: Unexpected FollowedContentExceptionCode. 1254bd9d-552e-00bd-1962-54ae563214b4
12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 SharePoint Foundation CSOM ahjq1 High Exception occured in scope Microsoft.Office.Server.UserProfiles.FollowedContent.Follow. Exception=Microsoft.Office.Server.UserProfiles.FollowedContentException: InternalError : Could not follow the item https://test.krossfarm.com at Microsoft.Office.Server.UserProfiles.FollowedContent.FollowItem(FollowedItem item, Boolean isInternal) at Microsoft.Office.Server.UserProfiles.FollowedContent.Follow(Uri url, FollowedItemData data) at Microsoft.Office.Server.UserProfiles.FollowedContentServerStub.InvokeMethod(Object target, String methodName, XmlNodeListxmlargs, ProxyContextproxyContext, Boolean&isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeListargs, ProxyContextproxyContext, Boolean&isVoid) 1254bd9d-552e-00bd-1962-54ae563214b4 12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 SharePoint Foundation CSOM agmjp Medium Original error: Microsoft.Office.Server.UserProfiles.FollowedContentException: InternalError : Could not follow the item https://test.krossfarm.com at Microsoft.Office.Server.UserProfiles.FollowedContent.FollowItem(FollowedItem item, Boolean isInternal) at Microsoft.Office.Server.UserProfiles.FollowedContent.Follow(Uri url, FollowedItemData data) at Microsoft.Office.Server.UserProfiles.FollowedContentServerStub.InvokeMethod(Object target, String methodName, XmlNodeListxmlargs, ProxyContextproxyContext, Boolean&isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeListargs, ProxyContextproxyContext, Boolean&isVoid) 1254bd9d-552e-00bd-1962-54ae563214b4 12/06/2016 12:15:19.23 w3wp.exe (kfsp:0x4884) 0x7D68 SharePoint Portal Server Microfeedsaizmo Medium SocialRESTExceptionProcessingHandler.DoServerExceptionProcessing - SharePoint Server Exception [Microsoft.Office.Server.UserProfiles.FollowedContentException: InternalError : Could not follow the item https://test.krossfarm.com at Microsoft.Office.Server.UserProfiles.FollowedContent.FollowItem(FollowedItem item, Boolean isInternal) at Microsoft.Office.Server.UserProfiles.FollowedContent.Follow(Uri url, FollowedItemData data) at Microsoft.Office.Server.UserProfiles.FollowedContentServerStub.InvokeMethod(Object target, String methodName, XmlNodeListxmlargs, ProxyContextproxyContext, Boolean&isVoid) at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeListargs, ProxyContextproxyContext, Boolean&isVoid)]1254bd9d-552e-00bd-1962-54ae563214b4
Join the conversation! Your thoughts help the community grow.