Backup-SPSite : Object reference not set to an instance of an object
Category: sharepoint 2013 - setup, upgrade, administration and operations
Question
Praveenkumar.p on Mon, 13 Jun 2016 13:02:43
Hi Friends,
Im facing an issue while taking backup of a particular site collection.
C:\Users\Admin> Backup-SPSite -Identity http://sharepoint:1234/ -Path "C:\TestSite.bak"
when executing this command im facing the following issue.
Backup-SPSite : Object reference not set to an instance of an object.
At line:1 char:1
+ Backup-SPSite -Identity http://sharepoint:1234/ -Path "C:\TestSite.bak"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...mdletBackupSite:
SPCmdletBackupSite) [Backup-SPSite], NullReferenceException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletBackupSi
te
Backup-SPSite : Object reference not set to an instance of an object.
At line:1 char:1
+ Backup-SPSite -Identity http://sharepoint:1234/ -Path "C:\TestSite.bak"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Backup-SPSite], NullReference
Exception
+ FullyQualifiedErrorId : System.NullReferenceException,Microsoft.SharePoi
nt.PowerShell.SPCmdletBackupSite
Notes:
* Im taking backup as site collection administrator
* For this particular contentDB the user have the permission.
Please anyone suggest any ideas.
Thanks in advance
Replies
romeo donca on Mon, 13 Jun 2016 13:28:41
Hi
under which admin user did you open the powershell console ( it's running the script ) ?
Praveenkumar.p on Tue, 14 Jun 2016 04:06:15
Hi Romeo,
i'm opening the powershell console as System account only.
I can able to take backup for other sites.
But im facing problem for this site only.
Will it be any permission issue..?
Praveenkumar.p on Tue, 14 Jun 2016 05:25:09
Hi Friends,
Finally i took backup. Seems it's a magic.
Just followed the below step and tried one more time and it worked for me.
Dismount-SPContentDatabase -Identity <databasename>
Mount-SPContentdatabase <databasename> -WebApplication http://<webappurl>
Thank you Romeo
Linda ZL on Tue, 14 Jun 2016 07:56:40
Hi Praveenkumar.p,
I am glad that the issue has been resolved.
Thank you for your additional feedback on how you were successful in resolving this issue.
Best regards,
Linda Zhang