• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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