cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DarkLord22
Level: Powered On

Switch Error

Hey everyone and thank you for the help

 

I have 3 switches which check the state of a sharepoint database

 

If Switch 1 is approved it goes to Switch 2

if Switch 2 is approved it goes to Switch 3

but for a reason i cant find even thought all switches are the same the last switch gives me the bellow error:

 

The execution of template action 'Switch_3' failed: The result of the evaluation of 'scope' action expression '@body('Update_item_5')?['BA_x0020_approval']' is not valid. It is of type 'Null' but is expected to be a value of type 'String, Integer'.

 

The column is filled with the correct data but it says it is not valid and i am not sure why...

 

Thank you again for the help!

3 REPLIES 3
Community Support Team
Community Support Team

Re: Switch Error

Hi @DarkLord22 ,

 

Could you share screenshots of the Flow configuration?

It is difficult for me to analyze the specific reasons for the error only from the description.

Please provide more information to analyze the cause of the error.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DarkLord22
Level: Powered On

Re: Switch Error

DarkLord22
Level: Powered On

Re: Switch Error

I get the error: 

 

ExpressionEvaluationFailed. The execution of template action 'Switch_3' failed: The result of the evaluation of 'scope' action expression '@body('Update_item_4')?['BA_x0020_approval']' is not valid. It is of type 'Null' but is expected to be a value of type 'String, Integer'.

 

I have 3 switches which check the of a sharepoint cell

if it is Approve it goes to the next switch and then to the next.

 

The error appears at the last switch and i cannot identify why..

 

Thank you all

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,625)