• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Task Error on null input - would prefer ignore

So I have a workflow that uses regex to remove the square brackets and quotes before processing it. E.g. ["string"] becomes string.
The issue is, this field is not always filled so it might be null. I want to only run the task when the input != null.
The rest of the task runs fine. So overall, there is no issue. However, it gives me an error email. It's not an error.
This workflow iterates over an array of objects, is there any way to have logic that skips the task on null but the rest of the tasks on that iteration continue?
My understanding on the filter action is, it skips the rest of the tasks for that iteration. Is that right?
 

ArshilAhmad

Moderator
Staff member
Hi @Dylan Halliday,

You need to add a Router to your workflow after the Iterator step. Add all the steps to Route 1, including the Regex step, and set the filter condition to execute when the field IS NOT EMPTY. In Route 2, add all the steps excluding the Regex step, and set the filter condition to execute when the field IS EMPTY.

 
Ok thanks. I was hoping this wasn’t the answer. It means having to maintain two lots of tasks when fixing bugs etc.
Also the UI to copy and paste from one route to another is not efficient.

I’ll leave it for now and hopefully a pabbly connect UI which I saw concepts of is in the works 🥳
 
Top