Try our conversational search powered by Generative AI!

smithsson68@gmail.com
Apr 11, 2012
  10101
(8 votes)

Problems with XForms when upgrading to CMS 6 R2

It seems that many people have had problems when upgrading an EPiServer CMS site to 6 R2 with the last part of the upgrade script.

What this tries to do is read all the XForm definitions from the database, perform a html decode on the form name, and then save the definition back to the database. Why this has to be done is not relevant to this post.

What is relevant is that it often doesn’t work for various reasons. This part of the script is run in a separate transaction after the main upgrade transaction has completed. The reason for this is that it has to run in a separate application domain in the context of the website.

If your site doesn’t use XForms or if you know that there aren’t any forms that have names that required html encoding then you can just ignore this error. As mentioned above, the main upgrade has been committed and your site should be ready to go.

If however you do need to run this part of the script and it keeps failing then there is a simple workaround.

Here you will find an ASPX file which contains the same code as the script executes. Place it in your site, execute it (i.e. browse to it’s Url) and it will do the business. When it’s finished it will tell you how many XForms it’s upgraded. If for some reason it should fail or get interrupted, it is safe to run again as it will only upgrade those XForms that need it.

When all is done you can just remove the ASPX from the site.

Voilà

Apr 11, 2012

Comments

Apr 11, 2012 04:02 PM

Great stuff Paul, now we can upgrade databases without having to use EPiServer Deployment Centre - if you know where the SQL upgrade scripts are of course ;)

Dec 9, 2013 12:23 PM

Hello Paul,

The link you provided for your script does not work. Can you please update the link?

Thank you!

Jun 13, 2014 11:38 AM

Please update the link

Jun 17, 2014 02:50 PM

Hi
Could you please update the link?

thanks!

//Pawel

Nitin Walawalkar
Nitin Walawalkar Jul 11, 2014 01:46 PM

I am unable to download the aspx page from the link

Please login to comment.
Latest blogs
Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024