DIAdem Help

Method: LogError for ContextVnV <Data Preprocessor>

  • Updated2024-09-12
  • 1 minute(s) read

Method: LogError for ContextVnV <Data Preprocessor>

Creates an error. The data preparation continues the script but marks the file in the data preparation as failed.

Object.LogError(message)
ObjectContextVnV <Data Preprocessor>
Object with this method
messageString
Specifies the error text.

The following example marks the processed file as defective when it contains no data:

VBScriptPython

 

Sub On_ValidationAndVerification(oContext)
  If Data.GetChannels("*").Count = 0 Then
    Call oContext.LogError("No data")
  End If
End Sub