tag:blogger.com,1999:blog-95879907422503159.post1195926198360683185..comments2024-03-21T12:08:37.183+05:30Comments on Passionate Techie: Export Import SharePoint Site using Web ServiceBhushan Gawalehttp://www.blogger.com/profile/10947796894313016081noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-95879907422503159.post-57906253671673266932013-07-18T23:35:11.790+05:302013-07-18T23:35:11.790+05:30Hi Christian,
Can you make sure that you have site...Hi Christian,<br />Can you make sure that you have site collection rights or at least write permissions on the document library where you are trying to save your exported files?Bhushan Gawalehttps://www.blogger.com/profile/10947796894313016081noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-91413124820939781362013-07-14T06:41:30.453+05:302013-07-14T06:41:30.453+05:30Hi Bushan,
i run your script against SharePoint on...Hi Bushan,<br />i run your script against SharePoint online (SharePoint 2013) with some authentication modifications.<br />At the ExportWeb Method i always get warning number 5. I can't save the Export file to a document library. <br />How did you solved this Problem?<br /><br />Greetings<br />Christian Anonymoushttps://www.blogger.com/profile/00119900585437551486noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-61986129205527979932013-06-15T18:57:23.579+05:302013-06-15T18:57:23.579+05:30Hello Bushan,
just run into another Import issue....Hello Bushan,<br /><br />just run into another Import issue. How to get the right array of string containing url of all the numbered cmp files from the document library the best way with c#? Due to the backup of a large site I have up to 40 cmp files.<br /><br />Thank you,<br />Max<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-31902325477986156542013-06-14T23:06:13.119+05:302013-06-14T23:06:13.119+05:30@Bhushan Import works now with your hint to create...@Bhushan Import works now with your hint to create site with template later option :).<br />@Paramdeep here is a more complete list of error codes.<br /><br />List of response codes:<br />0=Success <br />1=Pending<br />2=GenericError<br />3=InvalidArgument<br />4=InvalidImportUrl<br />5=ImportFileNoAccess<br />6=ImportWebNoAccess<br />7=ImportWebCantCreate<br />8=ImportWebNotEmpty<br />9=PrepareDataFolderError<br />10=DownloadDataError<br />11=LogFileNoAccess<br />12=ImportError<br />13=CleanupError<br /><br />warm regards,<br />MaxAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-33131842636852623602013-06-13T20:50:55.959+05:302013-06-13T20:50:55.959+05:30In am receiving 3 as the result in ImportWeb metho...In am receiving 3 as the result in ImportWeb method. Please specif the errorParamdeep Singhhttps://www.blogger.com/profile/06442353019759580659noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-51715812628764167292013-05-30T11:29:57.011+05:302013-05-30T11:29:57.011+05:30Hello Bhushan,
thank you for your help. I will tr...Hello Bhushan, <br />thank you for your help. I will try it with select template later.<br />I solved my problem with a large sharepoint site export (3-4 GB)! Anything above 100 MB for cab-size is not working and ends with an error not enough storage for compressing a large file!! I ended with a cab-size of 96 MB. So you get a lot of cmp-files but it appears to be the only way.<br />Thanks,<br />MaxAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-49066059540244395672013-05-29T20:10:20.471+05:302013-05-29T20:10:20.471+05:30Hi Max,
Should have worked with blank site definit...Hi Max,<br />Should have worked with blank site definition , how about creating the target site collection without any site template by following steps below and then perform the import ?<br />Open Central Administration > Application Management >Create Site Collection > Select Custom Tab > Select - Select Template Later<br /><br />about your second question - Honestly I didn't try to use this approach with larger sites but as all the .cmp files resides in the one of the library of site so content database size would be getting much larger and so similarly reading those .cmp files might be time consuming.Bhushan Gawalehttps://www.blogger.com/profile/10947796894313016081noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-51237654234867242812013-05-29T08:52:10.456+05:302013-05-29T08:52:10.456+05:30Hi Bhushan,
thank you for your response. I tried t...Hi Bhushan,<br />thank you for your response. I tried to do this and created a new targetsite with the blank site template but than I get the error:<br />"Cannot import site. The exported site is based on the template STS#0 but the destination site is based on the template STS#1. You can import sites only into sites that are based on same template as the exported site."<br />Is there another way to create a working blank and empty target site for Import? <br />Also backup worked perfect for smaller sites (60-200 mb) so far but I tried this now for a bigger site with about 4-5 GB data. It looks ok and returns 1 but then it takes forever to complete (12+ hours and still not finished)?<br />Thank you very much in advance for your help.<br />Max <br /> Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-35186566171573902022013-05-27T22:19:33.854+05:302013-05-27T22:19:33.854+05:30Hi Max,
Glad that this post helped you :)
About th...Hi Max,<br />Glad that this post helped you :)<br />About the error which you mentioned - As you said that you have created Team site , but import always is done on the Empty site so please make sure that you create the target site collection / new site using blank site definition. <br />Bhushan Gawalehttps://www.blogger.com/profile/10947796894313016081noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-1210424768042314122013-05-27T17:52:44.736+05:302013-05-27T17:52:44.736+05:30Import Return code 8?
Hello Bhushan,
Great post t...Import Return code 8?<br /><br />Hello Bhushan,<br />Great post this helped me a lot. SPO Export of a site collection to cmp work flawless with your help. But I struggle with the Import of the exported site colletion cmp to a new site under the same site collection. Created a new site with the same template (TeamSite). No I get always the return code 8 (site is not empty?) Even if I delete everything still the same error? Would be very greatful for any advice.<br />Thank you<br />Max Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-55075051437205562382012-08-08T10:42:14.108+05:302012-08-08T10:42:14.108+05:30About preserving timestamps of items , AFAIK using...About preserving timestamps of items , AFAIK using this method you wont be able to preserve those as you are adding new content on exiting blank site so they are considered as new items. and about workflows - list and content type workflows should gets migrated but If they refer to List GUIDs then you should be changing those on target site , also you wont be able to export these - alerts, audit trail, recycle bin items, security state, workflow tasks/state are not exported.<br />different approaches compared here , you can refer - http://www.sharepointnutsandbolts.com/2007/10/stsadm-export-content-deployment.htmlBhushan Gawalehttps://www.blogger.com/profile/10947796894313016081noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-84397069225278423662012-08-08T04:30:07.812+05:302012-08-08T04:30:07.812+05:30Very good post, Bhushan. I had to do quite a bit o...Very good post, Bhushan. I had to do quite a bit of digging to find out how you resolved the blank site problem that you pointed out. Have you noticed when you do an import, that all timestamps are current and not what was on the original site? Do you happen to know how to get around this? Also, can you point me in the right direction to get all the other components imported over, like workflows?Anonymousnoreply@blogger.com