Hello,
I am facing an issue where the File Listener is processing only the first record and not moving to the second record. After analyzing the issue, i found that the TXT file’s line-ending character is “LF.”
Could you please suggest a solution to handle this and ensure all records are processed correctly?
Thank you!
@Kuruva Nikhil Kumar
Hello,
You should check the parameters of your associated service file in Method / Processing Option.
This will tell your process what’s the end of a line.
Regards
Anthony
Hi @Kuruva Nikhil Kumar
The File Listener in Pega is processing only the first record because the TXT file uses “LF” as the line-ending character, which might not match the expected line-ending format.
File Listener often expects (\r\n) as the default line separator. If the file uses only LF (\n) ,the listener might treat the entire file as a single line after the first record.
Regards,
Mohd Qizer Uddin
@Anthony_Gourtay The file we are receiving has LF as the line ending. Could you please suggest how we can convert it to CRLF or if there is an alternative solution to resolve this issue?
@Mohd Qizer Uddin I tried using \n as the record terminator, but it is not working. It is processing only one record.
@Kuruva Nikhil Kumar
Use different types of encoding techniques in Service File rule and try. You might get the solution. Attached is the screenshot for your reference.