rets icon indicating copy to clipboard operation
rets copied to clipboard

RETS Error 20203: Invalid Query Type

Open naranqode opened this issue 4 years ago • 3 comments

Hi! I try to execute this code: search_results = rets_client.search(resource='Property', resource_class='RES', limit=1, dmql_query='(ListPrice=150000+)') for result in search_results: print(result)

While trying to execute this code I'm getting an error, here is an error rets.exceptions.RETSException: RETS Error 20203: Invalid Query Type

Any idea? Any help would be appreciated. Thanks

naranqode avatar Feb 09 '22 18:02 naranqode

I think it is an issue with the value you passed for resource_class. Instead of 'RES' try 'RESI'

AlSaltAlBahri avatar Dec 25 '22 13:12 AlSaltAlBahri

same issue! any luck ? :(

ghost avatar Aug 11 '23 12:08 ghost

Same issue! any luck? :(

Yes, this is how it works for me: property = rets_client.search('Property', resource_class, search_filter={})

In the resource class you can use: CondoProperty or ResidentialProperty

naranqode avatar Aug 11 '23 13:08 naranqode