cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bsmith736464
Helper I
Helper I

Trim Error on Dynamic Content from Excel

I am pulling values from rows in Excel and trying to run the trim function on the values to make sure it is correct but I keep getting the error of:

 

"InvalidTemplate. Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '2202': 'The provided parameters for template language function 'trim' are not valid.'."

 

My trim expression is: trim(body('List_rows_present_in_a_table')?['value'])

 

Any help would be greatly appreciated.

 

Screen Shot 2020-02-16 at 9.15.00 AM.png

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

Hello @bsmith736464 

Insid the compose action, you should insert an expression like the following: 

trim(items('Apply_to_each')?['Title'])

In this example I apply the trim to a column called Title, so you should replace it by the column name you want to be trimmed.
Hope it helps!
Ferran
Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

1 REPLY 1
fchopo
Super User
Super User

Hello @bsmith736464 

Insid the compose action, you should insert an expression like the following: 

trim(items('Apply_to_each')?['Title'])

In this example I apply the trim to a column called Title, so you should replace it by the column name you want to be trimmed.
Hope it helps!
Ferran
Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

Helpful resources

Announcements
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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,148)