First time here? Check out the FAQ!
0

Query for properties with an active status

I'm running a query for active listings, but receiving an error.

Query: (L_Status=Active)

ReplyCode 20206 (INVALID_QUERY_SYNTAX); ReplyText: An invalid value was given for a calculated field [DMQLtoSQL.getSubquery: Calculated field query value cannot be parsed into constituant parts: L_Status]. Error in the application.

I tried (L_StatusCatID=Active) and also received an error:

ReplyCode 20206 (INVALID_QUERY_SYNTAX); ReplyText: Illegal number in range for field [L_StatusCatID] Error in the application.

I noticed if I use a number for L_StatusCatID, then it works. So the query value type is different than its return type? Is there a way that I can query all the query & return values for a field like status?

matthewbschneider's avatar
matthewbschneider
asked 2017-01-13 17:22:37 -0500, updated 2017-01-14 20:05:43 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

When you query a field with a lookup attached, you use the lookup's value in the search. If you select COMPACT format it returns the field value. If you set format to COMPACT-DECODED, it returns the lookup's LongValue. Both status fields have lookups attached.

bwolven's avatar
bwolven
answered 2017-01-16 18:19:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer