This project is read-only.

Exporting Data from 1.3 and importing Into 1.4

Topics: Administration
Apr 17, 2012 at 5:41 PM

Hi guys,

We have a site that is still on 1.3, I have exported the data to an xml file.

So the old data looks like


 <Page Id="/Route.Slug=terms\/" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2011-12-19T10:38:11Z" PublishedUtc="2011-12-19T10:38:11Z" ModifiedUtc="2011-12-19T10:38:11Z" />
      <RoutePart Title="Terms &amp; Conditions" Slug="terms/" Path="terms/" />
      <TagsPart Tags="" />
      <BodyPart Text="html data" />

and to compare it to the new one


    <Page Id="/alias=terms\/" Status="Published">
      <CommonPart Owner="/User.UserName=admin" CreatedUtc="2012-04-17T14:48:47Z" PublishedUtc="2012-04-17T14:50:00Z" ModifiedUtc="2012-04-17T14:50:00Z" />
      <AutoroutePart Alias="terms/" UseCustomPattern="false" />
      <TagsPart Tags="" />
      <BodyPart Text="html data" />
      <TitlePart Title="Terms" />

So the AutoRoutePart has been added and the RoutePart has been removed and the data migrated, I've tried adding the Route content part back to the Page Content Type and importing and running the Migration module, but to no avail. 


Any help would be great!

Apr 17, 2012 at 8:32 PM

Are you trying this on your development environment? Your production site is still on 1.3 right? Did you follow the migration instructions? Why did you try to add RoutePart and import the old xml file, and re-migrate? It would be better to transform the export from 1.3 to match the 1.4 one and then import that. If you have access to SQL server of the 1.3 production instance you can use sql "for xml" queries to generate the recipes; it works quite well, i use this method a lot to import data from existing apps into a new Orchard app. 

Apr 24, 2012 at 2:32 PM

Cheers TheMonarch, so what I did was just upgrade the 1.3 site, then exported the data and then uploaded to the 1.4 site. So now i have the data with a few broken Alias routes but that's ok for now :)