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 / Append to array variab...
Power Automate
Suggested Answer

Append to array variable returning errors in power automate

(0) ShareShare
ReportReport
Posted on by
Hi IT Community, 
 
I'm currently building a flow to check conditions in a column named freight_weight for example :  
- Not Null
- Not Empty
- Not string 

All condition are put into a loop called Apply to each row. Unfortunatelly when I run the flow this error happened that I can't understand because the condition is inside the loop.



 
 
 
 
Is there anyone who faced this before, would be great to share your experience here. 


Thanks. 
 
I have the same question (0)
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,204 Super User 2026 Season 1 on at
    Hi,
     
    Make sure ----Append to array variable is inside the same Apply to each row loop
    The action must be nested directly inside the loop where freight_weight is being processed.
    Use item() instead of the loop name
     
    Replace:
    items('Apply_to_each_row_2')?['freight_weight']
    With:
    item()?['freight_weight']
     
    This avoids issues if the loop name changes.

    Check the JSON object in Append to array
    Example:
    {
      "row": "@{add(iterationIndexes('Apply_to_each_row_2'),2)}",
      "column": "freight_weight",
      "value": "@{item()?['freight_weight']}",
      "errorMessage": "Freight weight is missing or not a valid number"
    }

    If using iterationIndexes(), verify the loop name
    The error message indicates Apply_to_each_row_2 may not exist anymore.
    Either update the loop name or remove the row calculation temporarily to test.
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 462

#2
Vish WR Profile Picture

Vish WR 256

#3
David_MA Profile Picture

David_MA 242 Super User 2026 Season 1

Last 30 days Overall leaderboard