类型代码在斯巴达克斯设置中'CustomerCouponForPromotionSourceRule'无效



环境详细信息

  • 斯巴达克斯:1.5.4
  • 操作系统:Windows 10-v1809-8 GB内存-500GB硬盘
  • 其他环境详细信息:Angular 8/JAVA 1.11-SAP Commerce Suite 1905.13

我想做什么

  • 按照文档设置Spartacus和SAP Commerce Suite 1905.13(https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud/)使用此存储库中为1.5.4版本提供的sampledataaddon
  • 成功初始化spartacus安装程序配方(文档中的步骤13(
  • 我试着在文档中执行第14步。我最初在说customerCouponCodeValueResolverbean不可用之间得到一个错误,如https://github.com/SAP/spartacus/issues/5662.
  • 按照建议安装customercouponoccaddon
  • 执行ant clean all,然后重试步骤14

观察结果

中间出现错误。

ERROR [solr indexer thread] [FlexibleSearch] Flexible search error occured...
ERROR [solr indexer thread] [FlexibleSearch] Query translation was not successful.
ERROR [solr indexer thread] [DefaultIndexerWorker] [Indexer worker 0 (UPDATE index operation on electronicsIndex/Product)] failed to process index items due to Failed to index item with PK 8796220293121: Failed to resolve values for item with PK: 8796220293121, by resolver: customerCouponCodeValueResolver, for properties: [customerCouponCode], reason: type code 'CustomerCouponForPromotionSourceRule' invalid
de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: Failed to index item with PK 8796220293121: Failed to resolve values for item with PK: 8796220293121, by resolver: customerCouponCodeValueResolver, for properties: [customerCouponCode], reason: type code 'CustomerCouponForPromotionSourceRule' invalid

并且该命令继续执行而没有结束。

附加信息

我真的不知道该怎么绕过这个。对此的任何解决方案都将不胜感激。目标是在他们的存储库中设置sampledataaddon,但它在内部似乎失败了。

谢谢

我之前在Spartacus Slack的反馈渠道中对此发表了评论,但通过搜索不容易找到。。。所以我在这里重复一遍:

在安装说明中,我认为它实际上也应该要求人们添加extName customercouponoccadon&然后将该插件添加到中的列表中

forStoreFronts('ycommercewebservices') {
names 'acceleratorwebservicesaddon', 'consignmenttrackingoccaddon', 'customerinterestsoccaddon', 'notificationoccaddon', 'cmsoccaddon'
template 'ycommercewebservices'
}

目前,spartacussampledataaddon有几个solr.impex文件,这些文件假设Commerce构建中包含customercouponservice以提供customerCouponCodeValueProvider,但b2c_acc_plus配方中目前似乎没有包含它。如上所述添加到customercouponocoddon应该可以解决此问题。

相关内容

  • 没有找到相关文章