问题标签 [impex]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1629 浏览

hybris - 如何通过 impex 将分类类别分配给 Hybris 中的产品

如何通过 impex 为 Hybris 中的产品分配分类类

0 投票
1 回答
707 浏览

spring-mvc - Hybris 无法使用代码 00000BLQ 创建 cronjob(错误 hybrisHTTP34 )

大家好,我使用 impex 创建了一个 cronjob,下面是 impex 查询

INSERT_UPDATE ServicelayerJob;code[unique=true];springId ;bookstoreEmailJob;bookstoreEmailJob

INSERT_UPDATE CronJob;code[unique=true];job(code);singleExecutable;sessionLanguage(isocode) ;bookstoreEmailCronJob;bookstoreEmailJob;false;en

INSERT_UPDATE 触发器;cronjob(code)[unique=true];cronExpression ;bookstoreEmailCronJob; 0 0 0 * * ?

现在,当我从 hac 运行更新时,我收到了这些错误,请指导我如何解决这个错误。下面是错误的详细日志。

信息 | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.576 | [1;31mERROR [hybrisHTTP34] [DefaultImportService] 导入导致错误,有关详细信息,请参阅代码=00000ATY 的 cronjob 日志

信息 | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.576 | [m[1;31mERROR [hybrisHTTP34] [DefaultSetupImpexService] 正在导入 [/bookstorecore/import/common/essential-data.impex]... 失败信息 | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.576 | [m[32mINFO [hybrisHTTP34] [DefaultSetupImpexService] 正在导入 [/bookstorecore/import/common/essential-data_en.impex] ...

信息 | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.676 | [m[32mINFO [hybrisHTTP34] [DefaultImportService] 使用代码 = 00000ATZ INFO | 使用 cronjob 开始同步导入 虚拟机 1 | 主要 | 2017/10/20 17:32:11.676 | [m[32mINFO [hybrisHTTP34] (00000ATZ) [ImpExImportJob] 启动 ImpEx cronjob "ImpEx-Import" INFO | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.776 | [m[32mINFO [hybrisHTTP34] (00000ATZ) [Importer] 在 0d 00h:00m:00s:101ms 完成 1 次传递 - 已处理:54,没有转储行(最后一次传递 0)虚拟机 1 | 主要 | 2017/10/20 17:32:11.776 | [m[32mINFO [hybrisHTTP34] [DefaultImportService] 导入成功(使用代码=00000ATZ 的 cronjob)INFO | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.776 | [m[32mINFO [hybrisHTTP34] [DefaultSetupImpexService] 正在导入 [/bookstorecore/import/common/essential-data_de.impex] ... 信息 | 虚拟机 1 | 主要 | 2017/10/20 17:32:11.876 | [m[32mINFO [hybrisHTTP34] [DefaultImportService] 使用代码 = 00000AU0 的 cronjob 开始同步导入

0 投票
2 回答
3059 浏览

java - 我可以在 hybris 中从 java 实现 impex

我想在 hybris 中从 java 创建一个 impex,因为我的要求是动态添加 featureproperty,而不是从 HMC 中添加。

我从来没有从代码中完成过 impex,我在互联网上也没有看到任何示例可供参考,如果 impex 不能从 java 中完成,那么让我动态化的最佳选择是什么。我是 hybris 的新手。任何参考或提示都对我有用。请帮忙,谢谢

0 投票
2 回答
1199 浏览

import - Impex 导入导出错误以批量模式保存批次不明确唯一键

当我从一个环境导出数据并将其导入另一个环境时,我看到一个模棱两可的唯一键错误。我确实检查了歧义,但没有发现任何会导致这种违规行为。

我收到以下错误(有几个相同的错误,但只发布 1):

**insert_update ABClCMSParagraphComponent;&Item;catalogVersion(catalog(id),version)[unique=true,allownull=true];content[lang=en];creationtime[forceWrite=true,dateformat=dd.MM.yyyy hh:mm: ss];modifiedtime[dateformat=dd.MM.yyyy hh:mm:ss];name;owner(&Item)[allownull=true,forceWrite=true];uid[unique=true,allownull=true] ABClCMSParagraphComponent,8796158592060,, ,批量模式下保存批次出错[原因:

模型 ABClCMSParagraphComponentModel (8796158657596@1) 的唯一键 {catalogVersion=CatalogVersionModel (8796093186649@41), uid=DMparaleftdescrip} - 使用相同的键找到 2 个项目]。将尝试逐行模式。,

模型 ABClCMSParagraphComponentModel (8796158592060@1) 的唯一键 {catalogVersion=CatalogVersionModel (8796093186649@41), uid=comp_000003UX} - 使用相同的键找到 2 个项目
;Item111;abcContentCatalog:Staged;"< p >Hello < a href ="">世界</a></p>";12.09.2017 07:04:12;18.09.2017 09:38:39;Feed文章-化妆;;comp_000003UX

它显示模棱两可的错误的原因是什么?

0 投票
1 回答
2385 浏览

hybris - 引用 vm 文件时出现 Impex 错误

我正在尝试为电子邮件页面创建 impex。

$contentCatalog=ShopzoneContentCatalog $contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]

$jarResourceCms=jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view $emailResource=jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore /导入/电子邮件

$emailPackageName=com.shopzone.facades.process.email.context

电子邮件速度模板

INSERT_UPDATE RendererTemplate;code[unique=true];description[lang=en];templateScript[lang=en,translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator];contextClass;rendererType(code)[default=' velocity'] ;appointment_notification_email_subject;"预约通知邮件主题";$emailResource/appointment_notification_email_subject.vm;$emailPackageName.AppointmentEmailContext; ;appointment_notification_email_body;"预约通知邮件正文";$emailResource/appointment_notification_email_body.vm;$emailPackageName.AppointmentEmailContext;

电子邮件页面模板

INSERT_UPDATE EmailPageTemplate;$contentCV[unique=true];uid[unique=true];name;active;frontendTemplateName;subject(code);htmlTemplate(code);restrictedPageTypes(code) ;;appointmentNotificationEmailTemplate;约会通知电子邮件模板;true;appointmentNotificationEmailTemplate ;appointment_notification_email_subject;appointment_notification_email_body;EmailPage

CMS Cockpit 页面编辑模板

更新 EmailPageTemplate;$contentCV[unique=true];uid[unique=true];velocityTemplate[translator=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator] ;;appointmentNotificationEmailTemplate;$jarResourceCms/structure_appointmentNotificationEmailTemplate.vm

媒体

insert_update Media;code[unique=true];$contentCV;url;mime[default='image/jpg'];altText;szEmailSiteLogoMedia;;/_ui/responsive/common/images/site_logo.png;;Shopzone

CMS 图像组件

INSERT_UPDATE CMSImageComponent;$contentCV[unique=true];uid[unique=true];name;media(code, $contentCV) ;;szEmailSiteLogoImage;电子邮件站点徽标图像;szEmailSiteLogoMedia

内容槽

更新 ContentSlot;$contentCV[unique=true];uid[unique=true];cmsComponents(uid,$contentCV) ;;szEmailSiteLogoSlot;szEmailSiteLogoImage

将内容槽绑定到电子邮件页面模板

INSERT_UPDATE Con​​tentSlotForTemplate;$contentCV[unique=true];uid[unique=true];position[unique=true];pageTemplate(uid,$contentCV)[unique=true];contentSlot(uid,$contentCV)[unique=true] ;allowOverwrite ;;siteLogo-appointmentNotificationEmailTemplate;szSiteLogo;appointmentNotificationEmailTemplate;szEmailSiteLogoSlot;true

电子邮件页面

INSERT_UPDATE EmailPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$contentCV);defaultPage;approvalStatus(code)[default='approved'];fromEmail[lang=en];fromName [lang=en] ;;appointmentNotificationEmailPage;预约通知电子邮件;appointmentNotificationEmailTemplate;true;;estore@shopzone.com;客户服务团队

错误 :

/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_body.vm;com.shopzone.facades.process.email.context.AppointmentEmailContext;,8796125868959,,, 第 3 列:无法解析属性 'templateScript' 的值 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm',第 3 列:无法解析值'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm' 用于属性 'templateScript';appointment_notification_email_subject;约会通知电子邮件主题;jar:com.shopzone.core.setup。 CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/emails/appointment_notification_email_subject.vm;com.shopzone.facades。

更新 EmailPageTemplate;catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged][unique=true];uid[unique=true];velocityTemplate[翻译器=de.hybris.platform.commerceservices.impex.impl.FileLoaderValueTranslator] ,8796420736052,,, 第 3 列:无法解析值 'jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/ cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm' 属性“velocityTemplate”,第 3 列:无法解析值“jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view /structure_appointmentNotificationEmailTemplate.vm' 用于属性“velocityTemplate”;;约会通知电子邮件模板;jar:com.shopzone.core.setup.CoreSystemSetup&/shopzonecore/resources/shopzonecore/import/cockpits/cmscockpit/structure-view/structure_appointmentNotificationEmailTemplate.vm

更新 ContentSlot;catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged][unique=true];uid[unique=true];cmsComponents( uid,catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged]) ,,,没有找到要更新的现有项目;;szEmailSiteLogoSlot;szEmailSiteLogoImage

INSERT_UPDATE Con​​tentSlotForTemplate;catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged][unique=true];uid[unique=true];position[ unique=true];pageTemplate(uid,catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged])[unique=true];contentSlot( uid,catalogVersion(CatalogVersion.catalog(Catalog.id[default=ShopzoneContentCatalog]),CatalogVersion.version[default=Staged])[default=ShopzoneContentCatalog:Staged])[unique=true];allowOverwrite ,,, 查找现有项目时出错: column='contentSlot' value='szEmailSiteLogoSlot',第 5 列:无法解析 szEmailSiteLogoSlot 的项目;;siteLogo-appointmentNotificationEmailTemplate;szSiteLogo;appointmentNotificationEmailTemplate;szEmailSiteLogoSlot;true

2017 年 2 月 11 日 15:35:02:错误:无法解析更多行...正在中止进一步的传递(在传递 2 处)。终于导入不了5行了!2017 年 2 月 11 日 15:35:02:错误:无法解析更多行...正在中止进一步的传递(在传递 2 处)。终于导入不了5行了!

0 投票
2 回答
962 浏览

hybris - 创建多个子类别并将它们分配给 impex 文件中的超类别

我正在尝试使用 impex 文件中的一行创建多个子类别到超类别。像这样的东西:

上面的代码不起作用。我希望 001 成为 001001、001002、001003 的超类别

我可以在 3 行中做到这一点,例如:

只是想知道是否可以用一条线来完成?找不到执行此操作的限定符。

谢谢!

0 投票
1 回答
244 浏览

hybris - SAP Hybris Update description of Front Tile Component

I am new to Hybris and I still do not know how impex works. I would like to know how to make an impex script to update a description of a front tile component.

Thank you.

0 投票
1 回答
1536 浏览

hybris - Hybris:通过 Impex 为产品添加属性

我有一个产品目录和一个分类目录。产品目录包含产品,分类目录包含属性,但是当我尝试插入具有属性的产品时,当我单击产品并进入属性选项卡时,它不会显示。

我如何输入带有属性的产品:

添加它以将其链接到产品后,我需要做些什么吗?

0 投票
1 回答
778 浏览

hybris - Hybris:如何通过 impex 将产品添加到分类类别

如何通过 impex 将产品添加到分类类别?

0 投票
2 回答
451 浏览

cron - 如何通过 cronjob 导入 impex

我需要通过 cronjob 导入 impex 行,我在下面写了代码, 代码

我在公共 PerformResult perform(final CronJobModel arg0) 中编写此代码。如果我从 hac 手动导入这个 impex,它会成功导入。以下是我在日志上遇到的错误,

日志错误

谢谢...