⛔️ PROBLEM
You receive error "InvalidTemplate. Unable to process template language expressions in action ..." when triggering a FLOW from PowerApps form to send an email, or even without PowerApps in some cases.
The error may also seem intermittent sometimes.
You may try deleting and re-adding the erroring Outlook (email) action, removing references to any properties, changing the email address, but nothing works.
⛏️ How to fix InvalidTemplate error with FLOW
Export and import the Flow with different name as a workaround to fix the email action (or any other) trigger failure.Workaround steps for fixing intermittent email action failure
- Export the Flow.
- Import the Flow with a different name.
- Delete the old Flow.
- Re-add the new Flow to the PowerApps Flow option
- Run the Flow again to test.
There are variations for this error, you may face similar 'InvalidTemplate Unable to process template language expressions in action' error with different triggers. But the fix works for all such cases.
⚡️ Send_an_email_to_accounts action
InvalidTemplate. Unable to process template language expressions in action 'Send_an_email_to_accounts' inputs at line '1' and column '2575': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365_1']['connectionId']' cannot be evaluated because property 'shared_office365_1' doesn't exist, available properties are 'shared_approvals, shared_office365, shared_sharepointonline'.
⚡️ Get_file_content_using_path_-_report action
InvalidTemplate. Unable to process template language expressions in action 'Get_file_content_using_path_-_report' inputs at line '1' and column '2286': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']' cannot be evaluated because property 'shared_sharepointonline' doesn't exist, available properties are 'shared_office365users, shared_sharepointonline_1, shared_approvals, shared_office365, shared_planner, shared_office365_1'. Please see https://aka.ms/logicexpressions for usage details.'.
⚡️ Send_me_a_mobile_notification action
InvalidTemplate. Unable to process template language expressions in action 'Send_me_a_mobile_notification' inputs at line '1' and column '2084': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_flowpush']['connectionId']' cannot be evaluated because property 'shared_flowpush' doesn't exist, available properties are 'shared_sql'. Please see https://aka.ms/logicexpressions for usage details.'.
⚡️ Send_an_email action
InvalidTemplate. Unable to process template language expressions in action 'Send_an_email' inputs at line '1' and column '2514': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365']['connectionId']' cannot be evaluated because property 'shared_office365' doesn't exist, available properties are 'shared_sharepointonline'. Please see https://aka.ms/logicexpressions for usage details.'.
⚡️ Create_item_in_Functioneringsgesprekken action
InvalidTemplate. Unable to process template language expressions in action 'Create_item_in_Functioneringsgesprekken' inputs at line '1' and column '1973': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']' cannot be evaluated because property 'shared_sharepointonline' doesn't exist, available properties are ''. Please see https://aka.ms/logicexpressions for usage details.'.
Comments:
- That worked well, I could fix the InvalidTemplate, unable to process template language expression in the FLOW send email action.
25 Dec 2020 10:12:28 GMT
- Further comments disabled!
- How to save a file as csv in Windows Notepad?
- AADSTS90033: A transient error has occurred. Please try again. [Microsoft 365]
- How to know file encoding in Microsoft Windows Notepad?
- What is FCM Messages Test Notification! [Microsoft Teams] [Google Hangouts]
- How to turn on Bluetooth on Windows 10
- Error code 0xCAA82EE2: Something went wrong (request timed out) [Microsoft]
- How to fix Microsoft Windows 10 update error 80070020
- Power BI error Something went wrong, unable to read the application metadata
- 0xCAA20003: You ran into an authorization problem. [Microsoft]
- You're not on Teams yet, but you can set it up for your organization. [Microsoft Teams Login Error]
- [Microsoft Teams 4c7] Modern authentication failed here, but you'll still be able to sign in. Your status code is 4c7 error
- How to activate and use Microsoft Teams Together mode
- FCM Messages! Testing Notifcation from Microsoft to investigate this problem [Microsoft Teams]
- What version of windows do I have?
- Microsoft Office 365 error code 135011 - Your organization has disabled this device
- How to take a screenshot on Microsoft Windows OS on PC or Laptop
- Fix \"412 Cookies Are Disabled\" error in Exchange Admin Center when you click hybrid
- Outlook and Hotmail not working - email issue, message not delivered, send receive problem
- Microsoft Sign-in Error Code: 50058 (Request Id, Correlation Id and Timestamp)
- [Error] Microsoft Teams: We're sorry—we've run into an issue.
- Microsoft Edge browser error on MAC - This page is having a problem Try coming back to it later
- The authenticated user is not authorized to access this resource - Stream/SharePoint/Teams/OneNote
- Internet Explorer browser auto redirect to Microsoft Edge for compatibility with modern web sites
- Microsoft Office Excel - Couldnt Open the Workbook - The workbook cannot be opened.
- Microsoft 365 Excel - PRO TIP Discover insights quickly with Power BI, which is already included in your Microsoft services, See it in action
- Microsoft Stream - This may not be for you, It looks like you don't have permission to watch this video
- Free and easy audio video screen recording using Microsoft PowerPoint
- Customize Praise badge for Microsoft Teams with own images, values, brand
- Outlook - The mailbox isn't available. This may have occurred because the license for the mailbox has expired.
- Error 50057 - User account is disabled. The account has been disabled by an administrator [Microsoft - Teams - Azure]
- The declared package does not match the expected package Eclipse - Android
- JSON Tutorial: List of Lessons - Json-Tutorial
- Android : No Launcher activity found! Error - Android
- Set Title to Android AlertDialog - Android
- Android AlertDialog with Yes No and Cancel Button - Android
- New-SPLogFile PowerShell - create new SharePoint log file - SharePoint
- Get HTML table td, tr or th inner content value with id or name attribute - Html
- Center Align TextView Android Horizontally or Vertically - Android
- NOTE: This project contains resource errors, so aapt did not succeed, which can cause rendering failures. Fix resource problems first. - Android
- Android Disable back button programatically - Android
- How to make a dummy phone call from Android Emulator device - Android
- How to extract deployed WSP solution from SharePoint FARM using PowerShell - SharePoint
- Kill or force quit stuck application or process in Mac OS X - Mac-OS-X
- Deploy SharePoint wsp solution package using PowerShell - SharePoint
- Calculate Volume of Sphere - C-Program