Monday, January 13, 2025

Dual Write - Debug Errors via D365 FO DualWriteErrorLog

To debug the errors in Dual Write, in addition to the normal Error Log in Data Management, the following approach can be used.

  1. Open D365 FO as Admin-User
  2. Search for "Excel Workbook Designer" https://YOUR-FO-INSTANCE/?cmp=DE02&mi=ExportToExcelWorkbookDesigner
  3. Search for "dualwrite"
  4. Select "DualWriteProjectConfiguration"
  5. Select "All Fields"
  6. Click "Create workbook"
  7. Click "Download"
  8. Open the Excel file and click "Enable Editing"
  9. Authenticate with your D365 FO Admin user in the Dialog window (FO-Connector)
  10. Search for Entity Name in list of Projects (column B - External entity name)
  11. Search for column "IsDebugMode"
  12. Change both lines to "Yes"
  13. Remove all filters from Excel (column B)
  14. Click Publish
  15. Open Error Log Url in D365 FO https://YOUR-FO-INSTANCE/?mi=SysTableBrowser&TableName=DualWriteErrorLog
  16. Reproduce the issue in the application
  17. Reopen the URL (step 15 again) and click the Office icon in top right corner
The result contains the error messages in column "DetailedError Message".

Note: Dont forget to change "IsDebugMode" back to "No" after troubleshooting session.

Cheers!