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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / email V2 attachment va...
Power Automate
Suggested Answer

email V2 attachment value cannot be null

(0) ShareShare
ReportReport
Posted on by 2
We have multiple flows sending mails with attachments. All of them are build the same way, getting the attachments from a sharepoint list, adding them to a variable and then sending the mails. Two of the flows suddenly stopped working and now always throw an error "Value cannot be null. Parameter name: s at System.COnvert.FromBase64String(string s)." All the other flows with the same setup still work. 
 
Anyone has the same problem and knows a solution for this? 
 
Error:
adding content to the variable:
 
Attachment in the mail:
 
Categories:
I have the same question (0)
  • Suggested answer
    rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at
     
    Could you please check the value of the Attachment Mail variable after the append operation? You can simply add a Compose right after the append to print the variable's value. 
     
    It is possible that your need to enclose the dynamic contents with double quotes to represent them as strings inside the object. If you don't enclose it, then Power Automate will interpret this object as a single big string, leading to this issue in the Send email action (which expects an array of objects, and will receive an array of strings instead). 
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn
  • MP-30041046-0 Profile Picture
    2 on at
     
    thanks for the answer. I tried as you suggested but the string is enclosed in the compose:
     
    I also tried encosing the dynamic content with the same result. It is also strange as it worked for month without any problems but just suddenly stopped working. And other workflows build the same way still work...
  • Suggested answer
    rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at
     
    I think I got it. You need to capitalize the C in ContentBytes. ​​​​​​
     
    This seems to be a recent change in the Outlook connector, where the contentBytes (lower-case) was updated to ContentBytes (upper-case). I found it here: https://learn.microsoft.com/en-ie/answers/questions/2238771/what-is-causing-this-error-value-cannot-be-null-rn
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard