Flow giving an error if no record found in the lookup activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 03:29 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.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 04:50 AM
You can set it that the flow does not stop on error. You can then add an if to do what you want if no record is found.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 05:27 AM
Hi @Mark Manders , Thanks for your reply. Please let me know how I can set the flow to not stop on error. I'm new in flow designer. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 04:57 AM
@Siddharth4 You should use "Look up records" instead of "Look up record". In the "Look up records" action, you will get count field. If there are no records then count will be zero. You can use this count field in your further logic. Refer below link for more info
If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2024 10:42 PM
@Siddharth4 Have you tried my solution ?? Try to use "Look up records" action instead of "Look up record". It will work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 02:32 AM
Hi @SANDEEP28 , Thanks for your reply, I tried your solution but it end the flow rather then skipping step 4th using if condition and because of that records are not getting updated.