.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SharePoint backup received InvalidData exception

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint


I am having this error when doing Backup-SPSite in PowerShell (also tried stsadm -o backup)

The same command worked a few days ago.

Backup-SPSite : Operation is not valid due to the current state of the object.

At line:1 char:14
+ Backup-SPSite <<<< -Identity http://... -Path C:\...\backup.bak -Force
  + CategoryInfo     : InvalidData: (Microsoft.Share...mdletBackupSite:
  SPCmdletBackupSite) [Backup-SPSite], InvalidOperationException
  + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletBackupSi

Backup-SPSite : Operation is not valid due to the current state of the object.
At line:1 char:14
+ Backup-SPSite <<<< -Identity http://...  

View Complete Post

More Related Resource Links

Exception handling in EventHandlers, Sharepoint

What i am doing is when a user upload or edit any doc in a doc library then automatic mail should go to some users. I have written mail sending code in ItemAdded event . My problem is if any exception occurs in my Mail code i want to show that to the user so that he can manually send mails to the concerned users. I have tried using Properties.Cancel=true; but it is not working neither i am able to redirect the user to some custom error page.  I know if i use ItemAdding Event then these codes will work  but i do not want to cancel the document uploading process . Because if i am able to throw the exception then user can manually send the mail. Please suggest how can i show exception message to the user.

SharePoint 2010 Excel Service Exception

SharePoint 2010 Excel Service Exception   I created Windows Form Application in Visual Studio 2010. I added Service Reference: http://<SharePoint _Server_Name>/_vti_bin/ExcelService.asmx. The code line: ExcelContract.XLWebService.ArrayOfAnyType returnData =              proxy.GetRangeA1(sessionID, sheetName, nameRange, false, out wsStatus);     throws exception: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/office/excel/server/webservices:GetRangeA1Response. The InnerException message was 'Error in line 1 position 361. Element 'http://schemas.microsoft.com/office/excel/server/webservices:anyType' I have the following app.config: <?xml version="1.0" encoding="utf-8" ?> <configuration>     <system.serviceModel>         <bindings>             <basicHttpBinding>                 <binding name="ExcelServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"             

sharepoint 2010 Backup error !

While the job was execting a backup I received it message ! Object SharePoint_Config failed in event OnBackup. For more information, see the spbackup.log or sprestore.log file located in the backup directory. SqlException: Cannot open backup device 'C:\Backup\spbr0000\0000009D.bak'. Operating system error 3(The system cannot find the path specified.). BACKUP DATABASE is terminating abnormally. would you please help me ?BRUNO SOUZA

STSADM -o Backup for SharePoint 2003 SiteCollection throws "The specified URL is not a top-level Web

I'm attempting to backup and restore a site collection in a 2003 implementation as part of a process to migrate ~1500 subsites to a MOSS 2007 implementation. My first step was to backup the site collection these subsites were residing in http://CompPortal/sites/MySiteCollection/ When I run the below command in STSADM I get the error "The specified URL is not a top-level Web site. The backup and restore operations work only for top-level Web sites. Enter the URL for a site to try the operation again. stsadm.exe -o backup -url http://CompPortal/sites/MySiteCollection/ -filename "C:\backup\BL" -overwrite I checked in Central Admin to confirm that this is a site collection and I assume a top-level site and site collection are synonymous. Does anybody have a suggestion on what I could be missing? Thanks

SharePoint 2007 SP2 VSS backup error ?

Hi Everyone, I've been getting this error below all the time regarding the VSS backup error in the event viewer, eventhough the VSS Writer status got no error in the cmd prompt. and also Symantec Backup Exec 2010 R2 agent got error in backup the farm using the DOMAIN\SPService username which is the owner of this WSS_ContentDB and also member of the Farm admin group. Log Name:      ApplicationSource:        Windows SharePoint Services 3Date:          8/09/2010 10:11:31 PMEvent ID:      3760Task Category: DatabaseLevel:         ErrorKeywords:      ClassicUser:          N/AComputer:      MOSSDEV01.domain.comDescription:SQL Database 'SharePoint_AdminContent_f632e5bf-cbd9-4d9f-a819-1811feb4f2b6' on SQL Server instance 'MOSSDEV01\MOSSDB' not found. Additional error information from SQL Server is included below.Cannot open database "SharePoint_AdminContent_f632e5bf-cbd9-4d9f-a819-1811feb4f2b6" requested by the login. The login failed.Login failed for user 'DOMAIN\Administrator'. Log Name:      ApplicationSource:        VSSDate:          8/09/2010 10:08:52 PMEvent ID:      12289Task Category: NoneLevel:         ErrorKeywords:

SharePoint Farm Backup Error in Search instance function

I'm working with MS Project Server 2007 with SharePoint WSS. When doing a full farm backup in SharePoint Central Admin > Operations > Backup and Restore > Perform a Backup, I encountered 2 errors in "SharePoint Windows Services Search, Search instance". 1) Error: Object a8b2cbfe-ef8b-45ce-92a0-c5675f534ec0 failed in event OnBackup. For more information, see the error log located in the backup directory.  InvalidOperationException: System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.SharePoint.Search.Administration.SPSearchBackupRestoreTimerJob.Execute(Guid targetInstanceId)   2) Error: Object a8b2cbfe-ef8b-45ce-92a0-c5675f534ec0 failed in event OnBackupComplete. For more information, see the error log located in the backup directory.  Object a8b2cbfe-ef8b-45ce-92a0-c5675f534ec0 failed in event OnBackup. For more information, see the error log located in the backup directory.  InvalidOperationException: System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.SharePoint.Search.Administration.SPSearchBackupRestoreTimerJob.Execute(Guid targetInstanceId)  InvalidOperationException: System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.SharePoint.Search.Administ

Installing SharePoint 2010 with SQL Server 2008 - SQL Exception - Login Failed

Hello I've been trying to install SharePoint 2010 with SQL Server 2008 in my Windows Server 2008 R2 box. I've got the same error all the times. System Specifications Windows Server 2008 R2 SQL Server 2008 with SP1 SharePoint 2010 Enterprise 6GB RAM, 320GB HDD Installation Steps I followed Installed Windows Server 2008 R2 and joined it to our domain Logged in as domain administrator Installed SQL Server 2008 Selected the Local Service account for all the SQL Server 2008 services during installation Selected Mixed mode authentication Selected 'Add Current User' in all the other installation screens Installed SQL Server 2008 SP1 Installed SharePoint 2010 Selected Farm option Selected Complete Installation Tried to run the configuration wizard and got sqlexception error - login failed But i checked that the current user (domain admin) is having all the permissions. Also added the domain admin as Security Admin and DB Creator in SQL Server instance. Any ideas?  Regards NLV Visit SharePoint User group - India

Full Farm Backup Fails on Windows Sharepoint Services Search Database

I am just now starting to us central administration to backup the entire sharepoint farm.  All content backups fine except for the Search Database.  In looking through the backup log, it appears that the search database may not exist.  How can I determine if the search database actually does exist and if it does not can it be recreated?

Cannot Restore Backup from Sharepoint Server 2007 to Sharepoint Server 2010 Trial Version

After installing the trial version of Sharepointn 2010 I wanted to restore my Sharepoint 2007 sites to it but received the following error:  "The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient free space." I went on to create a new content database in sharepoint 2010 but it still did not work. The old database i.e the one used by the sharepoint 2007 server is SQL 2005. During the installation of the sharepoint 2010 version I selected SQl Server Express for the database. Is there any specifics for migrating from MOSS 2007 to sharepoint 2010? Thanks for helping

an unhandled exception occurred in the silverlight application sharepoint 2010

An unhandled exception occurred on the page when Try to create the Announcement List in SP 2010 site which is upgraded from SP 2007,Any body have faced this issue?

How to read Email Received to a SharePoint List

I have a email enabled Sharepoint list which can receive email. i am trying to write an evenhandler for the spemailreceiver class where i have to read the Email Body Content and grab some elements from that email body not the whole Body Content and add it to the List Field. IF the Body Content is : Name: John LastName:Johny i have to read John and Johny and populate it to a Neew List item with their fields Name= John and LastName= Johny. any ideas of reading the email body and grabbing the needed elements from it.....

SharePoint 2010 : Creating SPSite object throws exception FileNotFoundException

We are in a process of upgrading from SharePoint 2007 to SharePoint 2010. I had written a Service which runs under default web site on the SharePoint web server. This service's app pool account uses the farm admin account. The service was working with no issue on SharePoint 2007 x64bit server. When I installed and run the same service on SharePoint 2010 x64bit box. I get the FileNotFoundException on SPSite site = new SPSite(http://myserver/sites/projects/project01); I have given the pool account running this server following rights: The Farm Admin The Site Collection Admin The Database Sys Admin The Local Admin No Luck. Thank you in advance for your help.

Cannot import backup from Sharepoint 3.0 to replacement server

I want to retire a Windows 2003 Standard server (named Meton) running Sharepoint 3.0 and transfer its entire database in a transparent manner (I want it to be exactly like it is on the old server) to a 2008 R2 standard guest partitian. I have sucessfully backup up the old server using both the operations tab of the web GUI and this bat file: cd\ cd Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN stsadm -o backup -url http://meton.pond_rd.wtpsmercer.k12.nj.us -directory D:\Wholesite -backupmethod full -percentage 10 -backupthreads 3 pause Both worked. Giving credit where due both this and the import bat were derived from information on http://www.epnetworking.com/blog/?p=179. Attempting to import with the GUI produced nothing. Then I ran this bat: c: cd\ cd Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN stsadm -o restore -hostheaderwebapplicationurl http://sharepoint.pond_rd.wtpsmercer.k12.nj.us -directory C:\ -restoremethod new -username xxxxxx -password xxxxxx -newdatabaseserver sql2008 pause   Despite the information on technet that stsadm is not interactive there are a series of questions and it would not let me choice the default database name, see below. Verbose: Adding WSS_Administration to Restore list. Verbose: Adding Web Application to Restore list. Verbose: Adding SharePoint_AdminContent_c829909f-fe1e-48d8-8649

Exception when access to sharepoint by Client Object Model


Hello ,

  - I have a windows Application .

  - In the  Form  load , I write the following code to aceess sharepoint site :

      ClientContext clientContext = new ClientContext("URL");

     Web site = clientContext.Web;



    MessageBox.Show("Title: {0}", site.Title);

  The following exception happened when execute query :

         "The re

Sharepoint Designer Backup/Restore problem


I am trying to use Sharepoint Designer's backup and restore functionality to move a site from one server to another.  The backup seems to complete successfully, but when I go to restore the site: It gives an error pls restore a backup in empty site. can any body tell me what will be the steps of restore site and sub-sites.




version dependency while backup restore of SharePoint 2007 Site Collections


hi all

I am aware of a version dependency on the stsadm -o backup/restore operation.

But will the same dependency exist for a content DB backup restore..

i.e. for example will we able to restore a content DB backup taken from a server with version say to a server with say assuming that the versions of SQL is the same in both cases.

Will the version difference in SQL create issues

Thanks in advance




Sharepoint backup problems


Hello, As a sharepoint newbie with practically 0% experience, I have inherited a sharepoint 2007 setup.  Our 3rd party backup tool is not working (commvault) with this sharepoint server. 

To troubleshoot, I went into MOSS 2007's central administration and tried to initiate a backup to a local folder on the sharepoint server. The estimated size of the backups when i was starting the backup was approx 4.5 gb. The first time I tried this, the backups never finished after 12+ hrs and only ~300kb was in the folder.  I have tried backing up to the local folder e:\backupfolder and have now tried \\servername\e$\backupfolder and it fails also.

I tried to initiate another backup and it said to delete the job from timer definitions.  I did so and tried again, now the backups fail almost instantly with the error, "The backup/restore job failed. In order to rerun the backup/restore the timer job must be deleted from the Timer Job Definitions page. Failure Message: Backup or restore is already running."

I'm confused as to whter backups are running, are not running or hung.  I do see some logging but do not understand the logs.  Below I will paste relevant time of logs when I tried to initiate latest ba

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend