web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ActionConditionFailed....
Power Automate
Unanswered

ActionConditionFailed. The execution of template action 'Start_and_wait_for_approval_from_Controller' failed: an unexpected exception encountered when evaluating branching condition.

(0) ShareShare
ReportReport
Posted on by 20

I apologize for the long thread in advance!!!😂

 

I have a strange situation with a Power Automate and I am hoping someone might see where I am going wrong with it.  I will do my best to explain, provide some pictures, and can provide more details for any questions.

 

I have a Sharepoint list that has a variety of fields, but only a couple control the Workflow. Here are the fields and their types:

Status - Single line of text

BU Approver Check  - Yes/No (Toggle)

Finance Approver Check  - Yes/No (Toggle)

Controller Approver Check  - Yes/No (Toggle)

ApproverCnt_Ref - Single line of text

 

I have a Power App that ensures each field above gets the necessary information for the workflow.

 

Now here is the flow:

Steps 1 & 2

Ronin_Tico_0-1675459410846.png

At Step 3 I have a Switch which checks the "ApproverCnt_Ref" field for a number from 1 to 3.

Ronin_Tico_1-1675459884240.png

Based on the number stored in that field, it takes action to Start and wait for an approval. The count in that field is based on the 3 toggles noted above. The Power App does a count of them and stores that number in 2 different fields.  One is actually a Number field which did not play nice with this Switch since they are stored as "Floats" and for some reason the int() function would not work to convert them. So to work around it, I adjusted my Power App to store the number as text in the Single line of text field as well and it seems to work.  Here is where the problem comes in.

 

See figures 1&2 below as a reference.  It gets past step 2, goes to the switch in step 3 and correctly hits Case 1 in my testing, and then bombs when it tries to work the Approval process.

2023-02-03 16_08_10-Window.jpg2023-02-03 16_09_40-Window.jpg

So here are important points.

  1. This is in a new Environment in my Power Platform and Approvals have not been provisioned.  The first run of this flow should provision it.
  2. I exported the flow and took it to my Default Environment where Approvals are provisioned and have run just fine in the past, but I still get the same errors.

Now, I also tried running this flow with a 2 approver count and something different happened which was strange as well.  Use the below images as a point of reference as well.  In the first image, you can see the input and I have the three toggles.  So in the second image you will see Case 2 where I have a condition testing specifically for what two toggles are set as "True" at the same time. In screen number 3 you see the test run and it shows "No inputs" for the condition.

2023-02-03 16_47_04-CAS Test.json_ - Microsoft Visual Studio.jpg

Ronin_Tico_2-1675460713741.png

2023-02-03 16_43_20-Window.jpg

Categories:
I have the same question (0)
  • Ronin_Tico Profile Picture
    20 on at

    UPDATE:
    I did get the Approvals installed in the new environment by setting up a basic flow that I triggered for a basic approval.  I then tried my flow again with a single approver and still getting the below error.

     

    I feel like it is linked between my cases being numbered and how I had to handle the Approver Count field as a "type", but it seems the conventional stuff that I have tried is not working.  Any ideas are GREATLY appreciated!

    2023-02-06 10_45_01-Window.jpg

     

  • Verified answer
    Ronin_Tico Profile Picture
    20 on at

    I found my answer.  The problem was in the Condition/Switch piece.  They were not properly accepting the direct input from the SharePoint fields.  I had to setup variables for the needed fields.

    So for the ApproverCnt_Ref single line of text field, I had to use the int() function to convert it to an Integer.  Then I had to setup 3 separate Binary variables for the toggles.  I changed the flow around for those variables and it is now working.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard