Configure a CSV target in Informatica
How a CSV file target in Informatica turns rows into delimited text, what it changes, and how to keep the output readable and usable after it is shared.
Writing to a CSV file target in Informatica turns rows into delimited text. This review covers what that conversion changes and what it keeps. It also covers what to set so the file stays meaningful and usable once it leaves the pipeline.
Is a CSV target the right choice?
A CSV target suits consumers that expect flat row-and-column text, such as another system's import job, a partner file drop or a spreadsheet user. Its main benefit is portability, because almost any tool can read delimited text. The decisive tradeoff is that CSV carries no data types, no schema and only a loosely followed standard. Meaning survives only if both sides agree on the delimiter, quoting, encoding, header and date and number formats.
- Choose a different output when:
- The destination is a database Informatica can write to directly. A relational target keeps data types that CSV discards.
- The data is nested or hierarchical. JSON, XML or a columnar format represents structure that flat rows cannot.
- Values often contain commas, quotes or line breaks and the consumer's parser handles quoting poorly. Tab-delimited or fixed-width output may be safer.
- The file is meant to be read by people rather than loaded. A plain-text report or a formatted spreadsheet is easier to read than raw delimited rows.
Where the settings live
In PowerCenter, you create the flat file target definition in the Target Designer, either manually or by importing a sample file through the Flat File Wizard, and mark it as delimited. Its advanced properties hold the column delimiter, optional quotes, escape character and code page. The session's target properties set the output directory, the file name and the header options. In cloud Data Integration, a flat file connection points to a directory. The delimiter, text qualifier, escape character and code page are set as formatting options on the target in the mapping or task, and the target file can be an existing file or one created at runtime. Labels and placement differ between releases, so confirm them against the documentation for the version you run.
| Setting | What it controls | What to decide |
| Delimiter | Character placed between fields | Comma for standard CSV; tab if values often contain commas; must match the consumer |
| Quote / text qualifier | Whether values are enclosed in quote characters | Double quotes are the common CSV convention; confirm how embedded quotes are written |
| Escape character | How a delimiter or quote inside a value is marked | Many CSV readers expect a doubled quote rather than a backslash escape; a mismatch breaks parsing |
| Code page / encoding | How characters become bytes | A Unicode code page such as UTF-8 unless the consumer requires another; characters outside the chosen code page can be lost or replaced |
| Header | Whether the first row holds column names | Include it when people or loaders map columns by name |
| Output directory and file name | Where the file is written and whether reruns overwrite or append | Pick a pattern that downstream jobs cannot read while the file is still being written |
| Date and number formats | Text form of non-string values | Set them explicitly so the consumer parses them the same way |
What the transformation actually changes
A CSV target changes the stored characters, not how text looks on screen. Typed values become strings, the strings are joined with delimiters and wrapped in qualifiers where configured, and the result is encoded as bytes. Nothing is reversed, mirrored or restyled, and the order of characters inside each value is kept. In this context, "format" refers to these serialization rules, not to fonts or visual presentation.
- Types are dropped. The number 42 and the string "42" look identical in the file.
- Dates and decimals are written using a format mask or a default format. Precision and time zone information can be lost unless you specify them.
- Encoding limits what the file can hold. Accented letters, non-Latin scripts and emoji need a Unicode code page.
- Quoting and escaping protect structure. A value containing the delimiter, a quote or a line break must be enclosed or escaped. If it is not, one value splits into two columns or one row becomes two.
- Nulls and empty strings often both become an empty field, so the consumer may not be able to tell them apart.
- Fixed-length string ports can carry padding spaces into the file. Trim them if the consumer does not expect them.
The rows below show what conventional CSV quoting looks like for awkward values. They are a hand-written reference, not captured Informatica output, so compare your actual file against them.
customer_id,full_name,city,note
00042,"Ortiz, Zoë",Denver,"Asked us to ""call after 5"""
00043,Lee Min-jun,Austin,
Each row shows a specific convention:
• The comma inside the name is kept as part of the value because the field is quoted.
• The quotes inside the note are doubled, which is how quotes are commonly escaped in CSV.
• The empty note in the last row is an empty field, which a reader cannot distinguish from a null.
• The leading zeros in the ID are present as text in the file, but whether they survive depends on the program that reads it.
• The ë only round-trips if the file is written and read with the same Unicode encoding.
Will the file stay readable and usable once shared?
The file itself is plain text, so it can be copied, attached and compared without loss, and assistive technology can read it as text. Problems usually come from the program that opens it.
- Spreadsheet applications commonly reinterpret values when they open a file. They may drop leading zeros, show long numeric IDs in scientific notation or convert date-like strings. The file is unchanged, but saving it back from the spreadsheet can make those changes permanent.
- Some spreadsheet applications do not assume UTF-8 when opening a CSV that has no byte order mark, so accented characters appear garbled. Test whether your Informatica release can write a byte order mark and whether your destination needs one.
- In locales that use a comma as the decimal separator, some spreadsheet applications expect semicolons between fields.
- Line endings differ between Linux and Windows. Most parsers accept both, but strict ones may not.
- In a text editor, a screen reader announces raw delimiters and quotes, which is hard to follow for wide rows. In a spreadsheet, a header row lets cells be announced with their column names where the application supports it.
- Editing the file by hand can break the quoting. One stray comma shifts every following column in that row.
If the audience is people rather than a loader, provide a readable plain-text summary or a formatted report alongside the CSV. In every case, give the consumer a short written spec of the file's conventions: delimiter, qualifier, escape rule, encoding, header, how nulls appear and the date format.
A practical verification pass
- 1. Run the mapping against sample data that contains commas, quotes, line breaks, non-ASCII characters, nulls and leading zeros.
- 2. Open the output in a plain text editor before opening it in a spreadsheet, and check the delimiters, quoting and encoding.
- 3. Load the file with the actual consumer, not only with a spreadsheet application.
- 4. Compare row counts and spot-check values against the source.
- 5. Rerun the job and confirm whether it overwrites or appends, and whether appending repeats the header row.
Evidence gaps
No version-specific documentation, screenshots or test runs were supplied for this review. It therefore does not establish:
• The exact property names in your release.
• How your release writes quotes that appear inside values.
• Whether your release can write a byte order mark.
• How a particular spreadsheet application, partner loader or screen reader handles the file.
Confirm these with your release's documentation and a scoped test before relying on the output.