Friday, October 22, 2010

Break the variation in Sharepoint

Most of the Sharepoint Developers/Content Editors facing below problem in Variation feature of MOSS.
Publishing a page in the variation source site overwrites all contents in the target site

If below variation settings are ON.

  • Automatically create site and page variations

  • Recreate a new target page when the source page is republished.

  • Update Web Part changes to target pages when variation source page update is propagated.


Case is like this,

First time when we create page XYZ in source variation(English) this page will automatically get created on target variation site(French). Then content editor add some content to this page and publish it. That contents will also get reflected to target page but that is not in French because Sharepoint will not do the task of content translation. This time content editor edit content on French site and publish it.

Now everything is working fine till new change.

After some days there is one minor change in English site. Hence content editor do that change and publish it. Now disaster came into his life.

All the contents of French page get overwritten by English page.

Now we will talk about the workarounds.

1: Temporary solution
Go to the target page version history and restore current published major version.

2: Permanent solution
Attempt this once page created on first time. Delete target(French) page when it automatically created. Create new page with same name in target(French). This will break variation link between source and variation page. Add/Update the content and publish it.

By doing this you will see an error in Variation log

An error occurred during page variation creation. A page already exists at the target location:

Don't worry...! This error is coming because we breaked variation link. This will happen on every update on source page.

Cheers! Now enjoy content editing.