Delete File/Container

Operation Name

Delete File/Container

Function overview

Specifies and deletes file or container on Microsoft Azure Storage BLOB.

Data model

Data model of this component is XML type.

Properties

For information about using variables, refer to "variables".
Basic settings
Item name Required / Optional Use of Variables Description Remarks
Name Required Not available Enter the name on the script canvas.  
Required settings
Item name Required / Optional Use of Variables Description Remarks
Destination Required Not available Select Global Resources.
  • [Add]:
    Adds new global resource.
  • [Edit List]:
    Global resource settings can be edited with "Edit Resource list".
 
Container name Required Available Specify the container.
  • Refer to Notes for naming conventions of containers in Microsoft Azure.
Delete container Optional Not available Select whether to delete the container.
  • [Checked]:
    Deletes the container.
  • [Not Checked]:(default)
    Deletes the file.
 
File name Required Available Specify the file.
  • Disabled if [Delete container] is checked.
  • Wildcards ("*" and "?") can be used in the file name.
  • Distinguishes on upper/lower cases.
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.
 

Schema

Input Schema

None.

Output Schema

When deleting files

<?xml version="1.0"?>
<server>
  <container name="" status="" >
    <file name="" status="" />
  </container>
</server>
Element name Attribute name Description Remarks
server -    
container -    
name Outputs the name of the container of the deleted file.  
status Outputs the status of the container of the deleted file.
  • [Exist]: State that the container exists.
  • [ErrorContainerNotFound]: State that the container does not exist. The specified [Container name] may be incorrect.
  • [Error]: The existence of the container cannot be verified due to certain error.
 
file   Appears for each deleted file.  
name Outputs the name of the deleted file.  
status Outputs the status of the deleted file.
  • [Deleted]: State that the file is successfully deleted.
  • [ErrorRemoteFileNotFound]: State that the file does not exist. The specified [File name] may be incorrect.
  • [Error]: Could not delete the file due to certain error.
 

When deleting containers

<?xml version="1.0"?>
<server>
  <container name="" status="" />
</server>
Element name Attribute name Description Remarks
server -    
container -    
name Outputs the name of the deleted container.  
status Outputs the status of the deleted container.
  • [Deleted]: State the container is successfully deleted.
  • [ErrorContainerNotFound]: State that the container does not exist.The specified [Container name] may be incorrect.
  • [Error]: Could not delete the container due to certain error.
 

Loading schema in Mapper

Schema is loaded automatically.
For any details, please refer to the 'Editing Schema'

Mass Data Processing

Mass data processing is not supported.

Transaction

Transaction is not supported.

PSP Usage

PSP is not supported.

Available component variables

Component variable name Description Remarks
count Returns the number of deleted files or containers.
  • 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 the DataSpider Servista version.
error_message Stores the error message for the occured error.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version.
error_trace Stores stack trace of the occurred error.
  • The value defaults to null.
  • The message may vary depending on the DataSpider Servista version or the client application used.

Specification Limits

None.

Main exceptions

Exception name Causes Solution
ResourceNotFoundException
Resource definition could not be found.Name: []
[Destination] is not specified. Specify [Destination].
ResourceNotFoundException
Resource definition could not be found.Name: [<Global Resource Name>]
Resource definition selected in [Destination] is not found. Check the global resource specified in [Destination].
InvalidPropertyConfigurationException
<Property name> is not specified.
[<Property name>] is not specified. Specify [<Property Name>].
com.microsoft.windowsazure.services.core.storage.StorageException Cannot be connected due to the following causes.
  • There's a mistake in [Account] or [Access key] in the global resource specified in [Destination].
  • There are double-byte characters in [Account] in the global resource specified in [Destination].
Check the settings and connection status of the global resource specified in [Destination] .
java.security.InvalidKeyException
Storage Key is not a valid base64 encoded string.
[Access key] of the global resource specified in [Destination] is incorrect. Check the settings of the global resource specified in [Destination] .

Notes