Write Filesystem

Operation Name

Write Filesystem

Function overview

Create or update files and directories from the input data.

Data Model

Data model of this type of component is table model type.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required/Optional Use of Variables Description Supplement
Name Required Not available Enter the name on the script canvas.  
Input data Required Not available Select the component on the script canvas.  
Required settings
Item name Required/Optional Use of Variables Description Supplement
Directory Required Available Enter the directory to write.

Click [Browse] button to activate the file Selectr and Select the directory.
  • If the path in the input data is a relative path, the path is converted to a relative path to the [Directory].
  • If the path in the input data is an absolute path, the absolute path is used.
  • Please specify the absolute path of the DataSpider file system as the file path.
  • Constrained Characters of DataSpider File System cannnot be used, except for the path separator "/"..
Comment
Item name Required/Optional Use of Variables Description Supplement
Comment Optional Not available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

<?xml version="1.0"?>
&lt;table&gt;
  &lt;row&gt;
    <column>filetype</column>
    <column>path</column>
    <column>name</column>
    <column>data</column>
  &lt;/row&gt;
  &lt;row&gt;
    :
  &lt;/row&gt;
</table>
Column name Required / Optional Description Remarks
filetype Required Specify the file type of a file or a directory to create or update.
  • file:File
  • directory:Directory
 
path Required Specify the path of a file or a directory to create or update.
  • If the specified path is a relative path, the path is converted to a relative path to the [Directory].
name Optional Specify the name of a file or a directory to create or update.
  • If the "directory" is set to the filetype, the value is ignored.
data Optional Inputs the contents of a file to create or update as Base64 format or binaly format.
  • If the "directory" is set to the filetype, the value is ignored.
  • If the "file" is set to the filetype and the data has no value, no file is created.

Output Schema

None.

Loading schema in Mapper

Schema is loaded automatically.
See "Edit Schema"for any details .

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available Component variables

Variable name Description Remarks
count The number of the files or the directories written.
  • The value defaults to null.
message_category Stroes the category to which corresponding message code belongs to, when an error occurs.
  • The value defaults to null.
message_code Stores its corresponding message code of occured error.
  • The value defaults to null.
message_level Stores the severity of the corresponding message code of the occured error.
  • The value defaults to null.
error_type Stores the type of the occured error.
  • The value defaults to null.
  • Error is represented in the format depicted below.
    Example:java.io.FileNotFoundException
  • The message may vary depending on DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on DataSpider Servista version or the client application used.

Specification Limits

Main exceptions

Exception name Cause Solution
InputDataNotFoundException [Input data] is not specified. Specify the [Input data], or draw the data flow.
InvalidPropertyConfigurationException [Directory] is not specified. Specify the [Directory].
InvalidFileTypeException The value of the filetype column in the input data is not file or directory. Specify file or directory for a value of the filetype column in input data.
FileIsNotDirectoryException Path input in [Directory] is file. Please enter the absolute path of [Directory].
PathIsNotAbsoluteException Path specified in the [Directory] is a relative path. Specify a absolute path for the [Directory].
IllegalStateException
No column found.
The file type or the file path in the [Input data] is not specified. Specify a file type or a file path in the [Input data].