Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sonja 133 posts 621 karma points
    Aug 14, 2022 @ 13:08
    Sonja
    0

    Can't import document type

    hi,

    I'm trying to import a document type from some older version (7.10) to 10.0. I'm getting an error An error occurred Object reference not set to an instance of an object.

    Exception Details System.NullReferenceException, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Object reference not set to an instance of an object.

    Stacktrace: t Umbraco.Cms.Infrastructure.Packaging.PackageDataInstallation.CreateContentTypeFromXml[T](XElement documentType, IReadOnlyDictionary2 importedContentTypes, IContentTypeBaseService1 service) at Umbraco.Cms.Infrastructure.Packaging.PackageDataInstallation.ImportDocumentTypes[T](IReadOnlyCollection1 unsortedDocumentTypes, Boolean importStructure, Int32 userId, IContentTypeBaseService1 service, IEnumerable`1& entityContainersInstalled) at Umbraco.Cms.Infrastructure.Packaging.PackageDataInstallation.ImportDocumentType(XElement docTypeElement, Int32 userId) at Umbraco.Cms.Web.BackOffice.Controllers.ContentTypeController.Import(String file) at lambdamethod9785(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Awaited|260(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

    Please help

  • Raj 24 posts 94 karma points
    Aug 18, 2022 @ 13:50
    Raj
    0

    Hellos Sonja,

    Were you able to figure out the issue? I am getting the same error. Thanks!

    Regards

Please Sign in or register to post replies

Write your reply to:

Draft