Showing results for 
Search instead for 
Did you mean: 
New Member

Help with Flow Error

I'm trying to set up a form to send me responses via a PDF document using Power Automate. I've built my first flow, but I'm getting the following error message when I test it out:


Unable to process template language expressions in action 'Compose' inputs at line '1' and column '22124': 'The template language function 'replace' expects its first parameter 'string' to be a string. The provided value is of type 'Object'.


The expression I am using is 


I have no idea I'm getting this error. Any help would be appreciated.
Super User
Super User

Hi @TripleD 


If you looking to get the whole body outputs('Get_file_content')?['body']  to do a replace then you need to convert that to a string.


Use the below expression:



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up

Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,303)