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 / Microsoft Defender ATP...
Power Automate
Answered

Microsoft Defender ATP connector - error NotFound - flow fails

(0) ShareShare
ReportReport
Posted on by 9

Hello,

I have a basic flow who get a list of machines from an AAD group and for each machine it assign a Defender Tag.
In this list of machines, some of them are not yet onboarded in Defender, so the connector is not able to find them.

The problem is that the flow has the status 'failed' as it still continues.

When a machine is not found it continues well to the right branch which is what I want.

2022-08-22_09-39-54.jpg

 

But what I don't want it the staus of the flow to be 'failed' because for a few days now I receive a mail from Microsoft telling me it is disabling the flow because it fails everytime.

2022-08-22_09-42-57.jpg

 

Is there a way to avoid this ?

 

Thanks for your help

 

Marc

 

Categories:
  • Verified answer
    okeks Profile Picture
    802 Super User 2024 Season 1 on at

    You can put a Terminate action with Status set to Succeeded.

    okeks_0-1661236489291.png

     

  • MarcVDH Profile Picture
    9 on at

    Hello,

    Thank you for your answer but unfortunately it doesn't work, the 'Apply To each' step returns the error before the terminate step is executed.

    2022-08-23_08-53-56.jpg

     

    Marc

     

  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    You can configure it with run after failed.

    The only problem is, that it also shows as succeeded then if there is a real problem.

  • MarcVDH Profile Picture
    9 on at

    Hello,

    Oh, I forgot that setting again, thank you very much it is not finishing with a failed status anymore.

    Indeed, the only downside is, in case of a real problem, the status will still be 'succeeded' but in this case it will be ok.

     

    thank you very much for your help.

    Marc

     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard