⛔️ 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!
- Keyboard shortcuts to format Source code in Microsoft Visual Studio Code IDE
- Power BI error Something went wrong, unable to read the application metadata
- Fix 0x80070194 Error When Opening Microsoft OneDrive File
- Fix - Microsoft Windows Error Code: 0xA00F4244 NoCamerasAreAttached
- Graph API error when querying BookingBusinesses - ErrorExceededFindCountLimit, The GetBookingMailboxes request returned too many results
- How to take a screenshot on Microsoft Windows OS on PC or Laptop
- [Fix] Microsoft AADSTS900561: The endpoint only accepts POST requests. Received a GET request.
- Microsoft Edge Fix: ERR_TUNNEL_CONNECTION_FAILED
- Fix - 412 Cookies Are Disabled error in Exchange Admin Center when you click hybrid
- Remove mailto link from Microsoft 365 Word Document Email Text
- Fix Power Automate FLOW error - InvalidTemplate Unable to process template language expressions in action
- Microsoft Edge browser error on MAC - This page is having a problem Try coming back to it later
- Outlook and Hotmail not working - email issue, message not delivered, send receive problem
- What is FCM Messages Test Notification! [Microsoft Teams] [Google Hangouts]
- How to record PowerPoint slide show presentation on Mac - narration, slide timings, ink gestures
- How to activate and use Microsoft Teams Together mode
- Install Microsoft Remote Desktop (RDP) Client on Mac
- Outlook - The mailbox isn't available. This may have occurred because the license for the mailbox has expired.
- How to fix Microsoft Windows 10 update error 80070020
- The authenticated user is not authorized to access this resource - Stream/SharePoint/Teams/OneNote
- Microsoft Office Excel - Couldnt Open the Workbook - The workbook cannot be opened.
- Convert GMT/UTC timezone in Excel to EST, CST, MST, PST, AST and HST
- [Fix] Connect to Minecraft Remote Connect URL via https //aka.ms/remoteconnect
- Remove Possible Data Loss Message from Microsoft Excel
- How to Open and Use Microsoft Edge Console
- Android : IOException: Unable to open sync connection! - Android
- Force convert HTML text input to upper case - Html
- How to Disable Mac Terminal Bell Sound - MacOS
- Android Emulator Screenshot saved location - Android-Studio
- How to Adjust macOS System Font Size - MacOS
- Cmd command get current directory location - Windows
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum - HowTos
- How to enable line numbers in Eclipse IDE - Eclipse