Copied to clipboard

Flag this post as spam?

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


  • Jay 368 posts 563 karma points
    1 day ago
    Jay
    0

    Can't create a package in Umbraco due to Media folder

    I've been trying to create an Umbraco Package from the Packages tab within umbraco on V10 but got the below error when I've selected a Media folder to pull through all the images.

    If I ignore selecting the media folder or even select individual media instead, everything seems to work accordingly.

    Any idea?

    Failed to create package Value cannot be null. (Parameter 'value')

    Exception Details System.ArgumentNullException, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Value cannot be null. (Parameter 'value')

    Stacktrace at System.Xml.Linq.XAttribute..ctor(XName name, Object value) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.CreatedPackageSchemaRepository.<>cDisplayClass340.OnSerializedMedia|0(IMedia media, XElement xmlMedia) at Umbraco.Cms.Core.Services.EntityXmlSerializer.Serialize(IMedia media, Boolean withDescendants, Action2 onMediaItemSerialized) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.CreatedPackageSchemaRepository.<>c__DisplayClass34_0.<PackageMedia>b__1(IMedia media) at System.Linq.Enumerable.SelectArrayIterator2.MoveNext() at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.CreatedPackageSchemaRepository.PackageMedia(PackageDefinition definition, XElement root) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.CreatedPackageSchemaRepository.ExportPackage(PackageDefinition definition) at Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement.CreatedPackageSchemaRepository.SavePackage(PackageDefinition definition) at Umbraco.Cms.Web.BackOffice.Controllers.PackageController.PostSavePackage(PackageDefinition model) at lambdamethod5388(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.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.

Please Sign in or register to post replies

Write your reply to:

Draft