Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

"\n" of text area is causing new line in CSV file

SA-13216

Summary



Escape characters are causing different issues in the CSV file generated using BIX Extract.
Some examples are given below:
- Any field having Enter, "\n" causes new row in the CSV file generated using BIX Extract.
- Any field having Comma "," causes new column.


Error Messages



Not Applicable


Steps to Reproduce



1. Enter "enter" command in any field having text area control.
2. Extract this field using BIX and generate CSV file.
 

Resolution

The CSV file generated by BIX conforms to the RFC 4180 standard.

From RFC-4180, 

[quote] 
6. Fields containing line breaks (CRLF), double quotes, and commas should be enclosed in double-quotes. For example: 
"aaa","b CRLF 
bb","ccc" CRLF 
zzz,yyy,xxx 
[/quote]


It is up to the application program that reads the CSV, to process it as per the standard, if required. 
For example: DB2 is able to correctly load the generated CSV into a table, whereas MS Excel will interpret the newline character even though the corresponding field is quoted.

Published August 27, 2015 - Updated December 2, 2021

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice