Migration Tool - Pages not migrating
Hello,
When trying to use the migration tool to move from 3.7sp4 to 4.0sp1 I'm not able to export the pages.
It correctly copied over:
Users (mostly, left out a few, no biggie)
Themes
Templates
Libraries
It did not export correctly
News (Only migrated body content, left off Title, categories, etc)
Pages (Migrated nothing)
For News, I wrote my own Export control in 3.7sp and that works ok.
But for pages, I'm stumped - in the migration .htm file
Error migrating page About Ombudsman:
No active transaction.
at DynamicModule.ns.Wrapped_OpenAccessPageProvider_4cec494ea95649cebce73d4794a12e47.CreatePageData(Guid id) at Telerik.Sitefinity.Modules.Pages.PageManager.CreatePageData(Guid id) at Migration.Classes.MigrationPages.ImportPage(MigrationPageGroup pageGroupContent) in C:\Development\Work\Sitefinity\SitefinityMigrationTool\Sitefinity4.0\Classes\MigrationPages.cs:line 157 at Migration.MigrationModule.ImportPages() in C:\Development\Work\Sitefinity\SitefinityMigrationTool\Sitefinity4.0\MigrationModule.cs:line 1052
You are trying to access item that no longer exists. The most probable reason is that it has been deleted by another user.
at DynamicModule.ns.Wrapped_OpenAccessPageProvider_4cec494ea95649cebce73d4794a12e47.GetPageNode(Guid id) at Telerik.Sitefinity.Modules.Pages.PageManager.GetPageNode(Guid id) at Migration.Classes.MigrationPages.ImportPage(MigrationPageGroup pageGroupContent) in C:\Development\Work\Sitefinity\SitefinityMigrationTool\Sitefinity4.0\Classes\MigrationPages.cs:line 102 at Migration.MigrationModule.ImportPages() in C:\Development\Work\Sitefinity\SitefinityMigrationTool\Sitefinity4.0\MigrationModule.cs:line 1052
Hello Brandon,
I'm aware of these issues, they happened sometimes ago, but I wasn't able to track them down. Currently I'm working on an updated version of the migration tool that will support SF 4.1 where these problems will be resolved. I hope to upload the new version by the end of Friday next week.
All the best,One thing I noticed on pages - the size of the Keywords and Summary/Description fields have changed. If possible, extend the size of those fields to the old size - the current (255 / 500) truncates my pages.
Additionally, I've noticed if the pages are in Page Groups they seem to have more problems. I've converted 10 sites and of those only 2 had pages convert over, maybe half had the templates convert, the rest I was going to do by hand. I will wait on that and I look forward to your new migration tools release.
Thanks,
Brandon
Hello Brandon,
I fixed an issue with the group pages - I'm not sure when it happens but at some point OpenAccess throws some arcane exception about a missing GUID. You can paste the following code in MigrationPages.cs after this conditional check:
if (pageContent.PageType == "Group")if (isMultiLanguage) MigrationLogger.AppendLogMessage(String.Format("Importing group page \"<b>0</b>\", language <b>1</b>.", name, cultureInfo.TwoLetterISOLanguageName.ToUpperInvariant()));else MigrationLogger.AppendLogMessage(String.Format("Importing group page \"<b>0</b>\".", name));MigrationLogger.AppendNewLine();if (!isFirstLanguage) id = Guid.NewGuid();using (var fluent = App.WorkWith()) var pageFacade = fluent.Page().CreateNewPageGroup(id).Done(); pageFacade.MakeChildOf(parent.Id).SaveChanges(); pageFacade.Do(p => p.DateCreated = pageContent.DateCreated; p.LastModified = pageContent.DateModified; p.Owner = MigrationUsers.GetUserByUsername(pageContent.Owner); p.Ordinal = pageContent.Ordinal; p.ShowInNavigation = pageContent.Navigable; if (isMultiLanguage) p.Description[cultureInfo] = pageContent.Description; p.Title[cultureInfo] = name; p.UrlName[cultureInfo] = urlName; else p.Description = pageContent.Description; p.Title = name; p.UrlName = urlName; );