Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RETS Error 20203: Invalid Query Type #228

Open
naranqode opened this issue Feb 9, 2022 · 3 comments
Open

RETS Error 20203: Invalid Query Type #228

naranqode opened this issue Feb 9, 2022 · 3 comments

Comments

@naranqode
Copy link

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 naranqode reopened this Feb 9, 2022
@AlSaltAlBahri
Copy link

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

@ghost
Copy link

ghost commented Aug 11, 2023

same issue! any luck ? :(

@naranqode
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants