Connect File Adding a CRLF at the end of the line

I am trying to write an XML I am generating using a XML Stream into a File. My activity is listed as follows:

1. Creating a temp page
2. Calling the Propert-Set-XML where I am calling the XML Stream and saving the response to a property
3. Calling the Connect-File and writing the property value

My Connect-File is set to append to the existing file. When I run the activity multiple times, the XML from the stream is getting appeneded to the end of the same line. I need to introduce a CRLF at the end of every write. What is the best way to add the CRLF ?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

December 19, 2013 - 12:26pm

The solution is to add the + "\n" in the step where I am calling the Connect-File

November 11, 2016 - 6:26am

Hi ,

I am writing the file using Map Structured Rule. I also want to write next record in the new line. What is the solution for that.

I tried to use +"\n" in the parametere step while calling connect file. but it did not work

please suggest

November 11, 2016 - 6:28am
Response to ArpitM09

Hi Arpit,

To increase the visibility for your question, we have created a new post for you. Please update that post and continue your discussion. 

While writing the file using Map Structured Rule, How do I write the next record in the new line?

Lochan  |  Community Moderator  |  Pegasystems Inc.

Lochana | Community Moderator | Pegasystems Inc.