Compare File

Operation Name

Compare File

Function Overview

Compare a file with another file as binary, and when it does not match, raise an assertion exception.

Properties

For details on use of variables, refer to “Variables”.
Basic settings
Item name Required/Optional Use of variables Description Remarks
Name Required Not available Enter the name to show on the script canvas.  
Required settings
Item name Required/Optional Use of variables Description Remarks
Subject file Required Available Enter the subject file path.
Object file Required Available Enter the object file path.
Comment
Item name Required/Optional Use of variables Description Remarks
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

PSP Usage

PSP is not supported.

Available Component Variables

Component variable name Description Remarks
message_category When an error occurs, the corresponding message code's category is stored.
  • Default value is null.
message_code When an error occurs, the corresponding message code is stored.
  • Default value is null.
message_level When an error occurs, the corresponding message code's severity is stored.
  • Default value is null.
error_type When an error occurs, the error type is stored.
  • Default value is null.
  • The error type will be in the following format.
    Example: “java.io.FileNotFoundException”
  • The contents that will be stored may vary depending on DataSpider Servista versions.
error_message When an error occurs, the error message is stored.
  • Default value is null.
  • The contents that will be stored may vary depending on DataSpider Servista versions.
error_trace When an error occurs, the error's trace information is stored.
  • Default value is null.
  • The contents that will be stored may vary depending on DataSpider Servista versions and client applications.

Specification Limits

None.

Major Exceptions

Exception name Cause Solution
InvalidPropertyConfigurationException
File path is not entered.
[Subject file] or [Object file] is not specified. Specify [Subject file] and [Object file].
FileIsDirectoryException The path entered in [Subject file] or [Object file] is directory. Enter file paths in [Subject file] and [Object file].
java.io.FileNotFoundException The file specified in [Subject file] or [Object file] does not exist. Check [Subject file] and [Object file].
AssertionException [Subject file] and [Object file] are different files. Check the error message.