I've reviewed all posts with the subject line "Parameter 'Attachment Content' cannot be null or empty.", but I don't seem to find a solution. I believe my flow is built correctly. I initialized the array variable before the condition and after the condition I used the get attachment content and append to array variable. Any tips on what I may be missing? The flow was working until suddenly it started giving this error. So bizarre.
Inside of Send an email:
Solved! Go to Solution.
I resolved this by deleting the cards and rebuilding them from scratch in exactly the same way. I didn't change anything, so I am guessing this may have been a system glitch.
I resolved this by deleting the cards and rebuilding them from scratch in exactly the same way. I didn't change anything, so I am guessing this may have been a system glitch.
I am having this exact same issue and have compared my workflow to yours and it's the same. Not sure what you meant by deleting the cards and rebuilding them from scratch?
@FL1 I completely removed the steps that have to do with attachments. I removed and then re-added these:
Here is the expanded "Apply to each" - the apply to each is added on automatically once you add the step "Get attachment content":
I was able to successfully re-add the attachmentArray to "Attachments" (under Show Advanced options) of the email card:
I hope this helps!
It does explain what you meant - thank you very much for coming back with the detailed explanation! It's now working.
I also found another solution, which if the above doesn't work, might help someone else.
Follow the steps as oaghaei has detailed above with one change: instead of appending "Attachment Content" to the "ContentBytes" property of the array, append this expression: body('Get_attachment_content').$content
Thanks! Solved it too by deleting the attachment parameters in the send email action, then saved, then added again. Great.