Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

"undefinedUnable to process template language expressions in action" when extracting email address

(0) ShareShare
ReportReport
Posted on by 9

I built a Flow to extract an email address and message from an automated email from Smartsheet to send an email automatically to the email address extracted. It was working for me during testing and now that I have rolled it out for my team to use, it stopped working at the Email Address extraction step. The run details say:

 

Unable to process template language expressions in action 'Email_Address' inputs at line '0' and column '0': 'The template language expression 'last(split(outputs('Split_Body_Text')[6],':'))' cannot be evaluated because array index '6' is outside bounds (0, 0) of array. Please see https://aka.ms/logicexpressions for usage details.'.

 

This has been working until today so I don't understand what changed.

 

Here are the Expressions for each of my Compose functions:

Split Body Text:

split(body('Html_to_text'),outputs('EnterKey'))
 
Email Address (the point of failure):
last(split(outputs('Split_Body_Text')[6],':'))
 
Email Body:
 first(split(last(split(outputs('Html_to_text')?['body'],'text')),'End'))

 

Screenshot 2024-05-25 135740.pngScreenshot 2024-05-25 140002.png

  • Verified answer
    KRASR001 Profile Picture
    9 on at
    Re: "undefinedUnable to process template language expressions in action" when extracting email address

    I ended up finding a video that helped- https://www.youtube.com/watch?v=0Tsb_BMuwpw

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow