无法使用sxa广告素材交换将.css .scss等新文件导入sitecore?

时间:2017-11-23 10:24:09

标签: sitecore sitecore-sxa

我已使用主菜单功能区上的导出按钮导出网站主题。我添加了新的sass组件并运行gulp watch-component脚本,它将... / sass / styles / component-xxx.scss文件转换为... / styles / component-xxx.css文件。我已将新文件引用添加到index.html文件中,主题已成功应用于本地页面。

我已经压缩了本地更改并尝试将其导入Sitecore。它抛出了以下错误。

An item name cannot contain any of the following characters: \/:?"<>|[]. (controlled by the setting InvalidItemNameChars)
   at Sitecore.Data.Items.ItemUtil.AssertItemName(Item destinationItem, String name)
   at Sitecore.Data.Items.Item.Add(String name, TemplateID templateID)
   at Sitecore.Data.DefaultDatabase.CreateItemPath(String path, TemplateItem folderTemplate, TemplateItem itemTemplate)
   at Sitecore.XA.Feature.CreativeExchange.Pipelines.Import.AssetProcessing.ContainerValidation.Process(AssetProcessingArgs args)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.XA.Feature.CreativeExchange.Pipelines.Import.Import.AssetEnumeration.ProcessAsset(IImportEntry entry, ImportArgs importArgs)
   at Sitecore.ContentSearch.Utilities.EnumerableExtensions.ForEach[T](IEnumerable`1 collection, Action`1 action)
   at (Object , Object[] )
   at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
   at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)
   at Sitecore.XA.Feature.CreativeExchange.Jobs.Import.ImportBackgroundJob.Run(GetImportContextArgs args)

要解决此错误,我已在Sitecore的主题相应文件夹下手动创建了component-xxx scss和css文件。我再次导出了主题zip文件并应用了我的更改并将该文件导入Sitecore。这次成功导入。

我们无法通过广告素材交换添加新文件,这是sxa的预期行为吗?

0 个答案:

没有答案
相关问题