โ06-17-2025 02:32 PM
I'm facing an issue when I run triggers that generate a CSV as output.
When I run the recipe, it throws the error that the Next Page Token is invalid or expired. Interestingly, the same recipe used to work earlier.
I'm finding this issue when I use triggers like: Export new/updated issues in Jira which generates output as a CSV file.
I'm not able to use Logger or CSV tools to figure out if there is any issue causing this.
Has anyone run into a similar problem, please let me know.
Thanks
โ07-30-2025 07:49 AM
The issue you're facing is related to pagination, we canโt apply pagination directly inside a trigger step. As a workaround, if itโs okay for your use case, you can use a scheduler to run the recipe at shorter intervals. Then, inside the recipe:
Use a "while loop" to handle pagination.
In the first loop, create a list to store results.
Make a Jira call (or HTTP call).
On the next loop, call Jira again using the Next Page Token and add the results to the same list created earlier.
Use the loop condition as โNext Page Token is presentโ โ so it keeps looping until thereโs no token left.
For reference, Iโve attached a screenshot showing this setup. I used an HTTP call, but in your case, you can use the Jira action instead.
Thankyou
โ08-05-2025 08:21 AM
Hi @antonyfm,
Restart the Recipe: Stop the recipe and restart it to reset the token.
Use Timestamp Pagination: If available, switch to timestamp-based pagination, update_at
Reduce Trigger Interval: Run the trigger more frequently (e.g., every 5โ10 mins) to avoid token expiry.
Check CSV Output: Add a logger before the CSV step to inspect data. Try building CSV manually using Search + Repeat.
Disable Pagination (if possible): For small datasets, test without pagination.