I've had this happen frequently enough to convince me it's a bug and not something I've caused to happen.
How to recreate this effect:
1) Create any action that results in an output for which the following expression is a valid "attachments content" parameter in the Send Email action: outputs('action_name')?['body']
2) Create a Send Email action. use the output from the previous action in the "attachments content" parameter
3) Run the flow, assume it works without error.
4) Edit the flow. I can't say exactly what to edit that causes this error.
5) Save and run the flow again.
6) An error occurs on the action "Send Email". Error Details: "Parameter 'Attachment Content' cannot be null or empty."
7) Edit the flow and observe that the "attachments content" parameter has changed from outputs('action_name')?['body'] to body('action_name')?['body']
Screenshots of the flow and error:
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.