You need to sign in to do that
Don't have an account?
k209310
SOQL Relationships - Cant Query Related data
Hi there
Im trying to run a test SOQL relationships for thte first time and have encountered some problems.
I am running the query
Has anyone got any ideas as to why this is occuring. As far as I can tell the syntax of the query is correct and I can run standard queries without any problem
Thanks
Chris
Im trying to run a test SOQL relationships for thte first time and have encountered some problems.
I am running the query
SELECT a.Id, a.Name, (SELECT c.Id, c.firstname, c.lastname FROM a.Contacts c) FROM Account aagsinst standard SalesForce objects however every time the query is executed against our account I am returned the error message
MALFORMED_QUERY: SOQL statements can't query related data
Has anyone got any ideas as to why this is occuring. As far as I can tell the syntax of the query is correct and I can run standard queries without any problem
Thanks
Chris
We are using API version 8.0
I.e We go to our account and download the latest version of the APEX API WSDL file from our account and build salesforce objects.
The header from the WSDL file is as follows...
<!--
Salesforce.com Enterprise Web Services API Version 8.0
Generated on 2007-01-22 04:37:19 +0000.
Copyright 1999-2007 salesforce.com, inc.
All Rights Reserved
-->
Thanks
Chris
where AccountIds[i] is for iterating this query with an array of Account Ids.
Exception Details: System.Web.Services.Protocols.SoapException: MALFORMED_QUERY: SOQL statements can't query related data
Message Edited by Whyser on 07-28-2008 09:46 AM
Message Edited by Whyser on 07-28-2008 02:30 PM
Did you get any solution for your problem?
I am also getting the same problem in executing relationship queries through my program(Python this time), even when the query is working fine with the Apex Explorer.
My detailed problem can be found here.
Looking for an urgent help.
Thanks,
Piyush.