Method: LogError for ContextVnV <Data Preprocessor>
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: LogError for ContextVnV <Data Preprocessor>
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)
| Object | ContextVnV <Data Preprocessor> Object with this method |
| message | String Specifies the error text. |
The following example marks the processed file as defective when it contains no data:
| VBScript | Python |
Sub On_ValidationAndVerification(oContext) If Data.GetChannels("*").Count = 0 Then Call oContext.LogError("No data") End If End Sub