null-valued expression when backing up hive 14

Jul 28, 2011 at 3:47 PM


The script works great on a windows server 2003 Sharepoint 2007 to a unc shared drive. I changed the hive from 12 to 14 in the xml file and now i get the following error. any ideas? does the sharepoint server have to have a mapped drive to the backup? i am running sp 2010 on server 2008. 

 

You cannot call a method on a null-valued expression.
At line:4 char:28
+    $id = $item.getAttribute <<<< ("id")
    + CategoryInfo          : InvalidOperation: (getAttribute:String) [], Runt
   imeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At line:18 char:48
+    $backupfilename = $sitecollectionurl.replace <<<< ("http://","")
    + CategoryInfo          : InvalidOperation: (replace:String) [], RuntimeEx
   ception
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At line:19 char:45
+    $backupfilename = $backupfilename.replace <<<< ("/","_")
    + CategoryInfo          : InvalidOperation: (replace:String) [], RuntimeEx
   ception
    + FullyQualifiedErrorId : InvokeMethodOnNull