共用方式為


Microsoft Dataverse 低程式碼外掛程式的提示和已知問題 (預覽版)

[本主題是發行前版本文件,並可能在未來變更。]

本文說明在 Microsoft Dataverse 中使用低程式碼外掛程式時的提示和已知問題。

重要

  • 這是預覽功能。
  • 預覽功能不供生產時使用,而且可能功能受限。 這些功能是在正式發行前先行推出,讓客戶能夠搶先體驗並提供意見反應。

處理一般執行階段問題

如果您遇到執行階段外掛程式問題,請重新編輯低程式碼外掛程式。 然後,公式運算上的 intellisense 問題將顯示在低程式碼外掛程式編輯器中。 請按照指引更正同時顯示的問題,然後重新儲存外掛程式。

使用作業後修補時要小心

在作業後使用 Patch 時,低程式碼外掛程式的執行可能會遇到此錯誤:Execution failed for PowerPlexPlugin: System.ServiceModel.FaultException 1[Microsoft.Xrm.Sdk.OrganizationServiceFault] This low-code plugin's execution was cancelled because the plugin logic caused an infinite loop. Correct the plugin logic and try again.

在作業後情境中使用 Patch 時必須謹慎,以避免無限迴圈。 Patch 作業會啟動新交易。 例如,如果 MyTable 的更新觸發程序調用 Patch(MyTable, ThisRecord, ...),則此作業可能會導致遞迴更新週期。

下面是可以避免此問題的幾個作業範例:

  • Patch(CurrentTable, SomeOtherRecord, ... ) // For example, updating a manager's contact from a contact record.
  • Patch(OtherTable, SomeOtherRecord, ... ) // Operations on a completely different table.

處理兩分鐘逾時

對於持續兩分鐘或更長時間的作業,您可能會收到此錯誤:

Execution failed for PowerPlexPlugin: System.ServiceModel.FaultException1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Operation not allowed as plugin execution exceeded maximum allowed time (Fault Detail is equal to Exception details: limit your callbacks .. Create, Update)

使用 Dataverse 低程式碼外掛程式時,有效管理兩分鐘逾時非常重要:

  • 限制外掛程式中的 PatchCollect 作業數,尤其是在已針對該表註冊其他外掛程式的情況下,這可能會影響外掛程式的效能。
  • 監控效能。 密切關注外掛程式的效能,並考慮使用 Dataverse 中的追蹤和記錄功能來追蹤執行時間和故障。 透過遵循這些準則,您可以確保低程式碼外掛程式在 Dataverse 環境中平穩執行,而不會因兩分鐘逾時而導致中斷。 其他資訊:追蹤與紀錄

從 APIM 收到的回覆失敗

如果您收到這個從 API 管理 (APIM) 傳回的錯誤訊息,只需編輯外掛程式,然後重新儲存。 儲存會初始化 APIM 驗證,且外掛程式將開始成功執行。

Execution failed for PowerPlexPlugin: Failed response received from APIM; StatusCode: NotFound; ResponseContent: { "statusCode": 404, "message": "Resource not found" } Method: POST; RequestUri: https://canada-001.azure-apim.net/invoke; StatusCode: NotFound; ResponseContent: { "statusCode": 404, "message": "Resource not found" }; HeadersString: Headers - 'Access-Control-Allow-Methods': 'System.String[]'; 'Access-Control-Allow-Origin': 'System.String[]'; 'Access-Control-Max-Age': 'System.String[]'; 'Access-Control-Expose-Headers': 'System.String[]'; 'Date': 'System.String[]'; Access to APIM expires..edit and save the plugin

另請參閱

在 Dataverse 中使用低程式碼外掛程式