Sharepoint 2010 backup fails with error unable to query the team database metadata

Article:TECH166575  |  Created: 2011-08-05  |  Updated: 2013-01-08  |  Article URL
NOTE: If you are experiencing this particular known issue, we recommend that you Subscribe to receive email notification each time this article is updated. Subscribers will be the first to learn about any releases, status changes, workarounds or decisions made.
Article Type
Technical Solution



The backup of Sharepoint 2010 User Profile Proxy fails with error 'unable to query the team database metadata' when User Profile synchronization is enabled.


Viewing the SPSWrapper debug log of the failed backup will show the following error:

[0f68] 07/28/11 17:56:31  INF :: Unable to cast object of type 'Microsoft.Office.Server.Administration.UserProfileApplicationProxy' to type 'Microsoft.SharePoint.Administration.SPServiceApplication'.
[0f68] 07/28/11 17:56:31 Executing Powershell cmd Get-SPServiceApplicationProxy -identity a779dcff-1f39-4c8b-a255-e880fb89f671
[0f68] 07/28/11 17:56:32 Error  exception in running cmd Get-SPServiceApplicationProxy -identity a779dcff-1f39-4c8b-a255-e880fb89f671 Exception is Exception getting "IsSynchronizationRunning": "Object reference not set to an instance of an object."
[0f68] 07/28/11 17:56:32 Error in BackupSSP



This is similar to another issue described in TECH166208 except the error is in a different object. The SPSWrapper debug must be reviewed to determine which issue is present, in this case the exception is in getting the IsSynchronizationRunning property.

A hotfix is now available for this issue in the current version(s) of the product(s) mentioned at the end of this article. Refer to the Hotfix link under Related Documents at the end of this article to obtain the hotfix needed to resolve the issue.


Supplemental Materials


SPSV4: User Profile proxy backup fails with error unable to query the team database metadata, SPSWrapper exception in IsSynchronizationRunning.


Unable to query the team database metadata

Article URL

Terms of use for this information are found in Legal Notices