Fixed this one - it was a simple error where I had names a variable isSendError instead of isSendSuccess. So I ended up checking isSendError instead of NOT isSendSuccess. Embarassing error but fixed now and will be included in the next release.
For now ignore the error or go into the CommonFunctionsLibrary and make the change. This is what the function should look like…
Function createUsageLog(
…
Dim isSendSuccess As Boolean<br/>
…
'Send Notification if necessary<br/>
If isAnalysisMode Then<br/>
If docConfig.Analysis_SendNotificationTX(0)="YES" Then<br/>
Call getEmailConfigValues( docConfig, varSendTo, varCopyTo, strSubject, strBody, isDocLinkToBeSent, True )<br/>
isSendSuccess = sendEmail( varSendTo, varCopyTo, strSubject, strBody, docConfig, docLog, isDocLinkToBeSent )<br/>
End If<br/>
<br/>
Else<br/>
If docConfig.LiveRun_SendNotificationTX(0)="YES" Then<br/>
Call getEmailConfigValues( docConfig, varSendTo, varCopyTo, strSubject, strBody, isDocLinkToBeSent, False )<br/>
isSendSuccess = sendEmail( varSendTo, varCopyTo, strSubject, strBody, docConfig, docLog, isDocLinkToBeSent )<br/>
End If<br/>
<br/>
End If<br/>
<br/>
If Not isSendSuccess Then strError = strError & Chr$(13) & "Error in sending to one or more recipients. " & Chr$(13) &_<br/>
"Send To: " & Implode( varSendTo, "," ) & Chr$(13) & "Copy To: " & Implode( varCopyTo, "," )<br/>
<br/>
Call docLog.ReplaceItemValue( "ErrorsTX", strError )<br/>
Call docLog.Save( True, True )<br/>
Set createUsageLog = docLog<br/>
<br/>
End Function