Commerce Data Exporter馈送中的数据未更新,更改日志出错

本文提供了一个解决方案,用于修复在数据导出器Mview订阅中使用错误视图ID导致的数据同步问题。 Mview订阅用于跟踪数据库表的更改。

描述 description

环境

  • 产品: Adobe Commerce
  • 约束:自定义代码已应用于数据导出功能(commerce-data-exportersaas-exporter

问题/症状

如果安装的SaaS Data Export版本为103.3.0或更高版本,并且代码直接引用catalog_data_exporter_products索引,则会发生该错误。

商家可能会发现目录数据导出器馈送表中缺少数据更新,并在cron作业日志中看到以下错误:

[ 2024-05-27T19:00:04.627604+00:00]  report.
        ERROR: Cron Job
        indexer_clean_all_changelogs has an error: Table
        catalog_data_exporter_products_cl does not exist. Statistics:
        {"sum":0,"count":1,"realmem":0,"emalloc":0,"realmem_start":305135616,"emalloc_start":283210384} [ ]  [ ]

原因

由于Commerce Data Export版本103.3.0版本中的信息源表、索引和更改日志表的名称发生更改,使用 Commerce Data Export 扩展名的自定义扩展中的 Mview 订阅可能无法正常工作。

在这种情况下,出现​ 表不存在 ​错误,因为catalog_data_exporter表名称已更改为cde_products_feed,并且您的自定义代码引用了 数据导出程序Mview 订阅中的旧名称。

解决方法 resolution

在自定义扩展中,编辑 Mview 配置文件(./etc/mview.xml)以将catalog_data_exporter_products表名称更改为​cde_products_feed

以下示例显示指定由 Mview 订阅跟踪的表的代码:

<view id="cde_products_feed" class="Magento\CatalogDataExporter\Model\Indexer\ProductFeedIndexer" group="indexer">
        <subscriptions>
        <table name="custom_table" entity_column="product_id" />
        </subscriptions>
        </view>

相关阅读

recommendation-more-help
experience-cloud-kcs-help-kbarticles