I stumbled over a pitfall that cost me some valuable time during a proof of concept:
A comma-separated file is processed within the E2E Bridge. If any error happens during validation or processing, an operator may edit the file within an E2E User Interface.
The full file content is displayed in a text area. The operator can edit and submit the content.
When submitting, the browser removes any linefeeds in the file – the content arriving on server side is all in one single line, thus the flat file adapter has troubles parsing it into a useful structure.
Solution (proposed by Marcel – thanks again):
this.editedPayload = $("#ID::textArea").val().replace(/r?n|r/g,"EOL");
Postprocess the content before feeding the flatfile adapter using an ActionScript:
local lineFeedsRedone= editedPayload.replace("EOL", text("n"));