function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PXForcePXForce 

INVALID_TYPE error on custom object.

I have a flex object thats embedded in a visualforce page as the <apex:flash/> tag.

 

I have downloaded the salesforce library (with the latest end point url) and included it in my flex project .

 

I am logging into SFDC with the connection object from the library , in flex, using the $Api.sessionId and $Api.surl parmas passed in from the visualforce page. 

 

In my SFDC environment I have set up 2 custom objects. 

 

My Problem is that when I try and query the first custom object , i am getting back the results as expected but when i try and query the second custom object i am getting an error , INVALID_TYPE , sobject type not supported. This doesnt make any sense. 

 

I am setup as the administrator and both the objects are setup in the same way.

 

Any ideas on why this might be happening?...I am badly stuck.