跳到主要內容 跳至補充內容

Error handling

Basic

Apply conflicts

Duplicate key when applying INSERT: Select what action to take when there is a conflict with an INSERT operation.

資訊備註When replicating from SaaS application sources, only the UPDATE the existing target record action is supported.
  • Ignore: The task continues and the error is ignored.

     

  • UPDATE the existing target record: The target record with the same primary key as the INSERTED source record is updated.

  • Log record to the exceptions table (default): The task continues and the error is written to the exceptions table.
  • Suspend table: The task continues but data from the table with the error record is moved into an error state and its data is not replicated.

  • Stop task: The task is stopped and manual intervention is required.

No record found for applying an UPDATE: Select what action to take when there is a conflict with an UPDATE operation.

資訊備註從 SaaS 應用程式來源複寫時,這些設定不可用。
  • Ignore: The task continues and the error is ignored.
  • INSERT the missing target record: The missing target record will be inserted into the target table. When the source endpoint is Oracle, selecting this option requires supplemental logging to be enabled for all the source table columns.

  • Log record to the exceptions table (default): The task continues and the error is written to the exceptions table.
  • Suspend table: The task continues but data from the table with the error record is moved into an error state and its data is not replicated.

  • Stop task: The task is stopped and manual intervention is required.

Advanced

Data errors

Data truncation errors

對於資料截斷錯誤:選取當截斷發生於一個或多個特定記錄時,您想要發生的事項。您可以從清單中選取下列內容之一:

  • 忽略:任務會繼續並忽略錯誤。
  • 將記錄記錄至例外表格 (預設):任務會繼續,錯誤會寫入到例外表格。
  • 暫停表格:任務會繼續,但具有錯誤記錄之表格中的資料會移至錯誤狀態,並且不會複寫其資料
  • 停止任務:任務會停止,需要手動干預。
資訊備註

Data truncation error handling is supported in Apply Changes replication mode only (not Full Load).

Other data errors

對於其他資料錯誤:選取當錯誤發生於一個或多個特定記錄時,您想要發生的事項。您可以從清單中選取下列內容之一:

  • 忽略:任務會繼續並忽略錯誤。
  • 將記錄記錄至例外表格 (預設):任務會繼續,錯誤會寫入到例外表格。
  • 暫停表格:任務會繼續,但具有錯誤記錄之表格中的資料會移至錯誤狀態,並且不會複寫其資料
  • 停止任務:任務會停止,需要手動干預。

Escalating data error handling

在達到其他資料錯誤 (每個表格) 時呈報錯誤處理:選取此核取方塊,以在非截斷資料錯誤數量 (每個表格) 達到指定量時呈報錯誤處理。有效值為 1-10,000。

呈報動作:選擇呈報錯誤處理時應發生什麼事。請注意,可用動作取決於從上述對於其他資料錯誤下拉式清單中選取的動作。

  • 暫停表格 (預設):任務會繼續,但具有錯誤記錄之表格中的資料會移至錯誤狀態,並且不會已移動其資料。

    資訊備註

    行為根據變更處理模式而異:

    • 交易套用模式中,將不會已移動上次變更。

    • 批次最佳化套用模式中,可能有完全不會已移動資料或僅部分已移動資料的情況。

  • 停止任務:任務會停止,需要手動干預。
  • 將記錄記錄至例外表格:任務會繼續,記錄會寫入到例外表格。

Table errors

此選項可讓您控制何時觸發表格錯誤處理原則。依預設,遇到表格錯誤後,表格將會暫停或工作將會在三次重試後停止 (根據選取的動作)。有時,會因為 SaaS 應用程式的計劃性維護而發生表格錯誤。在這些情況下,預設的重試次數可能不足以在觸發表格錯誤處理原則之前完成維護。這也取決於工作的排程間隔,因為每次工作執行時都會執行一次重試。因此,例如,如果您排程工作每小時執行一次,且 SaaS 應用程式在工作開始執行時因維護而離線,則預設的三次重試將允許 SaaS 應用程式離線長達三小時,而不會觸發表格錯誤處理原則。更長的維護期間將需要您增加重試次數 (或變更排程),以防止觸發表格錯誤處理原則。

總而言之,如果您知道您的 SaaS 應用程式會定期維護,最佳做法是根據排程增加重試次數,以便在不觸發表格錯誤處理原則的情況下完成維護。

資訊備註
  • 此選項將僅顯示給設定為 Lite 或 Standard SaaS 應用程式連接器的工作。

  • 如果您使用 資料移動閘道,則需要版本 2024.11.70 或更高版本。

遇到表格錯誤時:從下拉式清單選取下列內容之一:

  • 暫停表格 (預設):任務會繼續,但具有錯誤記錄之表格中的資料會移至錯誤狀態,並且不會複寫其資料
  • 停止任務:任務會停止,需要手動干預。

在表格錯誤達到時呈報錯誤處理 (每個表格):選取此核取方塊,以在表格錯誤數量 (每個表格) 達到指定量時呈報錯誤處理。有效值為 1-10,000。

呈報動作:表格錯誤的呈報政策設定為停止任務且無法變更。

Apply conflicts

資訊備註從 SaaS 應用程式來源複寫時,這些設定不可用。

No record found for applying a DELETE: Select what action is taken when there is a conflict with a DELETE operation.

  • Ignore: The task continues and the error is ignored.
  • Log record to the exceptions table: The task continues and the record is written to the exceptions table.
  • Suspend table: The task continues but data from the table with the error record is moved into an error state and its data is not replicated.
  • Stop task: The task is stopped and manual intervention is required.

Escalating Apply conflicts error handling

Escalate error handling when apply conflicts reach (per table): Select this check box to escalate error handling when the number of apply conflicts (per table) reaches the specified amount. Valid values are 1-10,000.

Escalation action: Choose what should happen when error handling is escalated:

  • Log record to the exceptions table (default): The task continues and the error is written to the exceptions table.
  • Suspend table: The task continues, but data from the table with the error record is moved into an error state and its data is not replicated.

    資訊備註

    The behavior differs according to the Change Processing Mode:

    • In Transactional apply mode, the last changes will not be replicated

    • In Batch optimized apply mode, a situation is possible where there will be no replication of data or data replication will be partial.

  • Stop task: The task is stopped and manual intervention is required.

Environmental errors

  • 重試計數上限:選取此選項,然後指定在可修復的環境錯誤發生時重試任務的嘗試次數上限。在重試任務達到指定次數之後,任務會停止,需要手動干預。

    若絕對不要重試任務,清除核取方塊或指定「0」。

    若要重試任務無限次數,指定「-1」

    • 重試嘗試之間的間隔 (秒):使用計數器以選取或輸入系統在每次嘗試重試任務之間等待的秒數。

      有效值為 0-2,000。

  • 對長時間中斷增加重試間隔:選取此核取方塊以對長時間中斷增加重試間隔。若啟用此選項, 會加倍每次重試嘗試之間的間隔,直到達到重試間隔上限為止 (並根據指定的間隔上限繼續重試)。
    • 重試間隔上限 (秒):在啟用對長時間中斷增加重試間隔選項時,使用計數器以選取或輸入每次嘗試重試任務之間等待的秒數。有效值為 0-2,000。

此頁面是否對您有幫助?

若您發現此頁面或其內容有任何問題——錯字、遺漏步驟或技術錯誤——請告知我們!