SharePoint Error - Orphaned App


Microsoft-SharePoint Products-SharePoint Foundation(8031 - Topology): An exception occurred while updating addresses for connected app {5400a126-a188-4071-910e-f4e1aaa621a1_9d0af672-a36b-478a-9aad-5c1803939451}. The uri endpoint information may be stale. System.InvalidOperationException: The requested application could not be found.   at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ProcessCommonExceptions(Uri endpointAddress, String operationName, Exception ex, SPServiceLoadBalancerContext context)   at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.ExecuteOnChannel(String operationName, CodeBlock codeBlock)   at Microsoft.SharePoint.SPTopologyWebServiceApplicationProxy.GetEndPoints(Guid serviceId)   at Microsoft.SharePoint.SPConnectedServiceApplicationAddressesRefreshJob.Execute(Guid targetInstanceId)

This happened after rebuilding search application service.  How do I clean this up?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

martushaProduct managerCommented:
This issue occurs when the Search service application proxy is associated with a web application but is not associated with any Search service applications in the farm.

To allow users to search without receiving this error message, reassociate the web application with a valid Search service application proxy. A valid Search service application proxy will be associated with a Search service application in the Manage service applications option. To do this, follow these steps:
1.Open Central Administration.
2.Click Manage web applications.
3.Select the affected web application.
4.On the ribbon, click Service Connections.
5.Under Configure Service Application Associations, select the valid Search service application proxy check box.


Copy the ID from the error message and go to you SQL/DB server and run this Query on your config db:

   FROM [Your_Config_Database].[dbo].[Objects] WHERE [Name] LIKE  '%ID from error msg%'

The results gets you some info about the error (properties) and an ID to use to remove it from your server.

Make sure that this service app/object is not running on your server before removing it!

Run this stsadm command to remove this error: stsadm -o deleteconfigurationobject -id (insert id from the SQLQuery)
 Do a iisreset on all front end servers.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.