Write from map structured operation cannot add new line (\n)?
Using the write from map structured operation, we are unable to add literal text such as "\n" after calling the map structured rule in the method. This is clarified in Pega help but also a limitation to our requirement and perhaps something that is generally requested so I am hoping there is another way to do this when we need to write a structured file.
We should be able to have a way to carriage return upon completion of a map structured record but the current platform does not enable us to do this. There is a workaround but when running a partitioned data flow (multi-threading) we can end up with a file with multiple records on one line followed by multiple carriage returns which is not the intention.
The workaround is to add a second step after the first connect-file step and with the write from clipboard operation, add literal string "\n"
***Updated by Moderator: Marissa to add SR Exists group tag; updated categories; add Feedback ID***
As you have discovered, the behavior you are experiencing is currently the expected behavior for the Map Structured and Connect-File features you are using.
An enhancement request should be raised for the ability to properly map String literals in Map Structured (such that characters such as '\n' do not appear as "\n") and/or specifying a terminator for the Connect-File rule or Connect-File function.
In order for those involved to properly understand this use case, please provide examples of the Rules in your application that are leading to the issue.
I have submitted the enhancement request on your behalf and updated your original post with the Feedback ID. If you want this feature as well, please contact your Account Executive with the Feedback ID.