Article Details
Id:10652
Product:finPOWER Connect
Type:FIX
Version:1.06.05
Opened:01/11/2012
Closed:01/11/2012
Released:26/11/2012
Job: J010646
High Importance

Publishing Document Log may fail but Log still updated to indicate published successfully

Publishing a Document Log, e.g., for the sample Account Advice VBA, sets the Log's Published Status to 'Published', even if the VBA code indicated that the publish failed, e.g., as per the following code snippet:

For Each LogItem In mLogs
  ' Load Log
  mLog.Load LogItem.LogPk

  ' Fail
  Ok = False
  LogItem.PublishError = "This should fail to update the Log's publish status"
      
  If Ok Then
    ' Print Document
  End If
Next

This only occured if the Document was configured, on the Options page of the Documents form, with 'Supports Batch Print?' unchecked.

NOTE: This was an internal issue and does not require any modification of VBA documents.