VERIFIED SOLUTION i

Resolve error 'Assertion failure (D:\Build\649\Sources\Delphi\Common\Log\MHEnhancedLoggingToFile.pas, line 337)' in Portrait Dialogue version 6.1

Issue

Error 'Assertion failure (D:\Build\649\Sources\Delphi\Common\Log\MHEnhancedLoggingToFile.pas, line 337)' is observed in Dialogue server error logs when a custom plugin is invoked to send SMS.

Following error is recorded in Dialogue Server Error log:
----------------------------------------------------------------------------------
Exception: Assertion failure (D:\Build\649\Sources\Delphi\Common\Log\MHEnhancedLoggingToFile.pas, line 337)
Time: 18-09-2017 15:22:07
Module: C:\PROGRA~2\PST\MILLIO~1\DIALOG~1\MHDIAL~1.DLL
Version: 6.1.3.705
File date: 30-09-2016 10:48:14
Instance name: PDSYS
ProcessID: 3888
ThreadID: 7384
Memory usage: 127.41 MiB
Exception type: EOleException
Procedure: MHTransactionSession.TMHTransactionSession.ReportProgressStatus$12589$ActRec.$0$Body

[071B72E0] MHTransactionSession.TMHTransactionSession.ReportProgressStatus$12589$ActRec.$0$Body
[071B72E0] MHTransactionSession.TMHTransactionSession.ReportProgressStatus$12589$ActRec.$0$Body
[067A8123] OtlTaskControl.TOmniTaskExecutor.Asy_Execute
[067A7734] OtlTaskControl.TOmniTask.InternalExecute
[067A7556] OtlTaskControl.TOmniTask.Execute
[0647A04E] System.Classes.ThreadProc
[064192BC] System.ThreadWrapper
----------------------------------------------------------------------------------

Cause

This could be due to a product defect in which, this error is message is reported in the Dialogue Error logs, upon calling of ReportProgressStatus from a custom plugin with the message ending with new line character.

Resolution

UPDATED: September 26, 2017
This is fixed in Portrait Dialogue version 6.2 hence upgrading to 6.2 or latest version of Portrait Dialogue should help.