Hi,
A customer is currently building bundles in their PIM (Inriver) in a structure where bundles may contain other bundles (and/or other articles).
I tried creating a multi-level bundle in BO but got a Validation error and the following error log so I am assuming that it is not supported:
Validation error for Variant(SystemId: 7c8db222-db84-4c6e-b50e-1e37629d8613, Id: 637504706367497707-13235034_M), BundleItems: 'Produkten '637504706367497707-03629055' innehåller paketartiklar och kan därför inte själv ingå i ett paket.'.
Litium.Validations.ValidationException: Validation error for Variant(SystemId: 7c8db222-db84-4c6e-b50e-1e37629d8613, Id: 637504706367497707-13235034_M), BundleItems: 'Produkten '637504706367497707-03629055' innehåller paketartiklar och kan därför inte själv ingå i ett paket.'.
vid Litium.Validations.ValidationServiceExtensions.ThrowExceptionIfError[T](ValidationService service, T entity, ValidationMode validationMode)
vid Litium.Application.Data.Batching.BatchDataImpl.Execute[T](T entity, ValidationMode validationMode)
vid Litium.Web.Administration.WebApi.Products.Controllers.ProductsController.Put(Guid systemId, ProductModel model, String tab)
vid lambda_method(Closure , Object , Object[] )
vid System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
vid System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
Is there a way to handle this in Litium, or would it be best to flatten the bundles before importing to Litium? Any other ideas on how to do this would be appreciated!
I’d also like to make sure that there is no limitations on how we can create/update bundles through code, or if there is anything specific that we need to consider when doing so?
Litium version: 7.6.1