Skip to main content
Contributor I
February 7, 2023
Solved

Error in using filter for "metric-aggregate"

  • February 7, 2023
  • 1 reply
  • 107 views

Hi, I got an issue when I want to query metric aggregate’s filter. here is my code along with the error. I’m using python to use the v2023-01-24 API.

When I change greater-or-equal to greater_or_equal, it said “Invalid filter supplied”.

 

Can anyone help me to solve the problem?

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @donabed and welcome to the Community!

     

    I’m going to reach out to Engineering on this issue and then I will update the thread when I hear back. The format “greater-or-equal”, with the hyphens instead of underscores, is the correct format for that filter, so you’re not wrong there. 

     

    May I ask if you remove the time range filter altogether, is the call successful? Just so I can ensure that the issue is isolated to that filter, and not any other parameters.

     

    Thanks,

    Brian

     

    1 reply

    Brian Turcotte
    Klaviyo Alum
    February 7, 2023

    Hi @donabed and welcome to the Community!

     

    I’m going to reach out to Engineering on this issue and then I will update the thread when I hear back. The format “greater-or-equal”, with the hyphens instead of underscores, is the correct format for that filter, so you’re not wrong there. 

     

    May I ask if you remove the time range filter altogether, is the call successful? Just so I can ensure that the issue is isolated to that filter, and not any other parameters.

     

    Thanks,

    Brian