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

Invalid Query Type Exception #9

Open
ravisangar opened this issue May 18, 2015 · 3 comments
Open

Invalid Query Type Exception #9

ravisangar opened this issue May 18, 2015 · 3 comments

Comments

@ravisangar
Copy link

Hi There,

I am getting an exception saying "org.realtors.rets.client.InvalidReplyCodeException: 20203 (Miscellaneous search error)
Invalid Query Type.", when running the provided sample to do a search.

I am using RETS 1.7. I was able to successfully log in. Exception is thrown when the search is performed.

Thanks,
Ravi

@vangulo-trulia
Copy link
Contributor

Hi Ravi,

That error is usually in response to the parameters in the query not being understood by the server you are connecting to.

Can you send over an example of the parameters you are passing to SearchRequest with any select fields you may also be passing?

@Jinoooo
Copy link

Jinoooo commented Jul 14, 2017

I have the same issue. I want to download everything for residential. What should be the query and the select parameters?
Currently I am using the following with Invalid query type error:

		 String sQuery = "(Member_num=.ANY.)";
//		String sQuery = "*";
		String sResource = "Property";
		String sClass = "Residential";
//		String sClass = "A";

		//Create a SearchRequest
		SearchRequest request = new SearchRequest(sResource, sClass, sQuery);

		//Select only available fields
		String select ="toronto"; //,field3,field4,field5";
		request.setSelect(select);

@kuldeep116
Copy link

I have the same issue. I want to download everything for residential. What should be the query and the select parameters?
Currently I am using this .code run successfully but we get only status value .not other fields value .what we pass in select parameters then we get all fields data .

        String sQuery = "(Status=|A)";
	String sResource = "Property";
	String sClass = "ResidentialProperty";
	// Create a SearchRequest
	SearchRequest request = new SearchRequest(sResource, sClass, sQuery);
	// Select only available fields
	String select = "Status,community_code,addr";
       request.setSelect(select);

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

4 participants