Thời gian tạo đã thay đổi

Mô tả

Vấn đề về việc tạo thời gian tạo xảy ra khi review hoặc merchant có các thời điểm tạo khác nhau trong các bản cập nhật. Vì thời gian tạo là một trường không thể thay đổi, nên những thay đổi đối với thời gian tạo sẽ gây ra vấn đề này.

Cách khắc phục

Chọn một trong các tùy chọn sau để giải quyết vấn đề:

Tùy chọn A:

Nếu bạn muốn sử dụng thời gian tạo ban đầu, hãy phân phối lại review hoặc merchant với create_timestamp ban đầu và cập nhật last_update_timestamp.

Cách B:

Nếu bạn muốn sử dụng thời gian tạo mới, hãy phân phối lại review hoặc merchant với create_timestamp mới và last_update_timestamp đã cập nhật. Sau đó, hãy thông báo cho nhóm hỗ trợ của tên tệp chứa mục nhập. Nhóm hỗ trợ có thể giúp giải quyết vấn đề này.

Ví dụ:

Vào ngày 1 tháng 3, bạn tải tệp nguồn cấp dữ liệu "2017_03_01.xml" lên điểm cuối. Tệp này chứa một mục nhập cho một bài đánh giá chưa được gửi trước đó:

<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>

Ngày hôm sau, bạn giao tệp nguồn cấp dữ liệu "2017_03_02.xml", tệp này sẽ cập nhật thời gian tạo để xem xét "156368":

<review id="156368" mid="2739>
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-26T11:01:42Z</create_timestamp>
  <last_update_timestamp>2017-02-26T11:01:42Z</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>

Mục nhập thứ hai để xem xét "156368" tạo ra xung đột trong thời gian tạo. Nhóm hỗ trợ sẽ thông báo cho bạn biết rằng đã xảy ra sự cố dữ liệu.

Sau khi xem tài liệu về cách khắc phục vấn đề này, bạn hãy chọn Tuỳ chọn A để thay đổi thời gian tạo về lại trạng thái ban đầu. Thời gian tạo ban đầu là "2017-02-25T03:02:23Z" do đó, bạn phân phối tệp nguồn cấp dữ liệu sau "2017_03_10-fix.xml" vào ngày 10 tháng 3:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-25T03:02:23Z</create_timestamp>
  <last_update_timestamp>2017-03-09T02:40: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>