+ Start a Discussion

INVALID_TYPE error in S-Control SOQL statement

Hello everyone.  I have an S-control on a custom object which (among other things) populates fields on the object based on other object's fields.  It has lots of SOQL queries which work just fine, but for some reason, one is throwing an error.

var resourceresult = sforce.connection.query("Select Team_Member__c, Days_Budgeted__c from ResourceObj__c where Project__c = '{!ProjectObj__c.Id}'");
var resourceRec = resourceresult.getArray("records");

Error: uncaught exception: {faultcode:'sf:INVALID_TYPE', faultstring:'INVALID_TYPE: sObject type 'ResourceObj__c' is not supported.', detail:{InvalidSObjectFault:{exceptionCode:'INVALID_TYPE', exceptionMessage:'sObject type 'ResourceObj__c' is not supported.', row:'-1', column:'-1', }, }, }

As far as I can tell, this query is no different than the many others I am running on the s-control, and there is nothing unique about the object "ResourceObj__c" that it's referencing.  What could be causing this error?
So I figured this out, apparantly a SOQL query can't be written to something that has multiple master-detail relationships