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

Data import fails when fields contain CR/LF chars

SA-16044

Summary



Unable to use the Data Explorer Load feature (data import from a file). The log file displays a java.lang.StringIndexOutOfBoundsException. A dialog box on the screen displays 'Uploading...', and then clears the input file name.

ERROR MESSAGE

No error on the UI side. Importing a file failed; the log file showed a java.lang.StringIndexOutOfBoundsException. On the end user side, the dialog box says briefly 'Uploading...' and then clears the input file name.

STEPS T REPRODUCE

Go to Data Explorer.
Create a new data type if necessary.
Click Records tab.
Click Actions > Import.
Load a CSV file similar to the attached example.


Root Cause



A defect in Pegasystems’ code or rules. If there is a new line character within the CSV fields, while importing the file, these new line characters are treated incorrectly and parsed as if it's the end of a row in CSV.

Resolution



Apply HFix-24318. The fields containing new line characters will be enclosed in double quotes while exporting. While importing, parsing logic is changed to handle new line characters within the fields.
 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% 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?

Want to help us improve this content?

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
Contact us