want to skip the activity no record found in the lookup activity in flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 02:45 AM - edited 04-03-2024 02:47 AM
Hi Everyone,
Flow is giving an error if the lookup activity didn't find any record and the flow stop. As shown below in first step it query the record from table and then store the object id associate to all the records and then for each record it will try to find the associated VM (Step-3) and server (Step-4) using the object id. But some times there were no server in the server table with the same object id and due to that the flow stops and through an error because of that other record will not get updated so I want to apply a condition so that if no record found in the lookup activity in 4th step then flow can skip only 4th step and will update the record.
I try using If Else conditions but it's not working. Please suggest and provide step to achieve this functionality.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 05:34 AM
@Siddharth4 Instead of using Look Up Record use Look Up Records instead and check the count is greater than 0. It can be implemented as follows.
Please mark the answer helpful and correct if it manages to address your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 05:51 AM
Hi @Sandeep Rajput , Thanks for your reply, Please let me know what I can add after If condition to make that flow skip the step 4th and then directly jump to 5 & 6th step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 05:52 AM
I think the answer was already given: https://www.servicenow.com/community/developer-forum/flow-giving-an-error-if-no-record-found-in-the-...
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark