Iterator inside Router not executing
Status: Closed · Asked by nomisite on · 0 views
Hi,
I have a logic that triggers when there is a new row in google sheet.
The google sheet has data like "Tools Category"
In my logic, I am comparing the new data from google sheet, and the data from Wordpress. I set a router that, if this category already existed in Wordpress, it will execute Flow 1. Else, it will execute Flow 2
Now my problem is, in both Flow, I put Iterator after a API call posting the data into Wordpress. But the iterator just doesn't get executed

Can I know why it don't get executed? How should I fix my flow to make sure the iterator gets executed?
Thank you!
Attached is the workflow I did...
If you see the workflow, you will notice that the iterator part is basically the same flow. I tried to move the Iterator out from router, that causes my router to keep looping and looping instead, which is not what I want... Hence I move the iterator into router instead
I suspect is something simple that I overlooked honestly...
Any pointers and guidance here are appreciated, thank you!
Attachments

Hey @nomisite
Upon looking into your workflow it appears that the issue was in the Test Formatter (step 5) by which you were receiving the array. It already had three extra spaces which were causing hindrance in the array format. Although, we have rectified the issue.

Kindly monitor your workflow for a while and let us know if it works for you.
Hi I'm sorry but it still doesn't work...
Task History ID - IjU3NmQwNTZkMDYzNzA0MzU1MjY5NTUzNTUxM2I1MTZhNTQzMCI_3D_pc
This task do have new tags that is not in wordpress, and i checked in step 5 the returned array looks pretty solid here:
["Content Censoring","Profanity Filter","Video Editing","Audio Editing","Language Filter","Content Creation"]
But after posting the post to wordpress, the iterator below it doesn't run at all...
From task history, it just ends after the post is posted to wordpress
Could you please help me look into it again? So sorry and thank you!
This task do have new tags that is not in wordpress, and i checked in step 5 the returned array looks pretty solid here:
["Content Censoring","Profanity Filter","Video Editing","Audio Editing","Language Filter","Content Creation"]But after posting the post to wordpress, the iterator below it doesn't run at all...
Ensure that the result value passed to the Iterator action step is a proper JSON array. If it's merely an array, it won't allow the Iterator action step to function correctly.
So, please tell us the purpose of the Iterator in the first route of your workflow.
what i intend to achieve with the iterator is looping through all the tags that is not found in Wordpress, create it
and then put all of the tags that is associated with the post, including the newly created tag together into an array of tag ID
then update the wordpress post with the array of tags
Please allow us some time, we are checking on it.
what i intend to achieve with the iterator is looping through all the tags that is not found in Wordpress, create itand then put all of the tags that is associated with the post, including the newly created tag together into an array of tag ID
As we can see from your API by Pabbly, you are generating an array of tags, not a JSON array that allows the Iterator to process each tag individually.
Kindly provide the correctly formatted JSON array data that can be iterated through each tag.
Example of JSON array -
{
"name":"John",
"age":30,
"cars":["Ford", "BMW", "Fiat"]
}