<?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 with HubDB query with lte and gte on same column in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1017954#M40030</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131027"&gt;@jvveen&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;could you tell us what kind of warning errors you are getting?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 09:03:56 GMT</pubDate>
    <dc:creator>Gracjan</dc:creator>
    <dc:date>2024-07-29T09:03:56Z</dc:date>
    <item>
      <title>Error with HubDB query with lte and gte on same column</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1016867#M40010</link>
      <description>&lt;P&gt;I am setting up a custom module which queries a hubdb with events.&lt;BR /&gt;The filter in the query uses lte and gte on the date column.&lt;BR /&gt;I have setup a pagination function, that basically sets ths start and end date for the query.&lt;BR /&gt;&lt;BR /&gt;The weird thing is that for some sets of start and end date the code does not show errors and for some it does.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Code snippets:&lt;BR /&gt;{% set events_query = "Date__gte=" ~ start_date_display_ms ~ "&amp;amp;Date__lte=" ~ end_date_display_ms %}&lt;BR /&gt;{% set events_table = hubdb_table_rows(calender_hubdb_id, events_query ) %}&lt;BR /&gt;&lt;BR /&gt;Debugging code:&lt;BR /&gt;{% set events_table = hubdb_table_rows(calender_hubdb_id, 'Date__gte=1719806075000&amp;amp;Date__lte=1730327075000' ) is fine&lt;BR /&gt;&lt;BR /&gt;{% set events_table = hubdb_table_rows(calender_hubdb_id, 'Date__gte=1727754965000&amp;amp;Date__lte=1738275965000' ) &amp;nbsp;shows warning errors&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 10:00:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1016867#M40010</guid>
      <dc:creator>jvveen</dc:creator>
      <dc:date>2024-07-26T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error with HubDB query with lte and gte on same column</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1017954#M40030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131027"&gt;@jvveen&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;could you tell us what kind of warning errors you are getting?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 09:03:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1017954#M40030</guid>
      <dc:creator>Gracjan</dc:creator>
      <dc:date>2024-07-29T09:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error with HubDB query with lte and gte on same column</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1017982#M40031</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/580011"&gt;@Gracjan&lt;/a&gt;&amp;nbsp;, thanks&lt;BR /&gt;&lt;BR /&gt;Just "Warning - Error" with a link to the line. See screenshot.&lt;BR /&gt;&lt;BR /&gt;For debugging, I removed the variables and added the UNIX timestamp integers to exclude any formatting or calculation errors.&lt;BR /&gt;The values of these integers are sensible, one being later than the other.&lt;BR /&gt;The issues seems to be with the second value. If I change that to gte or increase the number enough, the error changes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jvveen_0-1722247017248.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/123437i8CFEAA08E55AA026/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jvveen_0-1722247017248.png" alt="jvveen_0-1722247017248.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 09:57:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1017982#M40031</guid>
      <dc:creator>jvveen</dc:creator>
      <dc:date>2024-07-29T09:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error with HubDB query with lte and gte on same column</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1018262#M40035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131027"&gt;@jvveen&lt;/a&gt; ,&amp;nbsp;&lt;BR /&gt;Just to clarify, have you tried running your code without the wrapping if statement? I'm assuming the issue persists even without it, but it would be helpful to confirm.&lt;BR /&gt;&lt;BR /&gt;If possible, could you provide us the entire code of your calendar module please?&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Gracjan&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 17:32:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Error-with-HubDB-query-with-lte-and-gte-on-same-column/m-p/1018262#M40035</guid>
      <dc:creator>Gracjan</dc:creator>
      <dc:date>2024-07-29T17:32:15Z</dc:date>
    </item>
  </channel>
</rss>

