Table of Contents

Search

  1. Preface
  2. Informatica Managed File Transfer Welcome Overview
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Read XML Task

Read XML Task

The Read XML task allows you to specify file and variable parameters for translating an XML file into a RowSet variable.
Field
Definition
Basic Tab
Label
Specify a label for this task.
Input File
Specify the path and file name of the XML file to read.
Input Files Variable
Specify the name of a variable of type File List which contains XML files to read. For example, ${variableName}
Advanced Tab
Trim
Specify how the leading and trailing white spaces in the fields should be trimmed. This setting may also be overridden by the individual columns.
Default Value: both
Null Indicator
Specify the value that should be interpreted as null when reading the data from the input files. If the data in any column in any row matches the value specified here, it will be interpreted as a null. This value can be overridden by the individual columns.
Skip Invalid Records
Specify whether or not to skip records that contain unparseable data. The default is 'false' which will throw an error and stop the task.
Default Value: false
Data Format Tab
Number Format
Specify the format of the number fields (tinyint, smallint, int, bigint, real, float, double, decimal and numeric) in the XML file being read. For e.g. ###,### (2,345) or $###,###.00 ($2,345.46). This value can be overridden by the individual columns.
Date Format
Specify the format of the date fields in the XML file being read. For e.g. MM/dd/yyyy (08/02/2007). This value can be overridden by the individual columns.
Default Value: yyyy-MM-dd
Time Format
Specify the format of the time fields in the XML file being read. For e.g. hh:mm:ss a (08:12:56 PM). This value can be overridden by the individual columns. Default Value: HH:mm:ss
Timestamp Format
Specify the format of the timestamp fields in the XML file being read. For e.g. MMM dd, yyyy hh:mm:ss a (Aug 02, 2007 08:12:56 PM). This value can be overridden by the individual columns.
Default Value: yyyy-MM-dd HH:mm:ss.SSS
Locale
Specify the locale to which the locale sensitive data such as numeric and date/time data is formatted. The locale must be of the form [language]_[country], where language is the two character ISO language code and country is the two character ISO country code. The country part may be omitted if the data was formatted to just the specified language. Example locales are - en_US (English/United States), de (German). If needed, the locale may be overridden on the individual columns.
Default Value: en_US
XML Validation Tab
Validation
Specify the type of validation to be performed. By default, validation is 'none' which means no validation is performed. Valid options are - none, schema, dtd
Default Value: none
Schema URL
Specify the URL path to the schema source. Use this attribute only if the schema source to validate against is not already defined in the XML document, or to override the schema. Leaving this value blank will validate the document against the schema defined in the XML document. This attribute is ignored if validation is not set to schema.
When Validation Fails
Specify the action to take when a validation error occurs. By default, all validation errors will be logged to the job log and the project will continue. Note that any fatal errors encountered by the parser means that the XML document is unreliable and the project will fail regardless of this setting. Valid options are - ignore, log, error
Default Value: error
Output Variables Tab
Processed Input Files Variable
If desired, specify the name of a variable which will contain the processed input files. The variable will be of type File List and may be used in subsequent tasks that accept a File List input variable. The variable will be created if it does not exist.
Control Tab
Version
The version of this task.
Log Level
Specify the level of logging to use while executing this task. Valid options are - silent, normal, verbose and debug.
Default Value: Inherited from parent Module
Execute Only If
Specify a condition that must be satisfied before this task can be executed. This task will be skipped if the specified condition is not met.
Disabled
Whether or not this task is disabled.
Default Value: false
On Error Tab
On Error
Specify the action to take when this task errors out. Valid options are - abort, continue, call:[module] and setVariable:[name]=[value]. For call:[module] replace [module] with the name of the module in the project (e.g. call:ErrorModule). For setVariable:[name]=[value] replace [name] with a variable name and [value] with the variable value (e.g. setVariable:error=true).
Default Value: Inherited from parent Module
This task uses the File Set Elements. The field definitions for the File Set Elements can be found on the File Lists and File Sets topic.

0 COMMENTS

We’d like to hear from you!