Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.

  • Nived_Nambiar Profile Picture
    17,739 Super User 2025 Season 1 on at
    Re: New line compose instruction causing my Flow to fail suddenly but has worked for past year

    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! 🙌

     

  • Verified answer
    Brower Profile Picture
    14 on at
    Re: New line compose instruction causing my Flow to fail suddenly but has worked for past year

    @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
    17,739 Super User 2025 Season 1 on at
    Re: New line compose instruction causing my Flow to fail suddenly but has worked for past year

    Hi @Brower 

     

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

     

     

  • Brower Profile Picture
    14 on at
    Re: New line compose instruction causing my Flow to fail suddenly but has worked for past year

    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
    17,739 Super User 2025 Season 1 on at
    Re: New line compose instruction causing my Flow to fail suddenly but has worked for past year

    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! 🙌

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492