Fix Power Automate FLOW error - InvalidTemplate Unable to process template language expressions in action


⛔️ 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.

FLOW InvalidTemplate error
FLOW InvalidTemplate error

⛏️ 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
  1. Export the Flow.
  2. Import the Flow with a different name.
  3. Delete the old Flow.
  4. Re-add the new Flow to the PowerApps Flow option
  5. 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!
Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap