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 / Error handling in powe...
Power Automate
Answered

Error handling in power automate

(0) ShareShare
ReportReport
Posted on by

Hello, I'm trying to get information from JSON file:

Kowalski98_0-1637667938122.png

Sometimes PESEL is empty and flow can't download this propetry from JSON. I want to put there empty string when PESEL is empty and correct value when isn't. I have error and i can't do it because if statement isn't correct due to unseccessfull attempt with downloanding PESEL property. How i can do it? 

Categories:
I have the same question (0)
  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    Instead of an if, you can just use ? in your expression like below.  That way if it doesn't find it, it doesn't error.

     

    item()?['PESEL']

     

    Pat

  • Kowalski98 Profile Picture
    on at

    That's worked!
    Thank you!

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard