Other day while working on error handling scenario in my Cloud Flow, my Flow Checker given me following error.
Correct to include a valid reference to ‘Data Operation Divide‘ for the unput parameters(s) of action ‘Set_Error_Message‘.
Error from Flow checker

Lets see the reason and fix for this error.
Reason:
- In my flow, I am capturing the error message of my Compose action by name Data Operation Divide in my Set Variable action by name Set Error Message.
- My Data Operation Divide compose action does a simple division operation of ‘numA’ and ‘numB’ values using div function.

- My Set Error Message action configured to run only when Data Operation Divide compose action fails.

- Set Error Message action ‘Value’ configured with actions expression to read the Data Operation Divide action’s error.
- The expressions used is actions(‘Data Operation Divide‘)?[‘error’]?[‘message’]

- Everything does looks fine right?. Then where is the error?.
- The answer is actions expression does not accept spaces in the action name. In my case, action name is ‘Data Operation Divide‘ which has got spaces.
- Hence the ‘Flow Checker’ showing Correct to include a valid reference to ‘Data Operation Divide‘ for the unput parameters(s) of action ‘Set_Error_Message‘ error.
Fix:
- In the actions expression of Set Error Message action ‘Value’ parameter, replace spaces with underscore(_).
- Formula looks as below actions(‘Data_Operation_Divide‘)?[‘error’]?[‘message’]
- Notice the ‘Flow Checker’ and error is gone.

- Run the flow with ‘numA’ as 10 and ‘numB’ as 0.

- And the ‘Set_Error_Message‘ error action show the error message.

- So the bottom line, actions expression does not accept spaces in the action name.
Please refer my previous blog post with detailed explanation of error handling in Power automate flow.
🙂


![[Step by Step] Configure and consume 'Environment Variables' of type 'Secret' using 'Azure Key vault'](https://rajeevpentyala.com/wp-content/uploads/2023/05/image.png)
Leave a comment