tag:blogger.com,1999:blog-4126985520350746834.post7099147167382909551..comments2024-03-28T07:00:21.554+00:00Comments on Chris O'Brien: Command-line support for Content Deployment Wizard now availableChris O'Brienhttp://www.blogger.com/profile/10022906552670607366noreply@blogger.comBlogger52125tag:blogger.com,1999:blog-4126985520350746834.post-29143805562948696782010-07-09T15:19:02.261+01:002010-07-09T15:19:02.261+01:00Looks like the file was actually corrupt. Not sur...Looks like the file was actually corrupt. Not sure how, but thank you for the response.MScizzyhttps://www.blogger.com/profile/00264072237662633116noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-42819976393981364862010-07-08T23:58:37.951+01:002010-07-08T23:58:37.951+01:00@MScizzy,
Hmm, I haven't seen this before. Co...@MScizzy,<br /><br />Hmm, I haven't seen this before. Could it be something as simple as the .cmp file genuinely being corrupt? Does it happen if the file is regenerated by exporting again?<br /><br />Thanks,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-74581568739854636012010-07-01T15:54:16.482+01:002010-07-01T15:54:16.482+01:00Good morning, Chris.
I get the following when try...Good morning, Chris.<br /><br />I get the following when trying to do an import through the GUI:<br /><br /><br />[7/1/2010 10:42:36 AM]: Start Time: 7/1/2010 10:42:36 AM.<br />[7/1/2010 10:42:36 AM]: Progress: Initializing Import.<br />[7/1/2010 10:43:17 AM]: Error: Cabinet file is corrupt<br />[7/1/2010 10:43:17 AM]: Debug: at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.<>c__DisplayClass2.b__0()<br /> at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)<br /> at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.b__2()<br /> at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)<br /> at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)<br /> at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)<br />[7/1/2010 10:43:17 AM]: FatalError: Failed to read package file.<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)<br /> at Microsoft.SharePoint.Deployment.SPImport.Run()<br />*** Inner exception:<br />Cabinet file is corrupt<br /> at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.<>c__DisplayClass2.b__0()<br /> at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)<br /> at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.b__2()<br /> at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)<br /> at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)<br /> at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)<br />[7/1/2010 10:43:19 AM]: Progress: Import Completed.<br />[7/1/2010 10:43:19 AM]: Finish Time: 7/1/2010 10:43:19 AM.<br />[7/1/2010 10:43:19 AM]: Completed with 0 warnings.<br />[7/1/2010 10:43:19 AM]: Completed with 2 errors.<br /><br />I verified with the developer that they are NOT checking to disable compression.<br /><br />Any thoughts?MScizzyhttps://www.blogger.com/profile/00264072237662633116noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-15301158161495396652010-05-03T12:56:38.409+01:002010-05-03T12:56:38.409+01:00@ Y.Burger and Eric Halsey:
I had the same problem...@ Y.Burger and Eric Halsey:<br />I had the same problem importing uncompressed files.<br />Try adding FileCompression="False" to your Import.xml. Seems like this entry isnt generated by the gui when saving the Settingsfile as it doesnt support nonCompressed import yet.<br /><br />HTH <br /><br />DaveDave Cnoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-50370205781284571282010-04-28T17:46:59.479+01:002010-04-28T17:46:59.479+01:00Did Any one got using Content Deployment Tool for ...Did Any one got using Content Deployment Tool for importing Uncompressed list exports? I tried not to give the base file name in the Export settings file and left as empty. I am getting the following error.<br /><br />Error - unable to validate the deployment settings you chose. Please ensure, for example, you are not exporting a web and specific child objects in th<br />e same operation. Message = 'The BaseFileName property of SPDeploymentSettings object cannot have a null or empty string value.'. <br /><br />Any Help is gretly Appreciated.vinayhttps://www.blogger.com/profile/03324328669361144222noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-67110173329438112052010-04-15T19:47:29.808+01:002010-04-15T19:47:29.808+01:00Did anyone ever get the command line import to wor...Did anyone ever get the command line import to work for uncompressed files?Eric Halseynoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-19932632816618408162010-03-23T00:24:23.370+00:002010-03-23T00:24:23.370+00:00@Vishay,
If you need to chain multiple operations...@Vishay,<br /><br />If you need to chain multiple operations one after the other, perhaps the best idea is to use a batch file to do all the imports. You'll still need an XML settings file per import though I'm afraid, that's just how the Wizard is designed.<br /><br />The code is there on Codeplex though if you really wanted to change it to meet your requirement!<br /><br />HTH,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-7734906729230107602010-03-22T22:54:22.288+00:002010-03-22T22:54:22.288+00:00Hey Brian, This is a good tool.
we are having sit...Hey Brian, This is a good tool. <br />we are having sitecollection with multiple subsites, so we are creating one package for each subsite for import and export<br /><br />We have many people developing so we get many packages created each day which is one xml settings file for each package seems little painful. <br /><br />Can we have one import settings XML file and the tool can read through it multiple times and import all the packages at once. Do you have this in the existing tool ?Vishyhttps://www.blogger.com/profile/00089494599635812325noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-30014620013325297002010-02-16T01:06:43.920+00:002010-02-16T01:06:43.920+00:00@Vinay,
My suggestion would be to check for the f...@Vinay,<br /><br />My suggestion would be to check for the following:<br /><br />- disk space (on drive where temp files are generated)<br />- trying to import a .cmp file from a network share/mapped drive<br />- NTFS permissions<br /><br />HTH,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-20083401676719979882010-02-15T23:24:03.432+00:002010-02-15T23:24:03.432+00:00It is a great tool. I have performed the following...It is a great tool. I have performed the following tasks<br /><br />1) Sub-site to Site Collection<br />2) Moving only lists to one site to another<br />I am having the following issue using the Content Deployment Wizard 2.7 (Beta)<br />a) I did the export using GUI <br />b) I did the Import until the last step (but didn't run the Import wizard using GUI) and saved the Import template(ImportSettings.xml).<br /><br />While trying to run the Import file using command line i had the following command <br />stsadm -o RunWizardImport -settingsFile "S:\FileNamePath\ImportSettings.xml"<br />I am getting the following error <br /><br />Microsoft.SharePoint.SPException: Failed to read package file. ---> Microsoft.SharePoint.SPException: Unable to read cabinet<br />info from S:\PepsiCoSales\PAFDSD-Colombia\pafdsdcolumbiavideocontent.cmp ---> System.Runtime.InteropServices.COMException (0x<br />8107026A): Unable to read cabinet info from S:\PepsiCoSales\PAFDSD-Colombia\pafdsdcolumbiavideocontent.cmp<br /> at Microsoft.SharePoint.Library.SPRequestInternalClass.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFil<br />eLocation)<br /> at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)<br /> --- End of inner exception stack trace ---<br /> at Microsoft.SharePoint.Library.SPRequest.ExtractFilesFromCabinet(String bstrTempDirectory, String bstrCabFileLocation)<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.<>c__DisplayClass2.b__0()<br /> at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)<br /> at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.b__2()<br /> at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)<br /> at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)<br /> at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)<br /> --- End of inner exception stack trace ---<br /> at Microsoft.SharePoint.Deployment.ImportDataFileManager.Uncompress(SPRequest request)<br /> at Microsoft.SharePoint.Deployment.SPImport.Run()<br /> at COB.SharePoint.Utilities.DeploymentWizard.Core.WizardDeployment.RunImport()<br /><br />It says failed to read the package file.<br /><br />Would you let me know where i went wrong?<br /><br />Thanks,<br /><br />Vinay.vinayhttps://www.blogger.com/profile/03324328669361144222noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-89117750167493375202010-01-29T01:31:01.730+00:002010-01-29T01:31:01.730+00:00@Y.Burger,
Can you give me the entire command lin...@Y.Burger,<br /><br />Can you give me the entire command line with parameters (and the XML file) so I can look into this further?<br /><br />Thanks,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-53123107878818125342010-01-28T14:44:13.664+00:002010-01-28T14:44:13.664+00:00Chris, thanks for a great tool!
I am also trying...Chris, thanks for a great tool! <br /><br />I am also trying the uncompressed cmdline import, but when I leave the BaseFileName property blank I get the following error msg: 'The BaseFileName property of SPDeploymentSettings object canno<br />t have a null or empty string value.'Y. Burgernoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-83587170513842221332009-12-13T23:28:13.592+00:002009-12-13T23:28:13.592+00:00@Gary,
The BaseFileName property doesn't need...@Gary,<br /><br />The BaseFileName property doesn't need to be specified for an import of uncompressed files - you can leave it blank.<br /><br />HTH,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-59552752493384289682009-12-11T14:44:40.989+00:002009-12-11T14:44:40.989+00:00Chris,
As it has been said, thank you so much.
I ...Chris,<br />As it has been said, thank you so much.<br /><br />I am also trying to use the command line to run an import. What should BaseFileName be set to? Is there anything else I need to set to let the "import" know to expect uncompressed input?<br /><br />Thanks in Advance,<br />GaryUnknownhttps://www.blogger.com/profile/15869834648476437427noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-59554603864575885122009-11-10T23:53:53.404+00:002009-11-10T23:53:53.404+00:00@Anonymous,
Can you be more precise? How much dat...@Anonymous,<br /><br />Can you be more precise? How much data? I know some folks have exported/imported over 15GB with the Wizard, are you way above that?<br /><br />If so you might be pushing the boundaries somewhat, even though I can't think specifically what might cause a problem with such volumes.<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-16589763541377531632009-11-06T22:01:35.457+00:002009-11-06T22:01:35.457+00:00@podious,
Yes, that's exactly what should hap...@podious,<br /><br />Yes, that's exactly what should happen for an export without compression - that's what SharePoint does. On the import, set the FileLocation to the folder which contains all these files (I'd also say <i>only</i> the exported files should be in this directory - I've never tried mixing other files in there).<br /><br />Essentially the .cmp file you get with file compression is all these files in a zip file renamed to .cmp.<br /><br />HTH,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-48561285171541056642009-11-06T20:49:49.341+00:002009-11-06T20:49:49.341+00:00Chris,
We need to run the export without compress...Chris,<br /><br />We need to run the export without compression, so we decided to use the command line version. However, once the export is finished we don't have a CMP file in the location we specified. We don't get any errors at all on the screen or in the log. I double-checked the XML file that was saved via the GUI and the FileLocation and BaseFileName attributes are set. A lot of DAT files are created along with a handful of XML files, but no CMP file.<br /><br />Any idea what could be going on?<br /><br />-Jasonpodioushttps://www.blogger.com/profile/04598441866786624630noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-23976038050202573252009-11-06T15:23:10.345+00:002009-11-06T15:23:10.345+00:00yes Chris its a large ammount of datayes Chris its a large ammount of dataAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-68579342351743199352009-11-06T00:00:14.386+00:002009-11-06T00:00:14.386+00:00@Luis,
Are you importing/exporting a huge amount ...@Luis,<br /><br />Are you importing/exporting a huge amount of data? Is the Wizard running on a SharePoint machine in your farm?<br /><br />I've never heard of a SQL timeout occurring with the Wizard before, so these are the only things I can think of.<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-9236479022698677882009-10-22T21:55:49.491+01:002009-10-22T21:55:49.491+01:00Hi Chris, I'm running an export with the Conte...Hi Chris, I'm running an export with the Content Deployment wizard, but it fails after a long time I receive an error message:<br /><br />Exception Details:<br /><br />System.Data.SqlClient.SqlException: Timeout Expired . the timeout period elapsed prior to completion of the operation or the servers are not responding...<br /><br />Could you please help me ??<br /><br />Thanks!Luis Herreranoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-8218918276312474422009-09-05T09:49:12.392+01:002009-09-05T09:49:12.392+01:00@Ray,
My guess is you're missing the 'imp...@Ray,<br /><br />My guess is you're missing the 'import web URL' value on the first screen. You should absolutely be able to reparent a list in this way, the two requirements are:<br /><br />- specify the 'import web URL' (as well as the 'site (collection) URL', with the full path to the new parent web<br />- ensure 'retain object IDs and locations' is <i>unchecked</i><br /><br />HTH,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-87415489446764169922009-09-04T23:14:08.748+01:002009-09-04T23:14:08.748+01:00Hello your tool is much appreciated. I've ran ...Hello your tool is much appreciated. I've ran into a problem migrating with the error "Error: The file Lists/Announcements cannot be imported because its parent web /PWA/xxxx does not exist."<br /><br />I've checked exclude dependencies and unchecked retain object ids but cannot get past this. <br />Of course the parent doesn't exist. I want to migrate it to a new spot from /PWA/xxxx<br />Thank you<br />Ray LettsMondohttps://www.blogger.com/profile/07262588050351964367noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-55235067083165840142009-08-08T11:42:00.394+01:002009-08-08T11:42:00.394+01:00Dear Chris,
Your Content Deployment Wizard is impr...Dear Chris,<br />Your Content Deployment Wizard is impressive, I'd developed exactly the same program with content replication in mind between two seperate sharepoint sites, using the SPExport/Import api's. Furthermore, with using the ExportMethod to be Export Changes & ChangeToken, which gives an incremental feature. However, I arrived at a problem when deserializing in the destination you lose the 'url' of the parent item. Which i tried to resolve by setting the TargetParentUrl before deserializing, which seems to work, but i get the next error:<br />Error: Invalid file name<br />The file name you specified could not be used.<br />Which I'm not sure what it means.<br /><br />Furthermore, when RetainObjectIdentity is false, new objects are created, rather than overwriting the changed items.<br /><br />Could you help give me some insight into these two areas, or comment on using this method for replication.<br /><br />Many thanks<br />William ManAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-71270465048351528482009-07-20T14:15:54.778+01:002009-07-20T14:15:54.778+01:00Hi Chris,
When instaling the beta in a 64bit envi...Hi Chris,<br /><br />When instaling the beta in a 64bit environment the installer copy's the stsadm extension to the X86 program files folder ("C:\Program Files <b>(x86)</b>\Common Files\Microsoft Shared\Web Server Extensions\12\CONFIG") , which prevents stsadm from finding the runimportwizard extension.Tychonoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-31504151999419563572009-07-13T18:04:09.844+01:002009-07-13T18:04:09.844+01:00@Basem,
No problem :-)
Try again with RetainObje...@Basem,<br /><br />No problem :-)<br /><br />Try again with RetainObjectIdentity set to 'True'. You'll need to import to a fresh (empty) destination environment the first time though, so you should delete that content and then proceed.<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.com