TIBCO ActiveMatrix Adapter for Files does not read the end of line which has a CR+LF.

TIBCO ActiveMatrix Adapter for Files does not read the end of line which has a CR+LF.

book

Article ID: KB0089224

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows -
Not Applicable -

Description

Description:
After upgrading TIBCO ActiveMatrix Adapter for Files to 6.1.0 or 6.2.0, it is not able to parse the file with line ending with CR+LF (Carriage Return+Line Feed).

Symptoms:
The following error is thrown in log file.

********
Error [Adapter] AEFA-000074 The line contains an invalid field.
********

Cause:
TIBCO ActiveMatrix Adapter for Files partly reads the end of line (in this case, CR+LF).

Resolution

Use pre-script shell in 'Pre Processing Script File' to convert CR+LF (Carriage Return+Line Feed) to LF before TIBCO ActiveMatrix Adapter for Files uses this input file.

The batch file 'Replace_CRLF2LF.bat' and Java file 'ReplaceFileContents' are attached in the file (Filename:Java files for FIX_Parsing_issue.rar) for reference. Put this into the preprocessing script to convert CR+LF to LF. To run the pre-processing script, the system variable PATH needs to point to JRE 1.6.0 or higher in the bin folder.

Issue/Introduction

TIBCO ActiveMatrix Adapter for Files does not read the end of line which has a CR+LF.

Attachments

TIBCO ActiveMatrix Adapter for Files does not read the end of line which has a CR+LF. get_app