0

I am getting this error message:

InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '3364': 'The template language expression 'body('Get_item')['EmployeeLoginID']' cannot be evaluated because property 'EmployeeLoginID' doesn't exist, available properties are 'value'. Please see https://aka.ms/logicexpressions for usage details.'.

enter image description here

this has happened after I added several conditions to my "Apply to each" .

My current flow: enter image description here The two conditions here are "Employee_PrimaryLoginID" and "EmployeeID"

This is particularly strange as I didnt have this error before, then after appending so more conditions beneath this condition I am getting this error.

Any help would be appreciated.

Jonnyboi
  • 505
  • 5
  • 19

2 Answers2

1

This problem happens sometimes when you introduce new connectors to a flow after you have initially saved the flow without using that connector.

You can choose the following solutions:

1.Recreating new flow from scratch solve the issue.

2.Go to the Power Automate, export your flow. Then, Import your flow ( as a new flow).

enter image description here

enter image description here

enter image description here

enter image description here

Reference:

Unable to process template language expressions in Custom Connector

EchoDu_MSFT
  • 621
  • 4
  • 3
  • On import, is there anything in particular i am looking to change? I tried export and importing and still same error :( . I "Created as new" instead of overwriting. – Jonnyboi Sep 08 '21 at 20:41
  • Hi Jonnyboi. We recommended that you create a new Microsoft Flow to replace it. And delete the error Microsoft Flow. – EchoDu_MSFT Sep 09 '21 at 07:14
1

The issue sometimes occurres when the field value is null on CRM. Because of that the Dataverse connector didn't return the field name in the output so when trying to get the value of the field it returned the above error.

An alternative solution for this issue is to check if the field exists before getting its value, like this :

if (contains(body('Get_item'),'EmployeeLoginID') , body('Get_item')['EmployeeLoginID'],'')
Tomerikoo
  • 18,379
  • 16
  • 47
  • 61