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 / Flow showing error whi...
Power Automate
Suggested Answer

Flow showing error while running

(0) ShareShare
ReportReport
Posted on by 5
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
     
    The error is saying: Your Update item action is calling length() on something that came back null.
     
    length() only works with a string or an array, so if the value is null the run fails (this happens a lot with optional fields like comments, responses, attachments, etc.).

    Fix:
     
    1. Go into the Update item action and find the expression that looks like:
      length(<something>)or length(<something>) > 0 (or something similar)
       
    2. Then make it null-safe by wrapping the value with coalesce() (treat null as empty):
    • If <something> is text
      length(coalesce(<something>, ''))
       
    • If <something> is an array (e.g., attachments/value)
      length(coalesce(<something>, createArray()))
    Let me know if it worked if not, please add a screenshot of your Update item action in edit mode.

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 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard