<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error: The provided next page token is invalid or expired in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10552#M4195</link>
    <description>&lt;P&gt;The issue you're facing is related to pagination,&amp;nbsp;&amp;nbsp;we can’t apply pagination directly inside a &lt;STRONG&gt;trigger&lt;/STRONG&gt; step. As a workaround, if it’s okay for your use case, you can use a &lt;STRONG&gt;scheduler&lt;/STRONG&gt; to run the recipe at shorter intervals. Then, inside the recipe:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Use a &lt;STRONG&gt;"while loop"&lt;/STRONG&gt; to handle pagination.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the first loop, create a list to store results.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Make a &lt;STRONG&gt;Jira call&lt;/STRONG&gt; (or HTTP call).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;On the next loop, call Jira again using the &lt;STRONG&gt;Next Page Token&lt;/STRONG&gt; and &lt;STRONG&gt;add the results&lt;/STRONG&gt; to the same list created earlier.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use the &lt;STRONG&gt;loop condition&lt;/STRONG&gt; as “Next Page Token is present” — so it keeps looping until there’s no token left.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;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.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pagination2.png" style="width: 200px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2236i03D0AF28C9A60669/image-size/small/is-moderation-mode/true?v=v2&amp;amp;px=200" role="button" title="pagination2.png" alt="pagination2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thankyou&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2025 14:49:03 GMT</pubDate>
    <dc:creator>Obugari</dc:creator>
    <dc:date>2025-07-30T14:49:03Z</dc:date>
    <item>
      <title>Error: The provided next page token is invalid or expired</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10231#M4085</link>
      <description>&lt;P&gt;I'm facing an issue when I run triggers that generate a CSV as output.&lt;BR /&gt;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.&lt;/P&gt;&lt;P&gt;I'm finding this issue when I use triggers like: Export new/updated issues in Jira which generates output as a CSV file.&lt;/P&gt;&lt;P&gt;I'm not able to use Logger or CSV tools to figure out if there is any issue causing this.&lt;BR /&gt;Has anyone run into a similar problem, please let me know.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 21:32:11 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10231#M4085</guid>
      <dc:creator>antonyfm</dc:creator>
      <dc:date>2025-06-17T21:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error: The provided next page token is invalid or expired</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10552#M4195</link>
      <description>&lt;P&gt;The issue you're facing is related to pagination,&amp;nbsp;&amp;nbsp;we can’t apply pagination directly inside a &lt;STRONG&gt;trigger&lt;/STRONG&gt; step. As a workaround, if it’s okay for your use case, you can use a &lt;STRONG&gt;scheduler&lt;/STRONG&gt; to run the recipe at shorter intervals. Then, inside the recipe:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Use a &lt;STRONG&gt;"while loop"&lt;/STRONG&gt; to handle pagination.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the first loop, create a list to store results.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Make a &lt;STRONG&gt;Jira call&lt;/STRONG&gt; (or HTTP call).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;On the next loop, call Jira again using the &lt;STRONG&gt;Next Page Token&lt;/STRONG&gt; and &lt;STRONG&gt;add the results&lt;/STRONG&gt; to the same list created earlier.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use the &lt;STRONG&gt;loop condition&lt;/STRONG&gt; as “Next Page Token is present” — so it keeps looping until there’s no token left.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;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.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pagination2.png" style="width: 200px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2236i03D0AF28C9A60669/image-size/small/is-moderation-mode/true?v=v2&amp;amp;px=200" role="button" title="pagination2.png" alt="pagination2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 14:49:03 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10552#M4195</guid>
      <dc:creator>Obugari</dc:creator>
      <dc:date>2025-07-30T14:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error: The provided next page token is invalid or expired</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10618#M4219</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9303"&gt;@antonyfm&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Restart the Recipe: Stop&lt;/STRONG&gt;&amp;nbsp;the recipe and restart it to reset the token.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use Timestamp Pagination: If&lt;/STRONG&gt;&amp;nbsp;available, switch to timestamp-based pagination, &lt;STRONG&gt;update_at&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Reduce Trigger Interval: Run&lt;/STRONG&gt;&amp;nbsp;the trigger more frequently (e.g., every 5–10 mins) to avoid token expiry.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check CSV Output:&amp;nbsp;&lt;/STRONG&gt;Add a logger before the CSV step to inspect data. Try building CSV manually using &lt;STRONG&gt;Search&amp;nbsp;+ Repeat.&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Disable Pagination (if possible):&lt;/STRONG&gt;&amp;nbsp;For small datasets, test without pagination.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 15:21:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/error-the-provided-next-page-token-is-invalid-or-expired/m-p/10618#M4219</guid>
      <dc:creator>Himaja</dc:creator>
      <dc:date>2025-08-05T15:21:07Z</dc:date>
    </item>
  </channel>
</rss>

