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 / The value cannot be nu...
Power Automate
Unanswered

The value cannot be null. The action type 'AppendToArrayVariable' only supports values of types 'Float, Integer, String, Boolean, Object'.

(0) ShareShare
ReportReport
Posted on by 517

Hello. i have a EmailList column  which is a Person/Group data type in SharePoint.. and in my customized form using Power Apps, I set required property to "true" but still some users can proceed with the submission of item... and in the workflow i developed, i created actions Initialize Variable Array, then Append Array EmailList (Person/Group) values and then Join using semi colon (;) separator and the output was in the CC email. Problem is, whenever the EmailList has no value, the workflow will encounter an error? 

 

Can someone help how to handle this? Also, how can I limit the Person/Group email to exclude the SharePoint groups in searchable items?

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @jaina 

     

    I faced the same problem a week ago. To handle it, while appending I was checking if the current column value is null or not. If it was null, I was passing 'NA' to it. You can pass anything, like null or NA too.

    And if it was not null, I was passing the value.

     

    I used an expression:

    if(equals(items('Apply_to_each')['field'],null),'NA',items('Apply_to_each')['field'])

     

    You can apply the same method. And use a similar expression that I have used above.

     

    After this you can use filter array action to just filter out the values that have values and remove the ones that are null. 

     

  • chintu49 Profile Picture
    45 on at

    Hi, I am getting this error message as well (The value cannot be null. The action type 'AppendToArrayVariable' only supports values of types 'Float, Integer, String, Boolean, Object'.), but I am not sure where or to which step I should apply that expression, could you please help with the screenshot or exactly which action should i add and where should i add? below is my workflow screenshots in detail

     

     

    chintu49_0-1713467301588.png

    chintu49_1-1713467344063.png

    chintu49_2-1713467402796.png

    chintu49_3-1713467440449.png

     

    chintu49_5-1713467495583.png

     

    chintu49_6-1713467524401.png

     

    Any help is appreciated

     

    Chintu

     

     

  • chintu49 Profile Picture
    45 on at

    Forgot to attach error message

     

    chintu49_7-1713467637680.png

     

     

    chintu49_8-1713467661738.png

     

  • Sundeep_Malik Profile Picture
    6,501 on at

    @chintu49 

    Can you show what you are putting in append to array variable?

  • chintu49 Profile Picture
    45 on at

    @Sundeep_Malik 

     

    Thank you for your response really apprecaite, here is the screenshot for the append to array variable. I am putting body and then "AccountOwnerEmail" in "Name" field and "Resourceemailaddress" that comes from the dataset table in the "Value" field

     

    chintu49_1-1713546801070.png

     

    chintu49_2-1713546842576.png

     

  • chintu49 Profile Picture
    45 on at

    @Sundeep_Malik can you please help

  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @chintu49 

     

    Sorry for late reply. I am really depressed these days because I have not found a new job in the last 2 months.

     

    I used the same solution which I gave to @jaina

     

    Here is the error I am getting:

    Sundeep_Malik_0-1713633695407.png

     

    I am just passing check dynamic value:

    Sundeep_Malik_1-1713633788546.png

     

    Then I tried the below expression:

     

    if(equals(items('Apply_to_each')?['Check'],null),'NA',items('Apply_to_each')?['Check'])

     

    Above I am seeing if check has null in it or not. If it has null I am adding NA to the append to variable, you can pass false, or anything else, whatever you want. You can pass single quotes too to add a null value. But directly dont add null in it.

     

    You can also try the below expressions, might work in your case:

    if(equals(items('Apply_to_each')?['Check'],''),'NA',items('Apply_to_each')?['Check'])
    if(empty(items('Apply_to_each')?['Check']),'NA',items('Apply_to_each')?['Check'])

     

    Just replace items('Apply_to_each')?['Check'] with your dynamic expression.

     

    See now my flow works without any errors:

    Sundeep_Malik_2-1713634235562.png

     

     

    I hope this helps 🙂

     

    Looking for a New Job. Please Help!!!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard