Answered by:
Cannot find an SPWeb object with Id or Url

Question
-
Import-SPWeb -identity <a href="http:///site">http://<web>/site -Path d:\<path>\myfile.cmp -IncludeUserSecurity -UpdateVersions Overwrite
doing an import spweb, I get an error (subject)
But it does exist - if I go there in the browser
I'm also a farm admin - -
any other ideas?
Friday, July 12, 2013 4:36 PM
Answers
-
make sure if its a subsite, export/import works on a subsite.
couple of scenarios to double check.
1. check if you are able to get to get-spweb object of the url .
---if it spits expection then you probably dont have access.
2.you need to be a shell admin to execute the operation
Issue the following commands from powershell using your sharepoint db owner (or installer account):
- $db = Get-SPContentDatabase -Site http://sharepointlovers.com
- Add-SPShellAdmin -UserName “sharepointloves.com\jjayaraja” -Database $db
try then
Whenever you see a reply and if you think is helpful, click "
Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer
- Proposed as answer by Devendra VelegandlaMVP Saturday, July 13, 2013 6:29 AM
- Marked as answer by AugustWind Tuesday, July 16, 2013 1:03 PM
Friday, July 12, 2013 5:08 PM -
Check if this fixes your issue.
http://bramnuyts.be/2011/06/08/get-spweb-cannot-find-an-spweb-object-with-id-or-url/
Same solution as Jayaraja.
Amit
- Proposed as answer by Devendra VelegandlaMVP Saturday, July 13, 2013 6:29 AM
- Marked as answer by AugustWind Tuesday, July 16, 2013 1:03 PM
Friday, July 12, 2013 8:16 PM
All replies
-
make sure if its a subsite, export/import works on a subsite.
couple of scenarios to double check.
1. check if you are able to get to get-spweb object of the url .
---if it spits expection then you probably dont have access.
2.you need to be a shell admin to execute the operation
Issue the following commands from powershell using your sharepoint db owner (or installer account):
- $db = Get-SPContentDatabase -Site http://sharepointlovers.com
- Add-SPShellAdmin -UserName “sharepointloves.com\jjayaraja” -Database $db
try then
Whenever you see a reply and if you think is helpful, click "
Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "
Mark As Answer
- Proposed as answer by Devendra VelegandlaMVP Saturday, July 13, 2013 6:29 AM
- Marked as answer by AugustWind Tuesday, July 16, 2013 1:03 PM
Friday, July 12, 2013 5:08 PM -
Check if this fixes your issue.
http://bramnuyts.be/2011/06/08/get-spweb-cannot-find-an-spweb-object-with-id-or-url/
Same solution as Jayaraja.
Amit
- Proposed as answer by Devendra VelegandlaMVP Saturday, July 13, 2013 6:29 AM
- Marked as answer by AugustWind Tuesday, July 16, 2013 1:03 PM
Friday, July 12, 2013 8:16 PM