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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PAD Native Run OK, PAD...
Power Automate
Answered

PAD Native Run OK, PAD Called by Cloud Flow Fails - Raw Passed Parameters some are suffixed with \n

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Folks,

Running Power Automate Desktop Flow on Desktop runs successfully, Running Cloud call to PAD flow fails, some composed parameters appear suffixed with \n

 

RAW Cloud Parameters -

"host": {
"connectionReferenceName": "shared_uiflow",
"operationId": "RunUIFlow_V2"
},
"parameters": {

"item/MCYY": "2020\n",
"item/INFOLDER": "TEST\n",

 

"error": {
    "code""Folder.RetrieveFilesError",
    "message""Problem while executing action 'GetFiles'. Can't retrieve list of files in folder C:\\Users\file-path built is correct up to this point(single parm) \\TEST\n."
  }
 Native Default parameterms set in PAD flow:
Combobulated_6-1619186642973.png

Combobulated_0-1619178762009.png

 

Combobulated_1-1619178973442.png

 

Cloud Parms are grabbed from a trigger email body text using compose steps:

Combobulated_0-1619185642573.png

Compose - length(body('Html_to_text')) 

Compose1 - add(indexOf(body('Html_to_text'),'Process_Folder:'),16)

Compose3 - indexOf(body('Html_to_text'),'Process_Year:')

Compose4 - substring(body('Html_to_text'),outputs('Compose_2'),sub(outputs('Compose_3'),outputs('Compose_2')))

Compose5 - add(indexOf(body('Html_to_text'),'Process_Year:'),14)

Compose6- indexOf(body('Html_to_text'),'Exclude_String:')

Compose7- substring(body('Html_to_text'),outputs('Compose_5'),sub(outputs('Compose_6'),outputs('Compose_5')))

Compose8- add(indexOf(body('Html_to_text'),'Exclude_String:'),16)

Compose9 - indexOf(body('Html_to_text'),'END')

Compose10 - substring(body('Html_to_text'),outputs('Compose_8'),sub(outputs('Compose_9'),outputs('Compose_8')))

Combobulated_7-1619186750880.png

Cloud flow Run output shows parameters as expected -

Combobulated_1-1619186193800.png

 But RAW data shows suffix \n

Combobulated_2-1619186241559.png Combobulated_4-1619180125124.pngCombobulated_3-1619186283839.png

 

Combobulated_4-1619186350884.png Combobulated_5-1619180168728.pngCombobulated_5-1619186388727.png

 

How to fix/interpret suffixed raw \n error in the constructed get files search file path built using Compose steps..?

 "error": {

    "code""Folder.RetrieveFilesError",
    "message""Problem while executing action 'GetFiles'. Can't retrieve list of files in folder C:\\Users\file path built is correct up to this point(single parameter) \\TEST\n."
  }

Is this a control character set issus or text/numeric conversion issue? or something else...

 

 Any help/advice would be very much appreciated... 

 

Thanks,

Clive


 

  • Verified answer
    fraenK Profile Picture
    2,125 on at

    \n is a newline, your cloud flow screens don't clearly show that there is no newline.

    Either try to avoid capturing newlines in the output or run trim to remove them

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#trim

    or replace them in PAD

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi FreanK,

     

    I trimmed the /n (newline) and this resolved the issue.

     

    Many thanks for your help, I have marked this as a solution.

     

    Best regards,

    Combobulated

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard