3

Closed

Can't import/export taxonomies

description

When i trying to import and them export taxonomies (in my case - Theme taxonomy with couple terms) i get nothing...
In error log i get the following errors:
2013-03-15 09:28:38,688 [6] Orchard.Recipes.Services.RecipeStepExecutor - Recipe execution a4c3e26e6acd4fe39072112e587b97f1 was cancelled because a step failed to execute
System.ArgumentException: Unknown content type for /alias=theme
   at Orchard.ContentManagement.ImportContentSession.Get(String id, String contentTypeHint) in f:\AzureWeb\Scicentr17\src\Orchard\ContentManagement\ImportContentSession.cs:line 88
   at Orchard.ContentManagement.Handlers.ImportContentContext.GetItemFromSession(String id) in f:\AzureWeb\Scicentr17\src\Orchard\ContentManagement\Handlers\ImportContentContext.cs:line 46
   at Orchard.Core.Common.Drivers.CommonPartDriver.Importing(CommonPart part, ImportContentContext context) in f:\AzureWeb\Scicentr17\src\Orchard.Web\Core\Common\Drivers\CommonPartDriver.cs:line 94
   at Orchard.ContentManagement.Drivers.ContentPartDriver`1.Orchard.ContentManagement.Drivers.IContentPartDriver.Importing(ImportContentContext context) in f:\AzureWeb\Scicentr17\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 92
   at Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.Importing(ImportContentContext context) in f:\AzureWeb\Scicentr17\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 71
   at Orchard.ContentManagement.DefaultContentManager.Import(XElement element, ImportContentSession importContentSession) in f:\AzureWeb\Scicentr17\src\Orchard\ContentManagement\DefaultContentManager.cs:line 617
   at Orchard.Recipes.RecipeHandlers.DataRecipeHandler.ExecuteRecipeStep(RecipeContext recipeContext) in f:\AzureWeb\Scicentr17\src\Orchard.Web\Modules\Orchard.Recipes\RecipeHandlers\DataRecipeHandler.cs:line 45
   at Orchard.Recipes.Services.RecipeStepExecutor.ExecuteNextStep(String executionId) in f:\AzureWeb\Scicentr17\src\Orchard.Web\Modules\Orchard.Recipes\Services\RecipeStepExecutor.cs:line 35
2013-03-15 09:28:38,706 [6] Orchard.Exceptions.DefaultExceptionPolicy - An unexpected exception was caught
Orchard.OrchardCoreException: Recipe execution with id a4c3e26e6acd4fe39072112e587b97f1 was cancelled because the "Data" step failed to execute. The following exception was thrown: Unknown content type for /alias=theme. Refer to the recipe journal for more information.
   at Orchard.Recipes.Services.RecipeStepExecutor.ExecuteNextStep(String executionId) in f:\AzureWeb\Scicentr17\src\Orchard.Web\Modules\Orchard.Recipes\Services\RecipeStepExecutor.cs:line 55
   at Orchard.Recipes.Services.RecipeScheduler.ExecuteWork(String executionId) in f:\AzureWeb\Scicentr17\src\Orchard.Web\Modules\Orchard.Recipes\Services\RecipeScheduler.cs:line 38
   at Orchard.Events.DelegateHelper.<>c__DisplayClass2b`2.<BuildAction>b__2a(Object target, Object[] p) in f:\AzureWeb\Scicentr17\src\Orchard\Events\DelegateHelper.cs:line 116
   at Orchard.Events.DefaultOrchardEventBus.TryInvokeMethod(IEventHandler eventHandler, Type interfaceType, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) in f:\AzureWeb\Scicentr17\src\Orchard\Events\DefaultOrchardEventBus.cs:line 81
   at Orchard.Events.DefaultOrchardEventBus.TryInvoke(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) in f:\AzureWeb\Scicentr17\src\Orchard\Events\DefaultOrchardEventBus.cs:line 67
   at Orchard.Events.DefaultOrchardEventBus.TryNotifyHandler(IEventHandler eventHandler, String messageName, String interfaceName, String methodName, IDictionary`2 eventData, IEnumerable& returnValue) in f:\AzureWeb\Scicentr17\src\Orchard\Events\DefaultOrchardEventBus.cs:line 53
Tried this with clean install 1.6 and latest 1.x - tried latest Contrib.Taxonomies and Orchard.Taxonomies in core 1.x ... the result is the same
Closed Jul 10, 2013 at 11:41 PM by sebastienros

comments

agriffard wrote Jul 2, 2013 at 10:19 AM

You mean Export then Import to another instance ? (Your Exception log seems to be on Importing step)

Is Taxonomies enabled on the Orchard because the error seems to be that the Content Type is not found ?

sebastienros wrote Jul 10, 2013 at 11:42 PM

You need to export the data and the metadata, not only for the TAxonomy content type but also for the type which has been created dynamically for each taxonomy intance.

For instance if you create a Taxonomy named Colors then there should be a type with the same name.