Table of Contents

Text File Parser

Overview

Text File Parser event source is a data core import object for flat text files of delimited or fixed width formats.

It can be configured to monitor for files in an Import Directory.

The process is as follows:

  1. File dropped in Import Directory
  2. If Event Source has subscribers, the file is collected
  3. Each row of data is parsed and converted to a Data Core Event Message
  4. Event Messages sent to subscribers
  5. Once file has been processed, it is archived to the Archive Directory

Event Message Structure

Text file fields are assigned to the Event message Event Property collection.

All data is treated as text.

Event Property names are derived from the text file column names (if available), or default to “Field00, Field01, Field02…” if no explicit name is available.

Configuration

Configuration options exists for:

Tips

The process which drops the file in the Import Directory should protect against Data Core collecting the file prematurely. Consider employing the Filename filter.

For example,

  1. Set the Filename Filter to “*.csv” - only CSV files are considered for import
  2. While writing a file to the Import Folder, use extension “.tmp”
  3. Once file-write is complete, rename extension to “.csv”