You need to sign in to do that
Don't have an account?
AnnaT
MALFORMED_QUERY: unexpected token: ':'
The following error occurrs but I don't know how to solve this.
MALFORMED_QUERY: childObj__r where Location__c = :tmpVar1) from ParentObj__c ^ ERROR at Row:1:Column:227 unexpected token: ':'
[Select r.Name,r.Id, (Select Status__c From childObj__r WHERE Location__c=:location ) From ParentObj__c r where r.Location__c includes (:location) order by r.Name]));
Thanks in advance for your help!
Anna
It seems that ":" can't be used in the nested query.
The following code works!
Thank you,
Anna
All Answers
where r.Location__c includes :location order by r.Name]
Thank you for your reply.
Yes, this issue seems to occurr at the first ":location".
Without the following bold line, no error occurrs.
These two Location__c is different.
Location__c of child object is Picklist.
Location__c of parent object is Picklist (Multi-Select) .
Thank you,
Anna
It seems that ":" can't be used in the nested query.
The following code works!
Thank you,
Anna
Good to know. Interesting idiosyncrasy of SOQL. Not sure if they cannot parse a : within a nested query or what. Thanks for sharing the solution!
Ram
Isn't that giving an error upon execution of the query?