更新版本冲突

说明

reviewmerchant 具有多个更新(具有相同 reviewmerchant ID 的条目),但内容不同,last_update_timestamp 却相同时,就会发生冲突的更新。由于这些条目具有相同的 last_update_timestamp,我们无法确定哪个更新是最新更新。

解决方法

传送包含最新内容且 last_update_timestamp 已更新的 reviewmerchant

时间戳创建冲突

如果两个更新因 create_timestamp 的值不同而发生冲突,则应再次传送 reviewmerchant,并使创建时间与最初发送的创建时间相匹配。如果创建时间与原始创建时间不一致,则会发生其他数据问题。

如果两个更新因 create_timestamp 的值不同而发生冲突,并且您认为新的 create_timestamp 是正确的值,请按照以下步骤为 reviewmerchant 设置新的创建时间,而不会生成新的数据问题:

  1. 再次交付 reviewmerchant,并附上预期的 create_timestamp 和更新后的 last_update_timestamp。
  2. 告知支持团队您打算使用新的创建时间,并提供包含具有新创建时间的条目的文件名。支持团队会确保使用新的创建时间,并且不会生成新的数据问题。

XML 格式变更冲突

如果因 XML 文件形成方式的更改(例如格式更改)而导致冲突,但基础数据并未更改,那么更改更新时间就没有意义。在这种情况下,请按以下步骤操作。

  1. 告知支持团队更新 last_update_timestamp 不合理的原因。
  2. 生成包含最新内容的文件(在本例中,无需更新 last_update_timestamp
  3. 向支持团队提供最新内容的相应文件名。支持团队会确保使用最新内容。

示例

3 月 1 日,您将 Feed 文件“2017_03_01.xml”上传到端点。该文件包含以下内容:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
  <last_update_timestamp>2017-02-25T03:02:23Z</last_update_timestamp>
  <country_code>US</country_code>
  <title>Great prices</title>
  <content>My order arrived on time and I got a great price.</content>
  <ratings>
    <overall min="1" max="10">9</overall>
    <customer_service min="1" max="10">10</customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method>
</review>

3 月 5 日,您将 Feed 文件“2017_03_05.xml”上传到端点。该文件包含用户对评价标题的修改,但 last_update_timestamp 与之前针对此评价发送的条目相比未发生变化:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
  <last_update_timestamp>2017-02-25T03:02:23Z</last_update_timestamp>
  <country_code>US</country_code>
  <title>Great prices and customer service!</title>
  <content>My order arrived on time and I got a great price.</content>
  <ratings>
    <overall min="1" max="10"<9>/overall>
    <customer_service min="1" max="10"<10>/customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method>
</review>

收到支持团队发来的通知,告知您发生了冲突的更新数据问题后,您将“2017_03_10-fix.xml”上传到端点,以解决该问题。

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
  <last_update_timestamp>2017-03-04T02:01:20Z</last_update_timestamp>
  <country_code>US</country_code>
  <title>Great prices and customer service!</title>
  <content>My order arrived on time and I got a great price.</content>
  <ratings>
    <overall min="1" max="10">9</overall>
    <customer_service min="1" max="10">10</customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method>
</review>