U4-2024 - Umbraco 6.0.3 : Error while importing Document Type

Created by abhijeet waychal 29 Mar 2013, 14:49:22 Updated by Sebastiaan Janssen 15 Apr 2013, 12:47:04

Is duplicated by: U4-2114

Hi,

I was trying to import one of document type into version 6.0.3 from version 4.9.0.

I am getting below error while importing Document Type (.udt file) into Umbraco Version 6.0.3.

I even tried exporting Document type from 6.0.3 itself and then importing back into it. It is giving same error.

Kindly request you to check on this.

======================================================================================================================== Error:

"Data at the root level is invalid. Line 1, position 1.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[XmlException: Data at the root level is invalid. Line 1, position 1.]

System.Xml.XmlTextReaderImpl.Throw(Exception e) +69

System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +116

System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() +5583567

System.Xml.XmlTextReaderImpl.ParseDocumentContent() +193

System.Xml.XmlTextReaderImpl.Read() +215

System.Xml.XmlReader.MoveToContent() +70

System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options) +27

System.Xml.Linq.XElement.Parse(String text, LoadOptions options) +83

umbraco.presentation.umbraco.dialogs.importDocumentType.import_Click(Object sender, EventArgs e) +29

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9553178

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +103

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034

Comments

Morten Christensen 29 Mar 2013, 14:58:01

As a workaround (while we investigate this) you should be able to create a package with your document types and install it. You should be able to install a package in 6.0.3 that was created in 4.9 without problems.


Sebastiaan Janssen 29 Mar 2013, 16:06:11

Fixed in changeset ba35ab6d94b1 Which lead to a feature request to be able to export nested document types as well as import them: U4-2025


Priority: Normal

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 6.0.4

Sprint:

Story Points:

Cycle: