Greetings all,
Go easy on me, it's my first post.
So a little background. Looking at doing a migration of content and such
from one MOSS install to another as part of an initial release. Both
servers are running MOSS 2007, service packed and good to go.
For this migration, I'm using:
stsadm -o export -url http://moss -filename
c:\temp\bulkexport.cab -overwrite -versions 4 -includeusersecurity -cabsize
300
and the corresponding import after setup at the other end. For this I get no
errors and just one warning related to a Web Part issue I'm currently
investigating (likely not related to the below issue, as it's a single Web
Part).
I've succeeded in testing the migration with only a few small issues.
1. We're getting an error on some pages similar to the following:
Unable to display this Web Part. To troubleshoot the problem, open this Web
page in a Windows SharePoint Services-compatible HTML editor such as
Microsoft Office SharePoint Designer. If the problem persists, contact your
Web server administrator.
This is because some of the data lists are using XSLT transforms, therefore
are using webparts. The code for these is similar to the following (it's a
little way down, apologies in advance, not easy to read). The problem is,
that when these pages are migrated, the GUIDs have to be manually
"realigned" in Sharepoint Designer on the destination MOSS server as they
don't match up correctly to the GUIDs of the lists. From the looks of this
url:
http://webborg.blogspot.com/2007/08/resolving-to-display-this-web-part.html
this seems to be a bug with Sharepoint Designer, but what I'm unsure of is
how this is still a problem after migration. Only thing I can suggest (I'm
yet to test this theory out) is that it's possible from reading that the
GUIDs aren't aligned because of the missing braces? I'm going to do some
more investigation into this, but wondering if anyone had ideas. Note the
example below is *after* the GUIDs have been changed and enclosed with {}.
The fix stated on this blog post definately works in this case however.
<WebPartPages:WebPartZone runat="server" AllowPersonalization="false"
FrameType="TitleBarOnly" ID="TopZone"
Title="<%$Resources:sps,LayoutPageZone_TopZone%>" Orientation="Vertical"
QuickAdd-GroupNames="Default"
QuickAdd-ShowListsAndLibraries="false"><ZoneTemplate>
<WebPartPages:DataFormWebPart runat="server"
SuppressWebPartChrome="False" Description="" PartImageSmall=""
DataSourceID="" MissingAssembly="Cannot import this Web Part."
FrameType="Default" ConnectionID="00000000-0000-0000-0000-000000000000"
DetailLink="/subdir/Lists/Archive/AllItems.aspx"
ExportControlledProperties="True" IsVisible="True" AllowRemove="True"
AllowEdit="True" ID="g_4008a0e8_872c_4b1c_976e_b17e55de1c40" Dir="Default"
FrameState="Normal" ViewContentTypeId="" AllowConnect="True" PageSize="-1"
AllowMinimize="True" IsIncludedFilter=""
TitleUrl="/subdir/Lists/Archive/AllItems.aspx" ShowWithSampleData="False"
HelpMode="Modeless" ExportMode="All" ViewFlag="0" Title="Recent Items"
HelpLink="" AllowHide="True" AllowZoneChange="True" PartOrder="1"
UseSQLDataSourcePaging="True" PartImageLarge="" IsIncluded="True"
NoDefaultStyle="TRUE" __MarkupType="vsattributemarkup"
__WebPartId="{4008A0E8-872C-4B1C-976E-B17E55DE1C40}"
__AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataSources>
<SharePoint:SPDataSource runat="server" DataSourceMode="List"
SelectCommand="<View><Query><OrderBy><FieldRef
Name="Category"
Ascending="TRUE"/></OrderBy></Query></View>"
UseInternalName="True"
ID="Panui_x0020_Archive3"><SelectParameters><WebPartPages:DataFormParameter
ParameterKey="ListID" PropertyName="ParameterValues"
DefaultValue="{3384D330-C313-47EE-B61D-F2E6609A677B}"
Name="ListID"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter
ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/subdir/"
Name="WebURL"></WebPartPages:DataFormParameter>
</SelectParameters><UpdateParameters><WebPartPages:DataFormParameter
ParameterKey="ListID" PropertyName="ParameterValues"
DefaultValue="{3384D330-C313-47EE-B61D-F2E6609A677B}"
Name="ListID"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter
ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/subdir/"
Name="WebURL"></WebPartPages:DataFormParameter>
</UpdateParameters><InsertParameters><WebPartPages:DataFormParameter
ParameterKey="ListID" PropertyName="ParameterValues"
DefaultValue="{3384D330-C313-47EE-B61D-F2E6609A677B}"
Name="ListID"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter
ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/subdir/"
Name="WebURL"></WebPartPages:DataFormParameter>
</InsertParameters><DeleteParameters><WebPartPages:DataFormParameter
ParameterKey="ListID" PropertyName="ParameterValues"
DefaultValue="{3384D330-C313-47EE-B61D-F2E6609A677B}"
Name="ListID"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter
ParameterKey="WebURL" PropertyName="ParameterValues" DefaultValue="/subdir/"
Name="WebURL"></WebPartPages:DataFormParameter>
</DeleteParameters>
</SharePoint:SPDataSource>
</DataSources>
2. After migration, hidden state of navigation items is not persisted. This
specific site has two levels of nav, so this is a bit of a pain. To fix
this, got to go into
Site Actions -> Site Settings -> Modify Navigation
for each nav area and hide the nav items as appropriate. Is there a better
way to go about migrating navigation items, so that their state (hidden or
not) is preserved? Am I missing something on export that would correct this
issue?
Thanks in advance, and hope I've explained everything legibly.
Cheers,
Gavin Jones
Developer
Enlighten Designs