web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / New line compose instr...
Power Automate
Answered

New line compose instruction causing my Flow to fail suddenly but has worked for past year

(0) ShareShare
ReportReport
Posted on by 14

Long story short I'm taking an html form and pairing it down to individual components I'm interested in pulling.

 

My flow was working until yesterday and now one of my compose instructions has changed the output even though the parameters have not changed. 

Parameter for my NewLine instruction: 

"

"

 

Previously my raw input and outputs were both: "\n"

But as of today the input and output has been changed to: "\"\n\""

 

This is causing my input in my next step to change quite a bit:

 

Original:

Incident potential:: Medium||Brief description: XXXXXXXX|Detailed description: XXXXXXX|Incident type: Unsafe Condition|Incident status: Investigation|Submitted by: XXXXX|Submitted for: XXXXX|Submitter's preferred district: XXXX|District where incident occurred: XXXX|Submitter's supervisor: XXXXX|Customer: XXX XXX XXX XXXXX|Site: XXXXXX|Location: UNITED STATES, IOWA, STEAMBOAT ROCK|Engine type: XXXX X|Application code: XX|Date of incident: 04/30/2024 07:00 AM|Incident time zone: (UTC-06:00) Central Time (US & Canada)|Submission date: (UTC-06:00) 05/09/2024 11:43 AM|Investigation time limit: (UTC-06:00) 05/28/2024 01:25 PM|

 

Current:

Incident potential:
 
[cid:image006.png@01DAA5E1.3F395EC0]: Medium
 
||
 
Brief description: XXXXXX
 
|
 
Detailed description: XXXXXXX
 
|
 
Incident type: Unsafe Condition
 
|
 
Incident status: Investigation
 
|
 
Submitted by: XXXXX
 
|
 
Submitted for: XXXXX
 
|
 
Submitter's preferred district: XXXX
 
|
 
District where incident occurred: XXXX
 
|
 
Submitter's supervisor: XXXXX
 
|
 
Customer: XXX
 
|
 
Site: XXXX
 
|
 
Location: XXXXX
 
|
 
Engine type: XXXX XX
 
|
 
Application code: XXXX
 
|
 
Date of incident: 04/30/2024 07:00 AM
 
|
 
Incident time zone: (UTC-06:00) Central Time (US & Canada)
 
|
 
Submission date: (UTC-06:00) 05/09/2024 11:43 AM
 
|
 
Investigation time limit: (UTC-06:00) 05/28/2024 01:25 PM
 
|

 

Is there a quick way to remove the extra spaces being added? Or return my formatting to the the previous version using another function? My data is currently formatted as an array.

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Brower 

     

    I am bit confused on expected output which you require, also please share the expression which you are using to get the above values ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Brower Profile Picture
    14 on at

    Hello @Nived_Nambiar,

     

    Brower_4-1715714556929.png

     

    Brower_1-1715713891976.png

    I'm using many a compose expression to get to my desired end result creating a JSON array.

    Brower_3-1715714286424.png

     

    At the end of the day, instead of correcting the flow... I may be better off pursuing cleaning up my JSON array and removing the "\n\n" that is causing me issues originating back to the original compose step where I added in some delimiters for the html string I was processing.

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Brower 

     

    so you need a single \n instead of \n\n ?

     

     

  • Verified answer
    Brower Profile Picture
    14 on at

    @Nived_Nambiar,

     

    I needed to remove both, so I just did the following:

    Brower_0-1715716621006.png

    Not very elegant, and still confused what changed in the code but this does resolve the issue.

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Brower 

     

    so the issue is resolved ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard