<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx</link><description>[ Part 1 - Part 2 - Part 3 - Part 4 - Part 5 - Part 6 ] Providing some real world samples for import After we managed to export content in part 2 lets now focus on the importing side. Import actually has two different ways to work: Import by preserving</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; SharePoint Content Deployment and the Migration API</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1865873</link><pubDate>Fri, 31 Aug 2007 07:40:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1865873</guid><dc:creator>MSDN Blog Postings  » SharePoint Content Deployment and the Migration API</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/08/31/sharepoint-content-deployment-and-the-migration-api/"&gt;http://msdnrss.thecoderblogs.com/2007/08/31/sharepoint-content-deployment-and-the-migration-api/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>SharePoint Content Deployment and the Migration API</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1865882</link><pubDate>Fri, 31 Aug 2007 07:41:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1865882</guid><dc:creator>Noticias externas</dc:creator><description>&lt;p&gt;Stefan is back! J Stefan is in Redmond this week, and we had a chance to catch up! In fact, I had dinner&lt;/p&gt;
</description></item><item><title>Deep Dive in SharePoint Deployment und Migration API</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1867122</link><pubDate>Fri, 31 Aug 2007 12:32:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1867122</guid><dc:creator>SharePoint, SharePoint and stuff </dc:creator><description>&lt;p&gt;Stefan Go&amp;#223;ner taucht in einer vierteiligen Serie in die Tiefen der SharePoint Deployment und Migration&lt;/p&gt;
</description></item><item><title>Fantastic, incredibly detailed, content on content deployment by Stefan</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1871967</link><pubDate>Sat, 01 Sep 2007 04:40:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1871967</guid><dc:creator>Andrew Connell [MVP MOSS]</dc:creator><description>&lt;p&gt;Fantastic, incredibly detailed, content on content deployment by Stefan&lt;/p&gt;
</description></item><item><title>Fantastic, incredibly detailed, content on content deployment by Stefan</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1872033</link><pubDate>Sat, 01 Sep 2007 05:00:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1872033</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;[via Stefan Gossner ] This past week I was in Redmond teaching my WCM401 development class in an open&lt;/p&gt;
</description></item><item><title>Content migration API "Deep Dive" by Stefan Goßner</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1886623</link><pubDate>Mon, 03 Sep 2007 13:03:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1886623</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;Body: Great series of posts by Stefan on how to use the Content Migration API. Very timely for me as&lt;/p&gt;
</description></item><item><title>SharePoint内容部署与迁移API</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1939416</link><pubDate>Tue, 11 Sep 2007 18:02:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1939416</guid><dc:creator>Joycode@Ab110.com</dc:creator><description>&lt;p&gt;今天凌晨加班的时候偶然翻到 Stefan Gossner 的这几篇文章，强烈推荐给大家： Deep Dive into the SharePoint Content Deployment and Migration&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1984026</link><pubDate>Tue, 18 Sep 2007 12:46:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1984026</guid><dc:creator>Purushotam</dc:creator><description>&lt;p&gt;Hi.. this is an incredible article for demonstrating migration. However I may sound silly but could you advise me whether migration can be done on different environments like &amp;nbsp;production to pre-production and vise a versa.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#1984064</link><pubDate>Tue, 18 Sep 2007 12:56:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:1984064</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Purushotam,&lt;/p&gt;
&lt;p&gt;I'm not sure if I understand what you mean. Migration is usually moving content from a different system into sharepoint.&lt;/p&gt;
&lt;p&gt;Moving content between different SharePoint farms is referred to as deployment.&lt;/p&gt;
&lt;p&gt;The API I showed above can do both.&lt;/p&gt;
&lt;p&gt;If you need further info, please provide more details about what you are looking for.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>MOSS / SharePoint Content Deployment</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2040865</link><pubDate>Tue, 25 Sep 2007 12:49:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2040865</guid><dc:creator>Connecting Systems the Microsoft Way</dc:creator><description>&lt;p&gt;Great set of articles by Stefan Go&amp;#223;ner : Deep Dive Into the SharePoint Content Deployment...&lt;/p&gt;
</description></item><item><title>MOSS / SharePoint Content Deployment</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2065294</link><pubDate>Fri, 28 Sep 2007 09:38:46 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2065294</guid><dc:creator>Connected Systems Chilled Out Blog</dc:creator><description>&lt;p&gt;MOSS / SharePoint Content Deployment&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2197297</link><pubDate>Thu, 18 Oct 2007 13:43:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2197297</guid><dc:creator>issou</dc:creator><description>&lt;p&gt;hello , i want to import a item from a list source to another list of another site with web service ... Can you help me ???&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2197819</link><pubDate>Thu, 18 Oct 2007 14:53:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2197819</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Issou,&lt;/p&gt;
&lt;p&gt;you need to create a webservice based on the code parts I presented in Part 2 and Part 3 of this article series.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>Using the SharePoint Content Deployment Wizard</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2655414</link><pubDate>Tue, 18 Dec 2007 03:31:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2655414</guid><dc:creator>Mirrored Blogs</dc:creator><description>&lt;p&gt;So if you&amp;amp;#39;ve read the earlier posts about the tool ( Introducing the SharePoint Content Deployment&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2736829</link><pubDate>Fri, 11 Jan 2008 19:49:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2736829</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the great posts. I'm able to successfully export and Import a Web. Everything carried over fine except for the listviewwebparts. It doesn't retain the selected View and the toolbar type. Can you please tell me if this is the expected behavior or I'm missing something?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2744895</link><pubDate>Mon, 14 Jan 2008 13:15:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2744895</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Raja,&lt;/p&gt;
&lt;p&gt;this is a known problem in MOSS which has been fixed in hotfix 941422.&lt;/p&gt;
&lt;p&gt;Be aware that you cannot install this fix on top of SP1.&lt;/p&gt;
&lt;p&gt;In case you have SP1 installed you would need to wait a couple of weeks till the Post-SP1-Rollup patch for WSS/MOSS is available which will also contain the fix for this issue.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2745604</link><pubDate>Mon, 14 Jan 2008 18:14:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2745604</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;Thanks Stefan. I have an environment with out SP1..I'll apply the hotfix and check my luck.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2751735</link><pubDate>Wed, 16 Jan 2008 20:59:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2751735</guid><dc:creator>Raja</dc:creator><description>&lt;p&gt;Stefan,&lt;/p&gt;
&lt;p&gt;Hotfix 941422 didn't solve my issue.. but this one seems to address the problem:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/931636"&gt;http://support.microsoft.com/kb/931636&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;strangely, this hotfix is available on requesy only..I requested the hotfix, will test it once I get it.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2753937</link><pubDate>Thu, 17 Jan 2008 11:08:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2753937</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Raja,&lt;/p&gt;
&lt;p&gt;941422 includes 931636.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2837508</link><pubDate>Wed, 06 Feb 2008 13:20:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2837508</guid><dc:creator>Mayur Joshi</dc:creator><description>&lt;p&gt;Hi Stefan, &lt;/p&gt;
&lt;p&gt;I m trying to build a custom tool that would migrate the content from MCMS 2002 system to Moss 2007. Would it be possible for you to help me out with resources. I have already seen your article as well as Content Deployment API but i can't understand as to how can i get the &amp;nbsp;content of MCMS in a desired format as required by content deploymetn API. &lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Mayur Joshi.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2838755</link><pubDate>Wed, 06 Feb 2008 18:30:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2838755</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Mayur,&lt;/p&gt;
&lt;p&gt;why would you like to do this using a custom tool? MOSS already ships with a conversion tool that does exactly that and migrates the content from MCMS to MOSS using this API.&lt;/p&gt;
&lt;p&gt;Can you clarify this?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2842594</link><pubDate>Thu, 07 Feb 2008 11:29:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2842594</guid><dc:creator>Mayur Joshi</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;The reason i want to go for this custom tool is to migrate particular posting / template rather than doing a complete migration. The reason for doing this is to have control over the migration process. Would it be possible for me to build the same.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Mayur Joshi.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2842797</link><pubDate>Thu, 07 Feb 2008 12:00:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2842797</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Mayur,&lt;/p&gt;
&lt;p&gt;sure you can do this.&lt;/p&gt;
&lt;p&gt;You can use the MCMS API to read the content and then you can build the XML schema description (&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/bb249989.aspx"&gt;http://msdn2.microsoft.com/en-us/library/bb249989.aspx&lt;/a&gt;) to build the package based on the information retrieved from MCMS and import it using the SharePoint deployment and migration API.&lt;/p&gt;
</description></item><item><title>Deep Dive Into the SharePoint Content Deployment and Migration API</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#2931541</link><pubDate>Mon, 25 Feb 2008 22:54:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2931541</guid><dc:creator>Mike's Blog</dc:creator><description>&lt;p&gt;Stefan Go&amp;#223;ner posted a great series of posts about the Content Migration API (formerly known as PRIME&lt;/p&gt;
</description></item><item><title>Deep Dive into the SharePoint Content Deployment and Migration API - Part 6</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3035371</link><pubDate>Sat, 12 Apr 2008 02:37:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3035371</guid><dc:creator>Stefan Goßner</dc:creator><description>&lt;p&gt;[ Part 1 - Part 2 - Part 3 - Part 4 - Part 5 - Part 6 ] Requirements for a successful content deployment&lt;/p&gt;
</description></item><item><title>Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3043590</link><pubDate>Wed, 23 Apr 2008 20:42:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3043590</guid><dc:creator>NewtoSP</dc:creator><description>&lt;p&gt;I get a lot of errors each time we run content deployment tool. Not once did it run the first time successfully. I am new to Sharepoint and read this article but I have no clue as to where I should use this code. Please help.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3043669</link><pubDate>Wed, 23 Apr 2008 22:38:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3043669</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;This code is something you can use as an alternative for the out of the box content deployment.&lt;/p&gt;
&lt;p&gt;If you have actual problems to deploy you should read part 5 and 6 of this article series. If it still does not work you should open a support case with Microsoft.&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3055017</link><pubDate>Wed, 14 May 2008 13:54:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3055017</guid><dc:creator>Nick Magill</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I've followed your posts and have completed a content deployment of a site collection onto a new application on the same server.&lt;/p&gt;
&lt;p&gt;However the following are missing:&lt;/p&gt;
&lt;p&gt;Publishing feature is not enabled on any of the sites&lt;/p&gt;
&lt;p&gt;Content query web parts - have the following error - &amp;quot;List does not exist&amp;quot; &amp;quot;The page you selected contains a list that does not exist. &amp;nbsp;It may have been deleted by another user.&amp;quot;&lt;/p&gt;
&lt;p&gt;I can fix the publishing feature activation with a custom feature. &amp;nbsp;And I assume that the CQWP are configured to point at the old site. &amp;nbsp;Is there a way of changing this during the import?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3055025</link><pubDate>Wed, 14 May 2008 14:18:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3055025</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;features need to be installed but not activated on the destination server before running the import. During import the features should be enabled automatically if preserve object identity is used.&lt;/p&gt;
&lt;p&gt;The problem with the CQWP sounds as if you did not use perserve object identity. The CQWP stores the GUID of the list. If the GUID changes on the destination server the GUID stored in the CQWP is no longer valid and has to be manually adjusted.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3055048</link><pubDate>Wed, 14 May 2008 15:15:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3055048</guid><dc:creator>Nick Magill</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Thanks for the uber quick reply.&lt;/p&gt;
&lt;p&gt;Can I use preserve object identity if the import is to a different application on the same farm?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nick&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3055054</link><pubDate>Wed, 14 May 2008 15:39:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3055054</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;yes. But you need a different web application with a different content database.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3056165</link><pubDate>Fri, 16 May 2008 12:55:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3056165</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I am trying to import files from file system into MOSS 2007 obtained by an export from SPS 2001, but randomly some of the imported elements have wrong metadata information.&lt;/p&gt;
&lt;p&gt;In the Manifest.xml file all the informations are correct, but in the final imported item the creation date is sometimes set as export date (date of manifest.xml creation) sometime as import date, and sometimes correctly to document creation date.&lt;/p&gt;
&lt;p&gt;Even the document title is sometimes set wrong, being set to document name, instead of document title as is in Manifest.xml.&lt;/p&gt;
&lt;p&gt;This behavior seems appears to random, in fact the same files have different values repeating the import.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3056166</link><pubDate>Fri, 16 May 2008 12:59:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3056166</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;sorry I don't think I understand the scenario. You cannot do export/import cross version. You can only import items that have been exported from the same version.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3057755</link><pubDate>Tue, 20 May 2008 11:12:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3057755</guid><dc:creator>Mor</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I also wanted to know if there's a way to import check out data (checked out by, expiration etc..).&lt;/p&gt;
&lt;p&gt;If not by API than by manipulating the exported Manifest.xml.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3057757</link><pubDate>Tue, 20 May 2008 11:26:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3057757</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Mor,&lt;/p&gt;
&lt;p&gt;the problem is not import.&lt;/p&gt;
&lt;p&gt;This data is usually not exported.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3081328</link><pubDate>Tue, 01 Jul 2008 05:48:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3081328</guid><dc:creator>jack</dc:creator><description>&lt;p&gt;hi stefan,&lt;/p&gt;
&lt;p&gt;i want to move items from one folder to another within same document library&lt;/p&gt;
&lt;p&gt;is it possible?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3081467</link><pubDate>Tue, 01 Jul 2008 09:52:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3081467</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Jack,&lt;/p&gt;
&lt;p&gt;that is even more simple. To move items in the same library you can use the item.MoveTo() method.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3102544</link><pubDate>Fri, 08 Aug 2008 12:31:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3102544</guid><dc:creator>Rajeswari</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;When i am trying to Run SPImport.Run() to move a PagesLibrary i am getting error set &amp;quot;AllowUnsafeUpdates&amp;quot; to True.I tried setting that property on the Web but still i am facing the same problem.What could be the reason for this.I was able to do the same by using STSADM tool..&lt;/p&gt;
&lt;p&gt;Thanks In Advance,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3102552</link><pubDate>Fri, 08 Aug 2008 12:44:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3102552</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajeswari,&lt;/p&gt;
&lt;p&gt;are you executing this code as a Site Collection Administrator?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3103296</link><pubDate>Mon, 11 Aug 2008 08:34:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3103296</guid><dc:creator>rajeswari</dc:creator><description>&lt;p&gt;hi stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I added my account to Site Collection Admin Group and tried running the same code.But still i am facing the same problem.Another thing is i added my code to the SPSecurity.RunWithElevatedPrivilages also.But i am still facing the same problem..&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3103305</link><pubDate>Mon, 11 Aug 2008 09:14:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3103305</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;it looks as if you have implemented the import in a page which is called by a GET request. Try to use a POST request to call the page. Then this error should not occur.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3103840</link><pubDate>Tue, 12 Aug 2008 07:35:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3103840</guid><dc:creator>Rajeswari</dc:creator><description>&lt;p&gt;Hi stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; What you said is exactly right.I was able to import.But is really wonderful bolg on Content Migration.&lt;/p&gt;
&lt;p&gt;cheers,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3104587</link><pubDate>Wed, 13 Aug 2008 09:30:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3104587</guid><dc:creator>Rajee</dc:creator><description>&lt;p&gt;Hi stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have another question regarding the Content Migration.If we need to archive the pages in the Pages Library to some other site Pages Library in different Server on timely basis.Is it possible to do with this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3104625</link><pubDate>Wed, 13 Aug 2008 10:15:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3104625</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;yes you can do this.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3105719</link><pubDate>Thu, 14 Aug 2008 14:12:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3105719</guid><dc:creator>Rajee</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; I need to Archive a Page in Pages Library to another Site.After Archiving i need to delete the page from that library along with that in need to delete the Page INSETS also.&lt;/p&gt;
&lt;p&gt;How i can achieve this.Literally speaking i need to Move a Page from One Site to another SiteCollection.How to do this...&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3105723</link><pubDate>Thu, 14 Aug 2008 14:36:13 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3105723</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;you need to do this in 3 steps:&lt;/p&gt;
&lt;p&gt;1) export from old site collection using the content deployment and migration API&lt;/p&gt;
&lt;p&gt;2) import into the new site collection using the content deployment and migration API&lt;/p&gt;
&lt;p&gt;3) delete the item in the source site collection using regular SharePoint object model.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3105903</link><pubDate>Thu, 14 Aug 2008 20:29:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3105903</guid><dc:creator>rajee</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; I did the same thing but problem here is my pages have content editors which have some documents from different libraries.If i am deleting the item from the Pages Library it is deleting the items from the pages library but i want to delete the rest of the contents which are embedded inside the Page.How can i achieve this in single shot like once i delete the page it should delete all the contents along with the documents embedded inside the Page from thier respective libraries.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3105907</link><pubDate>Thu, 14 Aug 2008 20:38:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3105907</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;you mean you would like to delete the items stored in other libraries?&lt;/p&gt;
&lt;p&gt;You would need write code to parse the content of each field and potentially webpart to find the linked items and then delete them.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3105912</link><pubDate>Thu, 14 Aug 2008 20:44:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3105912</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;this settings actually increases the memory consumption as the callstack has to be gathered during allocation and kept during the whole lifecycle of the request. It also slightly slows down the processing.&lt;/p&gt;
&lt;p&gt;So this should only be used during troubleshooting.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3122739</link><pubDate>Fri, 12 Sep 2008 03:17:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3122739</guid><dc:creator>Parag</dc:creator><description>&lt;p&gt;Stefan,&lt;/p&gt;
&lt;p&gt;We have a requirement to move a document from a custom library in one site collection to another site collection, while retaining metadata and version history. &lt;/p&gt;
&lt;p&gt;Can the export and import methods be used from a workflow? Any other pointers?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3122793</link><pubDate>Fri, 12 Sep 2008 07:47:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3122793</guid><dc:creator>Rajee</dc:creator><description>&lt;p&gt;hi stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; I have one Context Menu attached to the Edit Control Block of the Pages Library.&lt;/p&gt;
&lt;p&gt;When i click this Context Menu i want to export the Item to the destination Site Pages Library.&lt;/p&gt;
&lt;p&gt;Inorder to send this internally Context Menu is executing an Aspx Page.Problem i am facing is not able to exceute the Import Code on an Aspx Page.While importing i am getting &amp;nbsp;error as &amp;quot;AllowUnsafeupdates&amp;quot; are not allowed on &amp;quot;Get&amp;quot; request.I tried setting the action property as &amp;quot;POST&amp;quot;.How to execute the Import code in an Aspx Page.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3122828</link><pubDate>Fri, 12 Sep 2008 10:07:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3122828</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Parag,&lt;/p&gt;
&lt;p&gt;the export/import API should work inside a workflow. But be aware that you need be site collection administrator to perform the import operation.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3122829</link><pubDate>Fri, 12 Sep 2008 10:08:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3122829</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;you have to ensure that the request to the ASPX page is performed as a postback and not as a GET request.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3125751</link><pubDate>Thu, 18 Sep 2008 18:11:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3125751</guid><dc:creator>Rajee</dc:creator><description>&lt;p&gt;hi stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; I am facing one issue while exporting a Page to another site collection.&lt;/p&gt;
&lt;p&gt;Scenario goes like this...&lt;/p&gt;
&lt;p&gt;I have a Page which &amp;nbsp;have some documents as links on that page.These documents are coming from different folders of sitecollection documents.I was able to export properly that page for some times...After exporting it for couple times i am getting an exception as given below&lt;/p&gt;
&lt;p&gt;&amp;quot;Violation of PRIMARY KEY constraint 'PK__#ExportObjects____XXXXXXXX'. Cannot insert duplicate key in object 'dbo.#ExportObjects'&amp;quot;&lt;/p&gt;
&lt;p&gt;What could be the reason for this...&lt;/p&gt;
&lt;p&gt;if i do ExcludeDependencies as &amp;quot;true&amp;quot; then there are no issues but it is not copying the Embedded images etc..&lt;/p&gt;
&lt;p&gt;Why i am getting this kind of exception.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rajee&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3135867</link><pubDate>Mon, 13 Oct 2008 15:11:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3135867</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rajee,&lt;/p&gt;
&lt;p&gt;please ensure to install the MOSS infrastructure update. It contains a couple of fixes for similar problems.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3137293</link><pubDate>Thu, 16 Oct 2008 17:11:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3137293</guid><dc:creator>Kent</dc:creator><description>&lt;p&gt;Hi Stefan&lt;/p&gt;
&lt;p&gt;A company has requirements to publish pressreleases immediately (at least a short time) after the user clicks on the publish button.&lt;/p&gt;
&lt;p&gt;Authoring farm (domain A) export &lt;/p&gt;
&lt;p&gt;(import) on Production farm (domain B)&lt;/p&gt;
&lt;p&gt;The solution I’m working on is a feature event receiver that triggers on the ItemUpdated event.&lt;/p&gt;
&lt;p&gt;The ListItem gets exported (works fine) on the authoring farm. Since the production farm is on another domain, and the SPImport must execute local, the exported file is transferred to the target/productionfarm via a webservice.&lt;/p&gt;
&lt;p&gt;The webservice then executes the import.&lt;/p&gt;
&lt;p&gt;Everything works fine if the listitem exists on the target (Pages) list, as a regular update. But if the listitem is NEW the import fails.&lt;/p&gt;
&lt;p&gt;So the export/import is successful when it’s a regular update. But it fails when a new item is trying to get imported.&lt;/p&gt;
&lt;p&gt;/Kent&lt;/p&gt;
&lt;p&gt;EXPORT CODE: from the event receiver&lt;/p&gt;
&lt;p&gt;private bool ExportPressReleases(SPItemEventProperties properties)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string fileName = GetFileName(properties);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPExportObject exportObject = new SPExportObject();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportObject.Id = properties.ListItem.UniqueId;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportObject.Type = SPDeploymentObjectType.ListItem;// ListItem;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportObject.ParentId = properties.ListId;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportObject.ExcludeChildren = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPExportSettings exportSettings = new SPExportSettings();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.ExportObjects.Add(exportObject);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (_write2Log)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.LogExportObjectsTable = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.LogFilePath = ExportDirectory + &amp;quot;exportobject.log&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.ExcludeDependencies = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.FileLocation = ExportDirectory;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.FileCompression = true;// true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.BaseFileName = fileName;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.IncludeSecurity = SPIncludeSecurity.None;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.SiteUrl = GetSiteUrl(properties);// properties.ListItem.Web.Site.Url;//&amp;quot;&lt;a rel="nofollow" target="_new" href="http://localhost:12002&amp;quot;;"&gt;http://localhost:12002&amp;quot;;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPExport export = new SPExport(exportSettings);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;export.Error += new EventHandler&amp;lt;SPDeploymentErrorEventArgs&amp;gt;(export_Error);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;export.Completed += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(export_Completed);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;export.Started += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(export_Started);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;export.Run();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;export.Dispose();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception exe)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;IMPORT CODE from the webservice&lt;/p&gt;
&lt;p&gt;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LogMessage(&amp;quot;Elevated user &amp;quot; + System.Security.Principal.WindowsIdentity.GetCurrent().Name);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPImportSettings settings = new SPImportSettings();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.SiteUrl = “&lt;a rel="nofollow" target="_new" href="http://vpc-ols:12001"&gt;http://vpc-ols:12001&lt;/a&gt;”;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.WebUrl = “/pressreleases”;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.FileLocation = @fileLocation;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.BaseFileName = baseFileName;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (LogMessages)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.LogFilePath = ImportDirectory + &amp;quot;importobjects.log&amp;quot;;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.IgnoreWebParts = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.FileCompression = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.RetainObjectIdentity = true;// retainObjectIdentity;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;settings.SuppressAfterEvents = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPImport import = new SPImport(settings);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Canceled += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(import_Canceled);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Completed += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(import_Completed);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Error += new EventHandler&amp;lt;SPDeploymentErrorEventArgs&amp;gt;(import_Error);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.ObjectImported += new EventHandler&amp;lt;SPObjectImportedEventArgs&amp;gt;(import_ObjectImported);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Started += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(import_Started);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Uncompressing += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(import_Uncompressing);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.ProgressUpdated += new EventHandler&amp;lt;SPDeploymentEventArgs&amp;gt;(import_ProgressUpdated);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Run();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import.Dispose();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/p&gt;
&lt;p&gt;EXPORT LOG&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:36 PM]: Start Time: 10/16/2008 3:37:36 PM.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:36 PM]: Progress: Initializing Export.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:36 PM]: Progress: Starting Export.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:36 PM]: Progress: Calculating Objects to Export.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Serializing Objects to Disk.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Starting to process objects of type Site.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Finished processing objects of type Site.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Starting to process objects of type Folder.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Exporting Folder /pressreleases/Pages/Forms/Press Release Page.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Finished processing objects of type Folder.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Starting to process objects of type ContentType.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Finished processing objects of type ContentType.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Starting to process objects of type DocLibFile.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Exporting File pressreleases/Pages/yuk4.aspx.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Finished processing objects of type DocLibFile.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Starting to process objects of type ListItem.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Exporting ListItem pressreleases/Pages?id=28.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:37 PM]: Progress: Finished processing objects of type ListItem.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: Creating File(s).&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: Compressing File(s).&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: Export Completed.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Finish Time: 10/16/2008 3:37:38 PM.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Completed with 0 warnings.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Completed with 0 errors.&lt;/p&gt;
&lt;p&gt;IMPORT LOG&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Start Time: 10/16/2008 3:37:38 PM.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: Initializing Import.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: Starting content import.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: De-Serializing Objects to Database.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:38 PM]: Progress: Importing Folder /pressreleases/Pages/Forms/Press Release Page.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: Progress: Importing File Pages/yuk4.aspx.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: Progress: Importing ListItem /pressreleases/Pages?id=28.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: FatalError: Operation is not valid due to the current state of the object.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPControl(HttpContext context)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(HttpContext context)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPContext.get_Current()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.GetValue(String strName)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, SPField field, Boolean protectFields)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.SetValue(String strName, Object value, Boolean protectFields)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPListItem.set_Item(String fieldName, Object value)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPModerationInformation.set_Status(SPModerationStatusType value)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.SPImport.Run()&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: Progress: Import Completed.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: Finish Time: 10/16/2008 3:37:43 PM.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: Completed with 0 warnings.&lt;/p&gt;
&lt;p&gt;[10/16/2008 3:37:43 PM]: Completed with 1 errors.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3137313</link><pubDate>Thu, 16 Oct 2008 17:50:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3137313</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Kent,&lt;/p&gt;
&lt;p&gt;do you have the infrastructure update installed on the server?&lt;/p&gt;
&lt;p&gt;If yes, please open a support case with Microsoft to get this analyzed.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3137450</link><pubDate>Thu, 16 Oct 2008 22:37:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3137450</guid><dc:creator>Kent</dc:creator><description>&lt;p&gt;Yes, all updates are installed, and I opened a case this afternoon :)&lt;/p&gt;
&lt;p&gt;Thanks for the great post...&lt;/p&gt;
&lt;p&gt;/Kent&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3138301</link><pubDate>Sat, 18 Oct 2008 10:26:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3138301</guid><dc:creator>Kent</dc:creator><description>&lt;p&gt;FYI.&lt;/p&gt;
&lt;p&gt;We added &lt;/p&gt;
&lt;p&gt;SPUtility.ValidateFormDigest()&lt;/p&gt;
&lt;p&gt;just before &lt;/p&gt;
&lt;p&gt;SPSecurity.RunWithElevatedPrivileges&lt;/p&gt;
&lt;p&gt;And the import run smooth as silk :)&lt;/p&gt;
&lt;p&gt;The security flags wasnt correct for the context of the request since the import was handled by a webservice.&lt;/p&gt;
&lt;p&gt;/Kent&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3144226</link><pubDate>Wed, 29 Oct 2008 22:24:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3144226</guid><dc:creator>Carin</dc:creator><description>&lt;p&gt;I'm fairly new to SharePoint but recently launched a Publishing website with content (some 4000 pages) imported from and external source. &amp;nbsp;Now I have been tasked to automate an import procedure for quarterly updates to aforementioned content without overwriting edits done after the initial import and preserving a content web part managed at the page level on each of the 4,000 pages.&lt;/p&gt;
&lt;p&gt;Is this API the best way (or even A way at all) to achieve this?&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3144243</link><pubDate>Wed, 29 Oct 2008 23:12:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3144243</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Carin,&lt;/p&gt;
&lt;p&gt;this API can be used to import content - but it will not prevent overwrite of updated content. All imported content will overwrite existing content.&lt;/p&gt;
&lt;p&gt;So you would need to implement some logic in your code which ensures that no items which should not be imported are in the import package passed into the API.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3146983</link><pubDate>Tue, 04 Nov 2008 10:47:13 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3146983</guid><dc:creator>Saroj </dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Really a nice article for content migration.&lt;/p&gt;
&lt;p&gt;I had a Question:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Is there anyway to Migrate/Export/BackUp a Site (Not Site Colletion) as Site Colletion in different location.&lt;/p&gt;
&lt;p&gt;e.g. suppose i have a site http://&amp;lt;server&amp;gt;/Sites/Test/ABC. Now is there any method to move ABC site as http://&amp;lt;server&amp;gt;:&amp;lt;PortNo&amp;gt;/Sites/ABC.&lt;/p&gt;
&lt;p&gt;Any pointers will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Saroj&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3147045</link><pubDate>Tue, 04 Nov 2008 12:17:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147045</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Saroj,&lt;/p&gt;
&lt;p&gt;unfortunatelly this is not supported in the current version as there are problems with the resulting site. Reason is that in the rootsite you need to have various specific lists and properties which do not exist in a subsite. After migrating a subsite to a root site these items will be missing.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3147599</link><pubDate>Wed, 05 Nov 2008 05:00:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3147599</guid><dc:creator>Saroj </dc:creator><description>&lt;p&gt;Thanks Stefan,&lt;/p&gt;
&lt;p&gt;Greatly appreciate your prompt reply.&lt;/p&gt;
&lt;p&gt;Yes your concerns are quite valid.&lt;/p&gt;
&lt;p&gt;But when I did export/import for Site to SC.&lt;/p&gt;
&lt;p&gt;These are the problems I came across,&lt;/p&gt;
&lt;p&gt;All the activated feature need to be installed at destination and corresponding DLL in the appropriate location.&lt;/p&gt;
&lt;p&gt;When I fixed these still the &amp;quot;Page not Found&amp;quot; error was thrown, except for the Layout pages.&lt;/p&gt;
&lt;p&gt;Once I changed the Master Page, the basic features of the Site Collection now seems to be working. i.e. There were no more &amp;quot;page not found&amp;quot; error.&lt;/p&gt;
&lt;p&gt;Didn't tested rigorously,yet to come across major issues for a light weight Site with just one workflow and few lists.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Saroj&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3157737</link><pubDate>Sat, 22 Nov 2008 02:42:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3157737</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;We are upgrading to from WSS3.0 to MOSS 2007 at GM and the when running an import command on a 4 meg file it is looking one by one through 6400 users and 1600 groups. &amp;nbsp;It appears to be spending 99% of its time finding users possibly in Active Directory from all around the world. &amp;nbsp;Is there a better way to do &amp;nbsp;an import.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3157874</link><pubDate>Sat, 22 Nov 2008 12:08:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3157874</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;did you follow our design guidelines to assign AD groups rather than individual users to SharePoint groups and then assign SharePoint groups to sites and lists?&lt;/p&gt;
&lt;p&gt;Or did you not follow this guidance and directly assigned individual users to SharePoint items?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>WSS/MOSS - Common Issue - SQL Deadlocks during STSADM import operations or when </title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3159736</link><pubDate>Wed, 26 Nov 2008 12:06:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3159736</guid><dc:creator>Stefan Goßner</dc:creator><description>&lt;p&gt;In the last couple of weeks I have seen several cases where STSADM import operations failed with random&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3178680</link><pubDate>Fri, 09 Jan 2009 12:58:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3178680</guid><dc:creator>Leon Zandman</dc:creator><description>&lt;p&gt;Stefan, is it possible to import a document library using a different target name than the original file name? I.e. in site A I have a document library called &amp;quot;foo&amp;quot; and I export it. Then I want to import it into site B, but using the name &amp;quot;bar&amp;quot;.&lt;/p&gt;
&lt;p&gt;I need this, because site B already contains a document library called &amp;quot;foo&amp;quot;, which is totally unrelated to the other &amp;quot;foo&amp;quot;, but inconveniently has the exact same (relative) URL.&lt;/p&gt;
&lt;p&gt;I was thinking on changing the value of the SPImportObject's TargetName property using the OnImportStarted event, like you described. But according to the MSDN docs this is only valid for objects of type &amp;quot;Web&amp;quot;. &lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3178688</link><pubDate>Fri, 09 Jan 2009 13:15:38 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3178688</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Leon,&lt;/p&gt;
&lt;p&gt;it would be required to modify the manifest.xml file to achieve this.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3182672</link><pubDate>Thu, 15 Jan 2009 09:45:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3182672</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Does the import job must run at destination server? For example, i run the export job on server A, so must the import job run at destination server B? Please give adivse. Thank!&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3182687</link><pubDate>Thu, 15 Jan 2009 10:49:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3182687</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Frankie,&lt;/p&gt;
&lt;p&gt;yes the import has to be executed on a server in target farm.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>Content Deployment - Best Practices</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3183859</link><pubDate>Fri, 16 Jan 2009 15:42:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3183859</guid><dc:creator>Stefan Goßner</dc:creator><description>&lt;p&gt;In the past I have released several blogs about the various problems that can occur with Content Deployment.&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3193636</link><pubDate>Wed, 28 Jan 2009 17:57:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3193636</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;This is very good post. However, I have faced one problem during import content. I have one column called Assigned To and it's type is person or group. After import task i found that it doesnot imported assigned to column data.&lt;/p&gt;
&lt;p&gt;Also, I have checked in Manifest.xml file and for assigned to column it shows id only with 2;# and no person name.&lt;/p&gt;
&lt;p&gt;Please let me know.&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Rishi&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3193643</link><pubDate>Wed, 28 Jan 2009 18:03:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3193643</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rishi,&lt;/p&gt;
&lt;p&gt;I assume you exported and imported all security information?&lt;/p&gt;
&lt;p&gt;If yes, please open a support case to get this analyzed.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3193650</link><pubDate>Wed, 28 Jan 2009 18:11:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3193650</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hi Saefan&lt;/p&gt;
&lt;p&gt;I have used the following code snippet:&lt;/p&gt;
&lt;p&gt;SPExportSettings exportSettings = new SPExportSettings();&lt;/p&gt;
&lt;p&gt;exportSettings.SiteUrl = web.Url;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.ExportMethod = SPExportMethodType.ExportAll;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.FileLocation = @&amp;quot;filepath&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.FileCompression = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exportSettings.ExcludeDependencies = false;&lt;/p&gt;
&lt;p&gt;Also, One more query along with this.&lt;/p&gt;
&lt;p&gt;When i try to export content from list name &amp;quot;MyList&amp;quot; on &amp;quot;SiteA&amp;quot; and while import If i try to import on &amp;quot;SiteB&amp;quot; then it won't allow me to do that. So i need to update &amp;quot;SiteA&amp;quot; name with &amp;quot;SiteB&amp;quot; in Manifest.xml file.&lt;/p&gt;
&lt;p&gt;Is this correct approch?&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Rishi&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3193677</link><pubDate>Wed, 28 Jan 2009 18:44:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3193677</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rishi,&lt;/p&gt;
&lt;p&gt;you are not exporting security settings. Please ensure that you add exportSettings.IncludeSecurity.&lt;/p&gt;
&lt;p&gt;Only if you export all then the users get exported. That is required to have the user information available on the target.&lt;/p&gt;
&lt;p&gt;For the second issue, please check reparenting in my article series.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3193959</link><pubDate>Wed, 28 Jan 2009 23:58:53 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3193959</guid><dc:creator>vsalik</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;The comments/questions I am trying to post do not appear here.&lt;/p&gt;
&lt;p&gt;Any reason why?&lt;/p&gt;
&lt;p&gt;Vlad.&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3193962</link><pubDate>Thu, 29 Jan 2009 00:01:48 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3193962</guid><dc:creator>vsalik</dc:creator><description>&lt;p&gt;It seems like it's because of the size. Is there another way to contact you?&lt;/p&gt;
&lt;p&gt;Vlad.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3194210</link><pubDate>Thu, 29 Jan 2009 11:32:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194210</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Vlad,&lt;/p&gt;
&lt;p&gt;on the upper left edge you will find an &amp;quot;email&amp;quot; link where you can contact me by mail.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3194314</link><pubDate>Thu, 29 Jan 2009 15:32:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194314</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hi Saefan&lt;/p&gt;
&lt;p&gt;I have added &lt;/p&gt;
&lt;p&gt;exportSettings.IncludeSecurity = All property in my code but still not able to import users for Assigned to column.&lt;/p&gt;
&lt;p&gt;FYI, I have set same property for ImportSettings.&lt;/p&gt;
&lt;p&gt;Plesae help me . Sorry to keep pinging you about same problem&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Rishi&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3194318</link><pubDate>Thu, 29 Jan 2009 15:44:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194318</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Rishi,&lt;/p&gt;
&lt;p&gt;nice that you export them. Do you also import them? Because the same setting exists for the import phase.&lt;/p&gt;
&lt;p&gt;And you should also set the SPImportUserInfoDateTime option to import all.&lt;/p&gt;
&lt;p&gt;To ensure that the user information is exported and imported correctly.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3194355</link><pubDate>Thu, 29 Jan 2009 16:57:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3194355</guid><dc:creator>Rishi</dc:creator><description>&lt;P&gt;Hi Stefan&lt;/P&gt;
&lt;P&gt;Thanks Sir. Now i am able to import all correct data.&lt;/P&gt;
&lt;P&gt;Excellent and appreciate your help.&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Rishi&lt;/P&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3195633</link><pubDate>Mon, 02 Feb 2009 06:29:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3195633</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Currenly, i need to export a source site content and then import to destination server immediately. As you mentioned that import job should be run at destination server, so once the exoprt action completed, if the deploy job setup on exporting server, think we need to ftp the cmp file to destination server and then call web service which located on destination server to run import. is it ok or any my misunderstanding? Please give advise. Btw, could you give advise how to implement the deployment between separate server more efficient? &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3195723</link><pubDate>Mon, 02 Feb 2009 10:59:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3195723</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Frankie,&lt;/p&gt;
&lt;p&gt;your understanding is correct. That is exactly how content deployment implements the import. What is does in addition is that it creates and starts a timer job which runs in OWSTIMER.EXE to perform the actual import operation on the target to ensure that application pool recycling does not affect the import operation.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3196182</link><pubDate>Tue, 03 Feb 2009 04:44:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3196182</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Thanks for your quick answers. I still have some questions need your help. First, if the deployment is a frequence task, we should store the change token so that it could run with incremental update, is it right? Second, how we could implement our import job by using the timer job? Third, does the ftp is the only way to transport cmp file to destination server? Please give advise. Many thanks!&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Frankie &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3196270</link><pubDate>Tue, 03 Feb 2009 10:56:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3196270</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Frankie,&lt;/p&gt;
&lt;p&gt;content deployment as in MOSS stores the change token on the source server in a list. You could use a similar approach.&lt;/p&gt;
&lt;p&gt;Regarding the timer job: please use the SDK on how to implement a custom timer job.&lt;/p&gt;
&lt;p&gt;Regarding upload: you can use different methods: FTP or HTTP upload. copy to fileshare, ...&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3201052</link><pubDate>Thu, 12 Feb 2009 04:47:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3201052</guid><dc:creator>Shishir</dc:creator><description>&lt;p&gt;Stefan,&lt;/p&gt;
&lt;p&gt;I am facing a unique problem. &lt;/p&gt;
&lt;p&gt;----------------&lt;/p&gt;
&lt;p&gt;Current Scenario&lt;/p&gt;
&lt;p&gt;----------------&lt;/p&gt;
&lt;p&gt;1) There are sites built out of OOB MOSS Site definitions.&lt;/p&gt;
&lt;p&gt;2) Custom Site templates were created and few sites were based out of them&lt;/p&gt;
&lt;p&gt;Today all such site templates have been deleted. Sites based out of it are still working as site templates are connected to the site definition &amp;amp; those site definitions (OOB) are still in place&lt;/p&gt;
&lt;p&gt;**To prevent errors, Two New Custom Site Definitions were created. All newly created sites are based out of either of these custom site definitions &amp;amp; have no problem.&lt;/p&gt;
&lt;p&gt;NOW CLIENT Wants to move existing sites built out of OOB site definition &amp;amp; the deleted custom site templates to be migrated to the 2 newly created custom site definition. &lt;/p&gt;
&lt;p&gt;Q1) is it possible to change a site's association with its site definition through code so that it points to new site definition(Corrected one with extra features)&lt;/p&gt;
&lt;p&gt;Q2) same question for site template scenario?&lt;/p&gt;
&lt;p&gt;Please suggest&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3201123</link><pubDate>Thu, 12 Feb 2009 10:35:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3201123</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Shishir,&lt;/p&gt;
&lt;p&gt;I'm not aware about a possibility to achieve this.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3203907</link><pubDate>Wed, 18 Feb 2009 10:53:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3203907</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;We just test our conent deployment program, run a console application do execute export action, call a web service to execute import action. Unluckly, we met import exception with something like &amp;quot;The underlying connection was closed&amp;quot;. My questions is 1. how to solve such exception and how about the root case? 2. It look like even if the import fail, but there are still some contents be imported, is there any approachs to rollback these kind of contents? 3. Is there any good approach to handle import error? could we just cancel it when throws errors. Please give advise. Many thanks!&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3203911</link><pubDate>Wed, 18 Feb 2009 11:02:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3203911</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Frankie,&lt;/p&gt;
&lt;p&gt;which connection got closed above? The http connection when uploading the data? What is the exact error message?&lt;/p&gt;
&lt;p&gt;Regarding rollback: rollback is not possible. When import fails then the already imported data will exist on the target while the not yet imported data will not be available. &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3203918</link><pubDate>Wed, 18 Feb 2009 11:25:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3203918</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;The exact error message we met as below:&lt;/p&gt;
&lt;p&gt;1. Call Import Service Error: System.Net.WebException: The underlying connection wa&lt;/p&gt;
&lt;p&gt;s closed: An unexpected error occurred on a receive. ---&amp;gt; System.IO.IOException:&lt;/p&gt;
&lt;p&gt; Unable to read data from the transport connection: An existing connection was f&lt;/p&gt;
&lt;p&gt;orcibly closed by the remote host. ---&amp;gt; System.Net.Sockets.SocketException: An e&lt;/p&gt;
&lt;p&gt;xisting connection was forcibly closed by the remote host&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size,&lt;/p&gt;
&lt;p&gt; SocketFlags socketFlags)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s&lt;/p&gt;
&lt;p&gt;ize)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; --- End of inner exception stack trace ---&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s&lt;/p&gt;
&lt;p&gt;ize)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetriev&lt;/p&gt;
&lt;p&gt;edStream, Boolean probeRead)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; --- End of inner exception stack trace ---&lt;/p&gt;
&lt;p&gt;2. Import failed:Microsoft.SharePoint.SPException: The directory is not a subdirec&lt;/p&gt;
&lt;p&gt;ory of the root directory. (Exception from HRESULT: 0x80070090) ---&amp;gt; System.Run&lt;/p&gt;
&lt;p&gt;ime.InteropServices.COMException (0x80070090): The directory is not a subdirect&lt;/p&gt;
&lt;p&gt;ry of the root directory. (Exception from HRESULT: 0x80070090)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Library.SPRequestInternalClass.ThrowError(Int32 dwEr&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Library.SPRequest.ThrowError(Int32 dwErr)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; --- End of inner exception stack trace ---&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Library.SPRequest.ThrowError(Int32 dwErr)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPFieldCollection.AddFieldToWeb(String strXml, Boole&lt;/p&gt;
&lt;p&gt;n checkDisplayName)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schem&lt;/p&gt;
&lt;p&gt;Xml, Boolean addToDefaultView, SPAddFieldOptions op)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.FieldTemplateSerializer.CreateField(SPWeb&lt;/p&gt;
&lt;p&gt;web, SerializationInfoHelper infoHelper)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.FieldTemplateSerializer.SetObjectData(Obj&lt;/p&gt;
&lt;p&gt;ct obj, SerializationInfo info, StreamingContext context, ISurrogateSelector se&lt;/p&gt;
&lt;p&gt;ector)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType,&lt;/p&gt;
&lt;p&gt;Boolean isChildObject)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objec&lt;/p&gt;
&lt;p&gt;Type, Boolean isChildObject, DeploymentObject envelope)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializa&lt;/p&gt;
&lt;p&gt;ionStream)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream seria&lt;/p&gt;
&lt;p&gt;izationStream)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlRead&lt;/p&gt;
&lt;p&gt;r xmlReader)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.SPImport.Run()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at kaoctdotcommoss.deployment.webservice.KAOCTMOSS_ImportService.RunImport(S&lt;/p&gt;
&lt;p&gt;ring _fileLocation, String _baseFileName) in C:\Documents and Settings\zhangde\&lt;/p&gt;
&lt;p&gt;esktop\KAOCT.COMMOSS\kaoctdotcommoss.deployment.webservice\Import.asmx.cs:line&lt;/p&gt;
&lt;p&gt;37&lt;/p&gt;
&lt;p&gt;***************************************************&lt;/p&gt;
&lt;p&gt;Could you help to give advise. Many thanks!&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3203942</link><pubDate>Wed, 18 Feb 2009 12:20:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3203942</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;As you mentioned at previous reply, when import fails then the already imported data will exist on the target while the not yet imported data will not be available. So, my question is:&lt;/p&gt;
&lt;p&gt;1. Actually, the whole import job is not completed, so when we re-import the same cmp file, does it will overwrite those imported data? Please give advise. Many thanks!&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3204025</link><pubDate>Wed, 18 Feb 2009 15:33:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3204025</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Sounds to me as if 2 is a follow up problem from 1.&lt;/p&gt;
&lt;p&gt;1 seems to be inside the webservice when the web service talks to the source who sends the export.&lt;/p&gt;
&lt;p&gt;Looks like a problem with the IIS configuration.&lt;/p&gt;
&lt;p&gt;Here is an article that explains how to change the IIS settings:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/default.aspx?id=826210"&gt;http://support.microsoft.com/default.aspx?id=826210&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3204340</link><pubDate>Thu, 19 Feb 2009 04:44:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3204340</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; Thanks for your quickly answers. As you mentioned at previous reply, when import fails then the already imported data will exist on the target while the not yet imported data will not be available. So, when we re-import the same cmp file, does it will overwrite those imported data? Please give advise. Many thanks!&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3204351</link><pubDate>Thu, 19 Feb 2009 05:43:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3204351</guid><dc:creator>FLPF</dc:creator><description>&lt;p&gt;Dear Stefan,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Currently, our content deployment for whole site is completed. But it still has error as below.&lt;/p&gt;
&lt;p&gt;[2/19/2009 10:35:30 AM]: Progress: Importing File WorkflowTasks/NewForm.aspx.&lt;/p&gt;
&lt;p&gt;[2/19/2009 10:35:30 AM]: FatalError: A duplicate name &amp;quot;ISM_x0020_Information&amp;quot; was found.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPFieldCollection.AddFieldToWeb(String strXml, Boolean checkDisplayName)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String schemaXml, Boolean addToDefaultView, SPAddFieldOptions op)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.FieldTemplateSerializer.CreateField(SPWeb web, SerializationInfoHelper infoHelper)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.FieldTemplateSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.SharePoint.Deployment.SPImport.Run()&lt;/p&gt;
&lt;p&gt;[2/19/2009 10:35:30 AM]: Progress: Import Completed.&lt;/p&gt;
&lt;p&gt;[2/19/2009 10:35:30 AM]: Finish Time: 2/19/2009 10:35:30 AM.&lt;/p&gt;
&lt;p&gt;[2/19/2009 10:35:30 AM]: Completed with 7 warnings.&lt;/p&gt;
&lt;p&gt;[2/19/2009 10:35:30 AM]: Completed with 1 errors.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Could you please advise, is there any setting we missed? Since we create an empty side with stsadm command and think there should not have duplicated content. Many thanks!&lt;/p&gt;
&lt;p&gt;Frankie&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3204391</link><pubDate>Thu, 19 Feb 2009 10:27:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3204391</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Frankie,&lt;/p&gt;
&lt;p&gt;it will overwrite the data if you used RetainObjectIdentity = true.&lt;/p&gt;
&lt;p&gt;The latest error indicates that you have duplicate columns on the source system.&lt;/p&gt;
&lt;p&gt;E.g. you created the column on a subweb and later created a column with the same name in the rootweb.&lt;/p&gt;
&lt;p&gt;That cannot be handled by content deployment.&lt;/p&gt;
&lt;p&gt;To resolve this, please rename the column in the rootweb to ensure that no duplicates exist.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3207536</link><pubDate>Fri, 27 Feb 2009 23:59:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3207536</guid><dc:creator>Elhadi</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;When running SPImport.import from a web page deployed on the 12 hive (as a feature), I have the error : &amp;quot;The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. ---&amp;gt; The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.&amp;quot; &lt;/p&gt;
&lt;p&gt;Everybody recommand that the solution is to set SPSite.AllowUnsafeUpdate = True. But in content deployment scenarios we have no SPSite or SPWeb object, we have just the SPImport object !&lt;/p&gt;
&lt;p&gt;So what can be the solution in this case (The administrator refuse to deactivate the validation in the centrale administration) ? and can you explain un please what's the meaning of this security page validation ?&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3207540</link><pubDate>Sat, 28 Feb 2009 00:15:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3207540</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Elhadi,&lt;/p&gt;
&lt;p&gt;you need to ensure that the deployment code is initiated through a http POST request. Not a GET request.&lt;/p&gt;
&lt;p&gt;That will solve the issue.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3218581</link><pubDate>Thu, 26 Mar 2009 21:05:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218581</guid><dc:creator>piece of sharepoint</dc:creator><description>&lt;p&gt;i'm also getting the &amp;quot;AllowUnsafeUpdates&amp;quot; error but i have to use a GET request because i dont know any other way to make this page do what i need it to do (long story). are you sure there's no other way to get around this mostly fun piece of sharepoint?&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3218585</link><pubDate>Thu, 26 Mar 2009 21:11:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218585</guid><dc:creator>piece of sharepoint</dc:creator><description>&lt;p&gt;why are there so many security restrictions. wtf. just break the user's arms and legs and they wont be able to hurt you...&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3218643</link><pubDate>Thu, 26 Mar 2009 22:51:13 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218643</guid><dc:creator>piece of sharepoint</dc:creator><description>&lt;p&gt;when i run OnImported, eventArgs.SourceUrl is .../Word Document. the file is not called &amp;quot;Word Document&amp;quot;. there is no such file. any tips for how to not make it point to something that doesnt exist and then error out?&lt;/p&gt;
&lt;p&gt;sorry if i sound upset, but sharepoint has been kicking me in the nuts since christmas. i appreciate how much detail was put into this page. i just wish it was enough&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3218885</link><pubDate>Fri, 27 Mar 2009 10:53:35 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218885</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;sorry this is hard coded. If the code is executed inside a web application you need to use the POST request. What you could do is to do do a GET to one page that then does a POST to the page that executes the API.&lt;/p&gt;
&lt;p&gt;Alternatively you can use a console application. &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3218886</link><pubDate>Fri, 27 Mar 2009 10:55:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218886</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Regarding the security restrictions: if a GET request could init this then any hit of a search engine or random visitor to the site could start export or import by just following a link to this page. That is not something you would like, right?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3218889</link><pubDate>Fri, 27 Mar 2009 10:56:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218889</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Regarding your OnImported problem: sorry I did not get this. Can you please rephrase?&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3219210</link><pubDate>Fri, 27 Mar 2009 23:14:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3219210</guid><dc:creator>piece of sharepoint</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;i managed to get around those unsafeupdates and security validation errors for now&lt;/p&gt;
&lt;p&gt;about the OnUpdate thing - i'm trying to export and import a .docx file. OnImport runs 3 times. the first time the SourceUrl points to &amp;quot;.../Word Document&amp;quot;, then &amp;quot;.../Word Document/template.docx&amp;quot;, then finally to the actual file. i guess it's exporting more than just a single docx file. i probably have to take a closer look at how to control what gets exported/imported&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3225790</link><pubDate>Mon, 13 Apr 2009 16:39:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3225790</guid><dc:creator>Chris Cottrell</dc:creator><description>&lt;p&gt;Great article.. Thanks for posting that. It helped so much with something I needed to do. I had to copy lists as part of a data migration for a couple thousand mysites. &lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3226624</link><pubDate>Wed, 15 Apr 2009 11:21:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3226624</guid><dc:creator>Chris Davey</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Great article and very useful for fresh deployments. The issue I have is that lists and document libs are updated on our live environment, our other environments are used for proving web parts etc and building new sites. Is there any clean way of importing a site or page but only importing the functional objects and structure and not the data or is it best practice to release the updated web parts/controls. &lt;/p&gt;
&lt;p&gt;Cheers Chris&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3226629</link><pubDate>Wed, 15 Apr 2009 11:40:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3226629</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;the answer is no. Content Deployment was designed with the focus on environments where changes all happen on the source system and populate down the route to the production system.&lt;/p&gt;
&lt;p&gt;Changes on staging or production can cause content deployment to fail or content deployment can overwrite changes done on the target.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3253716</link><pubDate>Fri, 12 Jun 2009 01:44:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253716</guid><dc:creator>BN</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Can we use the Content Deployment API in a scenario whereby we want to just export the items in the Reusable Content list of our development server to UAT server?&lt;/p&gt;
&lt;p&gt;BN&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3253804</link><pubDate>Fri, 12 Jun 2009 09:56:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253804</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi BN,&lt;/p&gt;
&lt;p&gt;I haven't tried but I cannot see a reason why this would not work.&lt;/p&gt;
&lt;p&gt;Give it a try!&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3273590</link><pubDate>Fri, 14 Aug 2009 19:55:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3273590</guid><dc:creator>Larry</dc:creator><description>&lt;p&gt;Is it possible to retain list item identity at the same time re-parenting? I know it does not make sense if you are moving list item in the same content database. &amp;nbsp;But I am copying data between two web applications each having their own content database. &lt;/p&gt;
&lt;p&gt;When RetainObjectIdentity is true, the RootObjects collection is empty. &amp;nbsp;Therefore, I can't reparent object's parent.&lt;/p&gt;
&lt;p&gt;I need to do this because I need to import multiple times. I use this API to ship update to other sites periodically.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3273656</link><pubDate>Fri, 14 Aug 2009 23:20:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3273656</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Larry,&lt;/p&gt;
&lt;p&gt;no this is not possible.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3282343</link><pubDate>Mon, 21 Sep 2009 23:54:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3282343</guid><dc:creator>Isai</dc:creator><description>&lt;p&gt;Hello Stefan,&lt;/p&gt;
&lt;p&gt;I am very glad that I found this article that has helped me a lot in what I am trying to do. I am fairly new to Sharepoint and now I am developing a page that contains a button that will move one website from a site collection to another as a part of a business workflow. &lt;/p&gt;
&lt;p&gt;I want to move from &lt;a rel="nofollow" target="_new" href="http://therootsite/proposals/thewebsite"&gt;http://therootsite/proposals/thewebsite&lt;/a&gt; to &lt;a rel="nofollow" target="_new" href="http://therootsite/projects/thewebsite"&gt;http://therootsite/projects/thewebsite&lt;/a&gt;. As you can see everything remains the same just the site collection is different. I was able to export and it worked fine, no problems. Now I am filled with doubts about how to do the import. I exported it with the exclude dependencies false and include descendants to Content.&lt;/p&gt;
&lt;p&gt;The silly question that is eating my brain is the following: Should I create first a blank website in the site collection projects and then import the website to that one or in the importSettings.SiteUrl property I just put the desired URL and it will be created automatically (I just want to point out that I am extremely new to this again).&lt;/p&gt;
&lt;p&gt;Any advice will be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3282377</link><pubDate>Tue, 22 Sep 2009 04:15:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3282377</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Isai,&lt;/p&gt;
&lt;p&gt;please create the target site collection using STSADM -o createsite and do not specify a template.&lt;/p&gt;
&lt;p&gt;The import will do the rest.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3282468</link><pubDate>Tue, 22 Sep 2009 16:01:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3282468</guid><dc:creator>Isai</dc:creator><description>&lt;p&gt;Hello Stefan,&lt;/p&gt;
&lt;p&gt;thank you for the quick response. &lt;/p&gt;
&lt;p&gt;I think that you are suggesting that I should use the command to create it and then import it. Because I am programming all this in the page with the button I mentioned before, is there a way to do the creation of the website you mentioned using the deployment API or any other API in Sharepoint and the programatically do the import as well?&lt;/p&gt;
&lt;p&gt;Thanks in advance for your comments and suggestions.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Isai&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3282476</link><pubDate>Tue, 22 Sep 2009 16:38:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3282476</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Isai,&lt;/p&gt;
&lt;p&gt;yes the SharePoint object model allows to do it. &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3283056</link><pubDate>Fri, 25 Sep 2009 00:07:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3283056</guid><dc:creator>Isai</dc:creator><description>&lt;p&gt;Hello Stefan,&lt;/p&gt;
&lt;p&gt;thank you for your information. I was able to create the website and now I am doing the part of the import. Every time that I run my code I get the following SPException:&lt;/p&gt;
&lt;p&gt;&amp;quot;The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.&amp;quot;&lt;/p&gt;
&lt;p&gt;The code I have to import the site to the newly created site is:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private void ImportSite(string newlyCreatedSiteURL)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPSecurity.RunWithElevatedPrivileges(delegate()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Import from the Export File&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPImportSettings importSettings = new SPImportSettings();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importSettings.SiteUrl = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://phl-sptdev1&amp;quot;;"&gt;http://phl-sptdev1&amp;quot;;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importSettings.WebUrl = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://phl-sptdev1/Projects/Isai-Import-Test&amp;quot;;"&gt;http://phl-sptdev1/Projects/Isai-Import-Test&amp;quot;;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importSettings.FileLocation = @&amp;quot;c:\export&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importSettings.FileCompression = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importSettings.RetainObjectIdentity = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPImport import = new SPImport(importSettings);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import.Run();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/p&gt;
&lt;p&gt;As usual I would appreciate any light why I am getting this exception or where to head for information about this.&lt;/p&gt;
&lt;p&gt;Thanks and have a good day&lt;/p&gt;
&lt;p&gt;Isai&lt;/p&gt;</description></item><item><title>re: Deep Dive into the SharePoint Content Deployment and Migration API - Part 3</title><link>http://blogs.technet.com/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-3.aspx#3283076</link><pubDate>Fri, 25 Sep 2009 01:08:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3283076</guid><dc:creator>Stefan_Gossner</dc:creator><description>&lt;p&gt;Hi Isai,&lt;/p&gt;
&lt;p&gt;sounds as if you are doing this using a web application.&lt;/p&gt;
&lt;p&gt;If this is a web application you need to ensure that the import is done with a POST request and not a GET request.&lt;/p&gt;
&lt;p&gt;Also ensure that the user account used is a site collection administrator.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;
</description></item></channel></rss>